html {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
}

/* HEADERS categories subcategories of dropdown */
/* changing opacity level of header elements seems to have fix the clickable area for toggling, but I don't know why yet */
header {
  padding: 20px;
}

h1 {
  margin: 1em auto;
  text-align: center;
  color: aliceblue;
}

h4 {
  text-align: center;
}

.dropdown-container {
  position: relative;
  top: 0;
  margin: 0 auto;
}

.a {
  /* Subcategories ONLY PROJECTS AND HOBBIES */
  width: 75%;
  background-color: rgba(51, 51, 51, 0.6);
  color: aliceblue;
  text-align: center;
  margin: 20px auto;
  padding: 15px;
  border-radius: 15px;
}

.b {
  /* all subcategory items/content container ONLY PROJECTS AND HOBBIES */
  background-color: rgba(102, 102, 102, 0.5);
  width: 70%;
  margin: 10px auto;
  color: whitesmoke;
  border-radius: 15px;
  padding: 20px;
}


.c {
  /* about me, projects, hobbies & Interests */
  background-color: rgba(20, 20, 20, 0.7);
  margin: 20px auto;
  padding: 15px;
  text-align: center;
  width: 80%;
  border-radius: 15px;
  color: aliceblue;
}

.e {
  /* subcategory content ABOUT ME ONLY */
  background-color: rgba(51, 51, 51, 0.6);
  text-align: center;
  margin: 20px auto;
  width: 75%;
  padding: 15px;
  border-radius: 15px;
  color: aliceblue;
}

.question {
  background-color: rgba(102, 102, 102, 0.55);
  text-align: center;
  width: 70%;
  margin: 10px auto;
  padding: 20px;
  border-radius: 10px;
  color: whitesmoke;
}

.answer {
  margin: 10px auto;
  width: 65%;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 10px;
  color: midnightblue;
}

/* TRIGGERS & DROPDOWNS */
.dropdown-content {
  display: none;
}

.dropdown-content.active {
  display: block;
}

.dropdown-trigger {
  cursor: pointer;
}

body {
    font-size: 15pt;
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: url('Night_Forest_Stars.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.content-wrap {
  min-height: 100%;
  margin-bottom: -525px; /* footer height*/
}

.content-wrap:after {
  content: "";
  display: block;
}

/* TODO Pulsating Star */
/* TODO Whisp */

main {
  margin: 0 25px;
  width: 100%;
  flex-grow: 1;/*content takes up available space*/
  padding-bottom: 100px;
}

p {
  text-indent: 2em
}

/* PROJECTS */
.projects img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.project-img {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 20px 10px;
}

#form h3, #tribute h3 {
  text-align: center;
  color: aliceblue;
  width: 100%;
  display: inline-block;
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: underline;
}

#form a, #tribute a {
  color: aliceblue;
  font-weight: bold;
  text-decoration: underline;
  display: block;
  text-align: center;
}

/* GALLERY */
#gallery {
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: 20px 0 40px 0;
}

