html {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  zoom: normal;
}

:root {
  --orientation: vertical;
}

.hidden {
  opacity: 0 !important;
  transform: scale(0.8) !important;
  -webkit-transform: scale(0.8) !important;
  pointer-events: none !important;
  will-change: transform, opacity;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgb(0, 17, 25);
  font-family: Arial, Helvetica, sans-serif;
}
body h1 {
  margin: 0;
}

#top,
#bottom {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  width: 100%;
}

#top {
  top: 0;
}
#top #menu {
  z-index: 999;
  height: 50px;
  box-sizing: border-box;
  border: 4px solid rgba(224, 224, 224, 0.5);
  background-color: rgb(0, 17, 25);
  border-radius: 50px;
  transition: max-width ease-in-out 0.5s, opacity ease-in-out 0.5s,
    border ease-in-out 0.5s;
  display: flex;
  align-items: center;
  margin: 0;
}
#top #menu:hover {
  border: 4px solid rgba(224, 224, 224, 0.85);
}
#top #menu #menu-button {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity ease-in-out 0.5s;
  width: 42px;
  opacity: 0.5;
}
#top #menu #menu-button:hover {
  opacity: 0.85;
}
#top #menu #options {
  max-width: 200px;
  transition: max-width ease-in-out 0.5s, opacity ease-in-out 0.5s,
    transform ease-in-out 0.5s;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}
#top #menu #options.hidden {
  max-width: 0;
}
#top #menu #options #volume {
  display: flex;
  flex-direction: row;
  opacity: 0.5;
  margin-right: 0.5rem;
}
#top #menu #options #volume svg.hidden,
#top #menu #options #volume img.hidden {
  max-width: 0;
  opacity: 0;
  margin: 0;
}
#top #menu #options #volume:hover {
  opacity: 0.85;
}

#bottom {
  bottom: 0;
}

.icon {
  display: flex;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  transition: opacity ease-in-out 0.3s, transform ease-in-out 0.3s;
  opacity: 0.5;
}
.icon:hover {
  opacity: 0.85;
}
.icon svg,
.icon img {
  background-color: #e0e0e0;
  background-color: transparent;
  margin: 0.5rem;
  display: block;
  width: 100%;
  height: auto;
}
.icon.circle {
  border: 4px solid #e0e0e0;
  border-radius: 50px;
}
.icon.circle img {
  margin: 0.5rem;
  font-size: 1.5rem;
}
.icon:focus {
  outline: none;
}

#close-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 2rem;
  height: 2rem;
  opacity: 0.85;
}

#book {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  will-change: transform;
  transition: transform ease-in-out 0.3s, opacity ease-in-out 0.3s;
}
#book #book-marker {
  display: none;
}
#book.open {
  transform: translate(0%, -50%) translateZ(0);
  -webkit-transform: translate(0%, -50%) translateZ(0);
}
#book.open #book-marker {
  display: flex;
}

@media screen and (max-width: 768px) and (orientation: portrait),
  screen and (max-height: 768px) and (orientation: landscape) {
  :root {
    --orientation: horizontal;
  }
  #book {
    transform: translate(-50%, -50%) scale(0.65) translateZ(0);
    -webkit-transform: translate(-50%, -50%) scale(0.65) translateZ(0);
  }
  #book.open {
    transform: translate(-15%, -50%) scale(0.65) translateZ(0);
    -webkit-transform: translate(-15%, -50%) scale(0.65) translateZ(0);
  }
  #book.end {
    transform: translate(15%, -50%) scale(0.65) translateZ(0);
    -webkit-transform: translate(15%, -50%) scale(0.65) translateZ(0);
  }
}
@media screen and (max-width: 500px) and (orientation: portrait) {
  :root {
    --orientation: horizontal;
  }
  #book {
    transform: translate(-50%, -50%) scale(0.5) translateZ(0);
    -webkit-transform: translate(-50%, -50%) scale(0.5) translateZ(0);
  }
  #book.open {
    transform: translate(-25%, -50%) scale(0.5) translateZ(0);
    -webkit-transform: translate(-25%, -50%) scale(0.5) translateZ(0);
  }
  #book.end {
    transform: translate(0%, -50%) scale(0.5) translateZ(0);
    -webkit-transform: translate(0%, -50%) scale(0.5) translateZ(0);
  }
}
@media screen and (max-height: 450px) and (orientation: landscape) {
  :root {
    --orientation: horizontal;
  }
  #book {
    transform: translate(-50%, -50%) scale(0.55) translateZ(0);
    -webkit-transform: translate(-50%, -50%) scale(0.55) translateZ(0);
  }
  #book.open {
    transform: translate(-20%, -50%) scale(0.55) translateZ(0);
    -webkit-transform: translate(-20%, -50%) scale(0.55) translateZ(0);
  }
  #book.end {
    transform: translate(0%, -50%) scale(0.55) translateZ(0);
    -webkit-transform: translate(0%, -50%) scale(0.55) translateZ(0);
  }

  #page-count {
    position: fixed;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
  }
}

@media screen and (max-width: 375px) {
  :root {
    --orientation: vertical;
  }
  #book {
    transform: translate(-50%, -50%) scale(0.75) translateZ(0);
    -webkit-transform: translate(-50%, -50%) scale(0.75) translateZ(0);
  }
  #book.open {
    transform: translate(0%, -50%) scale(0.75) translateZ(0);
    -webkit-transform: translate(0%, -50%) scale(0.75) translateZ(0);
  }
  #book.left {
    transform: translate(25%, -50%) scale(0.75) translateZ(0);
    -webkit-transform: translate(25%, -50%) scale(0.75) translateZ(0);
  }
  #book.right {
    transform: translate(-50%, -50%) scale(0.75) translateZ(0);
    -webkit-transform: translate(-50%, -50%) scale(0.75) translateZ(0);
  }
}
@media screen and (min-width: 769px) and (orientation: landscape) and (min-height: 425px) {
  :root {
    --orientation: horizontal;
  }
  #book {
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    -webkit-transform: translate(-50%, -50%) scale(1) translateZ(0);
  }
  #book.open {
    transform: translate(0, -50%) scale(1) translateZ(0);
    -webkit-transform: translate(0, -50%) scale(1) translateZ(0);
  }
  #book.end {
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    -webkit-transform: translate(50%, -50%) scale(1) translateZ(0);
  }
}
#page-count {
  font-family: "Courier New", Courier, monospace;
  color: #e0e0e0;
  background-color: rgb(0, 17, 25);
} /*# sourceMappingURL=life-of-davy.css.map */
