html,
body {
  /* background-color: #0fb9b1; */
  background-color: #f0f0f0;
  font-family: monospace;
  height: 100%;
  margin: 0;
  min-width: 333px;
  padding: 0;
}

@font-face {
  font-family: 'reading-font';
  src: url('/fonts/regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'reading-font';
  src: url('/fonts/bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'reading-font';
  src: url('/fonts/italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'reading-font';
  src: url('/fonts/bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

div#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100%;
}

div.bookcase {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

div.body {
  flex: 1;
  font-family: reading-font;
  font-size: 2vh;
  overflow-y: auto;
}

div.body {
  background-color: antiquewhite;
  color: #2d2d2d;
}

div.element {
  text-align: center;
}

div.footer {
  background-color: #f0f0f0;
  bottom: 0px;
  padding: 0 5% 0 5%;
  position: sticky;
  text-align: center;
}

div.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  /* Semi-transparent background */
  z-index: 1000;
  /* Ensure it's on top of other elements */
  overflow-y: auto;
  /* Allow scrolling if content is taller than the screen */
  transition: opacity 0.3s ease;
  opacity: 0;
}

div.menu-content {
  background-color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  left: 60%;
  padding: 3%;
  position: relative;
  top: 0;
  transition: transform 0.5s ease;
  width: 40%;
}

div.navigation {
  background-color: #f0f0f0;
  align-items: center;
  border-bottom-style: ridge;
  border-width: 3px;
  box-sizing: border-box;
  display: inline-flex;
  height: 7vh;
  justify-content: space-between;
  padding: 0 1%;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

div.icon {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 100%;
}

div.progress {
  align-items: center;
  display: flex;
  justify-content: space-evenly;
  padding: 2%;
}

div.progress progress {
  width: 90%;
  height: 20px;
}

div.question {
  border-bottom: dashed;
  padding: 2% 0;
}

form {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

img.icon {
  height: 90%;
}

img.button {
  height: 50%;
}

input.dis3, input.agr3 {
  height: 70px;
  width: 70px;
}

input.dis2, input.agr2 {
  height: 56px;
  width: 56px;
}

input.dis1, input.agr1 {
  height: 40px;
  width: 40px;
}

input.neu {
  height: 30px;
  width: 30px;
  accent-color: grey;
}

input.dis3, input.dis2, input.dis1 {
  accent-color: red;
}

input.agr3, input.agr2, input.agr1 {
  accent-color: green;
}

input.search {
  min-width: 40%;
  margin: 5%;
}

p.error,
p.info {
  font-size: 75%;
  text-decoration: overline underline dashed;
  text-underline-offset: 5px;
}

p.error {
  color: #c50000;
}

p.info {
  color: cadetblue;
}

span.menu,
.menuLink {
  border-radius: 35px;
  border-style: ridge;
  color: unset;
  cursor: pointer;
  font-family: monospace;
  font-size: 2vh;
  padding: 1%;
  text-align: center;
  text-decoration: none;
}

span.menu:hover,
.menuLink:hover {
  background: #888888;
}

span.likertQuestion {
  align-items: center;
  display: flex;
  flex-direction: row;
  padding-left: 5%;
}

span.likertInfo {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-indent: 0%;
}

span.questionAnswers {
  display: flex;
  flex-direction: column;
}

span.questionText {
  display: block;
  text-indent: 2%;
}

span.choice {
  margin-top: 1%;
  margin-bottom: 1%; 
}

span.choice label,  span.choice input, span.likertQuestion input {
  cursor: pointer;
  margin-left: 1%;
}

span.choice input {
  cursor: pointer;
  margin-left: 1%;
}

span.choice input[type="radio"],
span.choice input[type="checkbox"] {
  transform: scale(1.8);
  margin: 10px;
}

span.title {
  font-family: monospace;
  font-size: 2.75vh;
  margin: 5%;
}

#loading img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
}

#typed-text {
  bottom: 0%;
  font-family: monospace;
  font-size: 4vw;
  font-weight: bold;
  margin: 10%;
  position: absolute;
}

#typed-text::after {
  content: '|';
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#swipeContainer {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

#content {
  box-sizing: border-box;
  padding: 0 5%;
  text-align: justify;
  text-indent: 5%;
  transition: transform 0.3s ease-out;
  width: 100%;
}

#content p {
  margin-block: 1% 1%;
}

.active {
  background: darkseagreen;
}

.hide {
  display: none;
}

.hideVis {
  visibility: hidden;
}

.bookinfo {
  width: 500px;
}

.flexi {
  display: flex;
  text-align: center;
  justify-content: center;
}

.info.flexi {
  flex-direction: row;
  align-items: center;
  margin-top: 15px;
  width: 95%;
}

.data.flexi {
  flex-direction: column;
  text-align: left;
  margin-left: 10px;
  width: 100%;
}

.info a {
  padding: 0px;
  border-radius: 22px;
}

.shadekeeper {
  position: relative;
  display: flex;
}

img.cover {
  width: 222px;
  border-radius: 22px;
}

.shade {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  border-radius: 22px;
  background-color: rgba(0, 0, 0, 0.2);
}

.shade:hover {
  background-color: rgba(0, 0, 0, 0);
}

.bookpage {
  align-content: center;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.bookpage a {
  margin: 1%;
  width: 75%;
}

@media screen and (min-width: 801px) {
  #typed-text {
    font-size: 2.5vw;
  }
}

@media screen and (max-width: 501px) {
  div.body {
    font-size: 1.75vh;
    line-height: 1.5;
  }

  div.footer {
    padding: 0 20px 0 20px;
  }

  input.search {
    display: none;
  }

  span.menu,
  .menuLink {
    font-size: 1.75vh;
    padding: 1%;
  }

  span.title {
    font-size: 2vh;
    margin: 3%;
  }

  .info.flexi {
    flex-direction: column-reverse;
  }

  .data.flexi {
    text-align: center;
    margin-left: unset;
    margin-bottom: 10px;
  }
}

.likert-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.likert-option input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.likert-circle {
  border: 2px solid white;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.likert-option input[type="radio"]:checked+.likert-circle {
  outline: 3px solid black;
  transform: scale(1.1);
}