@import url(/generalStyles/general.css);
@import url(/generalStyles/header.css);

.bookDisplay {
  max-width: 1000px;
}

.main {
  padding: 20px;
  display: flex;
  gap: 50px;
}

.nav {
  border: 1px solid whitesmoke;
  padding: 20px;
  position: relative;
}

.home {
  font-size: 1.2rem;
  padding: 0 10px 20px 0;
  width: fit-content;
  /* transition: color 0.5s ease; */
}

.home:hover {
  color: rgb(217, 176, 255);
}

/* Hidden in wide screen */
#dropdownBtn {
  font-size: 1.2rem;
  display: none;
}

/* Shown in wide screen */
.dropdown-content {
  border-top: 1px solid whitesmoke;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dropdown-content a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 0.5px;
}

#title {
  padding: 0 0 20px 0;
  font-weight: 200;
  font-size: 1.2rem;
}

#description {
  font-size: 1rem;
}

#chapters {
  width: max-content;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#title,
#description {
  transition: color 0.5s ease;
  width: fit-content;
}

.hoverDocument:hover {
  outline: 1px solid rgb(132, 0, 255);
}

@media only screen and (max-width: 500px) {
  .topGif > img {
    width: 20vw;
  }
}

@media only screen and (max-width: 450px) {
  .main {
    flex-direction: column;
  }
  .nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .home {
    padding: 0px;
  }

  #library {
    border-top: 0;
    position: relative;
    display: inline-block;
    padding: 0px;
  }

  #dropdownBtn {
    display: block;
  }

  #dropdownBtn:hover {
    color: rgb(217, 176, 255);
  }

  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    left: -40px;
    top: 35px;
    border: 1px solid whitesmoke;
    padding: 20px;
    background-color: black;
    width: max-content;
    max-width: 200px;
    z-index: 1;
  }

  .dropdown-content a {
    display: block;
  }

  .show {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