.x {
  /*border: 5px solid white;
  display: flex;*/ /* toggles alignment of gallery header instead of dropdown?*/
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.grid-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.img-container {
  flex-shrink: 0;
}

.img-container img {
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  max-width: 100%;
  width: 200px;
}

.horizontal-scroll {
  overflow-x: auto;
  white-space: nowrap;
}

.horizontal-scroll .content {
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 1300px;
  white-space: nowrap;
}

.horizontal-scroll .img-container {
  flex: 0 0 auto; /*prevent from shrinking or stretching images*/
  text-align: center;
  width: auto;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

.grid-container button {
  font-size: 3rem;
  border-radius: 5px;
  color: indianred;
  border: 1px solid aliceblue;
  background-color: rgba(0, 0, 0, 0);
  padding: 0;
  width: 1.5em;
  height: 4.5em;
}

/* QUOTE GAME */
cite {
  /* book game titles */
  font-style: normal;
  font-weight: bold;
  font-family: "Open Sans", sans-serif;
}

q {
  /* book game qoutes */
  font-style: italic;
  font-family: "Merriweather", serif;
}

span {
  /* book game year */
  font-size: 0.8em;
  color: #555;
}

.author {
  margin-top: 0.5em;
  font-family: "Open Sans", sans-serif;
  font-size: 0.9em;
}

#subcat_item-6 {
  /* all content for quotes */
  background-image: url('Book2.png');
  font-size: 0.8em;
  padding: 2em;
  min-height: 40vh;
  background-size: 90% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.book-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto; /* row for buttons */
  color: black;
  width: 90%;
}

.book-answer {
  display: none;
}

.book-container.revealed .book-answer {
  display: block; /* Show the answer when .revealed class is added */
}

.left-page {
  grid-row: 1;
  grid-column: 1;
  min-height: 8em;
  position: relative;
  left: 0.5em;
  padding: 1em;
}

.right-page {
  grid-row: 1;
  grid-column: 2;
  position: relative;
  min-height: 9em;
  left: 0.8em;
  padding: 1em;
}

.right-page p, .right-page span {
  position: relative;
}

.quote-slides-container {
  display: grid; /*make container a grid*/
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;/* make single box for each side*/
}

.quote-slide {
  grid-row: 1;
  grid-column: 1;
  transition: opacity 0.3s ease-in-out;
  display: none;
}

.quote-slide:first-child {
  display: block;
}

.button-wrapper {
  grid-row: 2;
  grid-column: 1 / 3;
  width: 80%;
  margin: 1em auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.next-button {
  cursor: pointer;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.reveal-button {
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  position: relative;
}

/* FOOTER */
footer {
  margin: 0;
  padding: 0;
  text-align: center;
  background-image: url('footer3.png');
  background-size: cover;
  background-repeat: no-repeat;
  background: linear-gradient(to bottom, #073638, #01030f);
  -webkit-mask-image: url('footer3.png');
    mask-image: url('footer3.png');
  -webkit-mask-size: 100%;
    mask-size: 100%;
  -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  -webkit-mask-position: center;
    mask-position: bottom center;
}

footer, .content-wrap:after {
  height: 525px;
  padding-top: 40px;
}

footer nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: auto;
  text-align: center;
}

footer nav a {
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: #e7e9ec;
  bottom: 0;
}

footer nav a img {
  height: 1.5em;
  bottom: 0;
}

@media screen and (max-width: 480px) {
  #subcat_item-6 {
    background-position: center;
  }
  
  .left-page {
    top: 6.5%;
    left: -0.6em;
    line-height: 0.8;
    padding-right: 0.5em;
    font-size: 0.55em;
    width: 96%;
    padding-right: 1.3em;
  }
  
  .right-page {
    top: 3%;
    left: 1em;
  }
  
  .right-page p {
    font-size: 0.6em;
  }
  
  .grid-container button {
    height: 5em;
    width: 1.5em;
    font-size: 2rem;
  }
  
  .grid-container {
    width: auto;
  }
}

@media screen and (min-width: 481px) and (max-width: 600px) {
  .x {
    padding: 0;
    margin: 0 auto;
    width: 90%;
  }
  
  .grid-container {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .img-container img {
    height: 230px;
    width: 180px;
    padding: 0 auto;
  }
  
  .grid-container button{
    height: 5rem;
    width: 1;
    font-size: 1rem;
  }
  
  .dropdown-trigger {
    width: 90%;
    padding: 3px;
  }
  
  .b {
    width: 80%;
  }
  
  .project-img img {
    max-height: 325px;
    max-width: 200px;
  }
  
  .dropdown-content {
    padding: 0 auto;
  }
  
  .left-page {
    top: -1em;
    line-height: 0.7;
    padding-right: 0.5em;
    font-size: 1.1em;
  }
  
  .right-page {
    top: -1em;
  }
  
  .book-answer {
    font-size: 0.7rem;
  }
  
  q {
    font-size: 0.62em;
    font-family: sans-serif;
  }
  
  footer nav a img {
    font-size: 0.5em;
  }
}

@media screen and (min-width: 601px) and (max-width: 768px) {
  #subcat_item-6 {
    padding-bottom: 8em;
    background-size: 75% auto;
  }
  
  .left-page {
    width: 65%;
    height: 14em;
    left: 3.2em;
    top: 0.5em;
    font-size: 0.9rem;
    line-height: 1;
    margin: 0 auto;
  }
  
  .right-page {
    width: 65%;
    height: 12em;
    left: -0.2em;
    top: 0;
    margin: 0 auto;
  }
}

@media screen and (orientation: portrait) and (min-width: 769px) and (max-width: 992px) {
  .left-page {
    width: 76%;
    padding: 1em;
    height: 15em;
    left: 2.2em;
    top: 2.7em;
    font-size: 1.3em;
    line-height: 1.1;
  }
  
  .right-page {
    width: 76%;
    height: 15em;
    padding: 1em;
    top: 2.7em;
    left: 2em;
    font-size: 1.2em;
  }
  
  .button-wrapper {
    top: 10em;
  }
}

@media screen and (orientation: landscape) and (min-width: 769px) and (max-width: 992px) {
  #subcat_item-6 {
    background-size: 75%;
    background-position: center;
    min-height: 140vh;
  }
  
  .left-page {
    width: 65%;
    left: 5em;
    top: 16vh;
    height: 14em;
    font-size: 1.1em;
    line-height: 1;
  }
  
  .right-page {
    width: 60%;
    top: 5.5em;
    left: 2.5em;
    height: 12em;
  }
  
  .button-wrapper {
    top: 6em;
  }
}

@media screen and (min-width: 993px) {
  #subcat_item-6 {
    width: 65%;
    height: 95vh;
  }
  
  .left-page {
    width: 67%;
    height: 16em;
    left: 3.5em;
    top: 6.5em;
    padding: 1em;
    font-size: 1.5em;
    line-height: 0.8;
  }
  
  .right-page {
    width: 67%;
    height: 13em;
    left: 3.5em;
    top: 6.5em;
    padding: 0.8em;
    font-size: 1.5em;
  }
  
  .button-wrapper {
    top: 16em;
  }
  
  .next-button {
    font-size: 2em;
  }
  
  .reveal-button {
    font-size: 2em;
  }
}
