* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 18px;
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  background-color: #f1efde; /* daytime by default */
  color: #3c4d59; /* daytime by default */
  line-height: 1.8;
  transition: background-color 2s ease;
}

/* THEMES */

body.daytime {
  background-color: #f1efde;
  color: #3c4d59;
}

body.nighttime {
  background-color: #1a1e29;
  color: #e3e1d3;
}

.content {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.slide {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  position: relative;
}

/* HEADER */

.header-slide {
  background-image: url("images/daytime.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right;
  text-align: center;
}

.header-slide.nighttime {
  background-image: url("images/nighttime.png"); 
}

header { 
  padding: 40% 50% 10% 10%;
  text-align: center;
} 

h2.kicker {
  font-family: "Waiting for the Sunrise", "Caveat", "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

h1.title {
  font-family: "Waiting for the Sunrise", "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.4;
}

.theme-btn {
  padding: 6px 12px;
  border: 2px solid #1c3559;
  background: transparent;
  color: #1c3559;
  font-family: "Waiting for the Sunrise", "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
}

/* .theme-btn.active, */
.theme-btn:hover {
  background: #1c3559;
  color: #e3e1d3;
}

body.nighttime .theme-btn {
  border-color: #d1d2b6;
  color: #e3e1d3;
}

body.nighttime .theme-btn:hover,
body.nighttime .theme-btn.active {
  background: #d1d2b6;
  color: #1c3559;
}

/* SLIDES */

main {
  padding: 0 25%;
}

h2 {
  font-family: "Waiting for the Sunrise", "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.4;
  padding-bottom: 0.5rem;
}

#intro-text > p,
#quiz-extro > p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  display: block;
  text-align: left;
}

.intro-slide,
.quiz-slide,
.extro-slide {
  text-align: center;
  max-width: 800px;
}

/* QUIZ */

.quiz-slide {
  padding-top: 5rem;
  align-items: center;
  justify-content: flex-start;
}

.quiz-slide .question,
.quiz-slide .answer-btn {
  text-align: center;
}

.progress-container {
  width: 100%;
  height: 8px;
  background-color: rgba(115, 154, 193, 0.2);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4e88c2, #0d3452);
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

body.nighttime .progress-bar {
  background: linear-gradient(90deg, #2b467a, #7ea6c5);
}

.question {
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #3c4d59;
}

body.nighttime .question {
  color: #e3e1d3;
}

.answer-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.answer-btn {
  font-family: "Waiting for the Sunrise", "Caveat", "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  border: 1px solid #1c3559;
  background: transparent;
  color: #1c3559;
  border-radius: 50px;
  transition: all 0.3s ease;
  min-width: 100px;
  margin: 0.3rem;
  padding: 1.2rem;
}

.answer-btn:hover {
  background: #1c3559;
  color: #e3e1d3;
}

body.nighttime .answer-btn {
  border-color: #d1d2b6;
  color: #e3e1d3;
}

body.nighttime .answer-btn:hover {
  background: #d1d2b6;
  color: #1c3559;
}

.text-description {
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin: 2rem;
  padding: 2rem;
  background: #ffffff35;
  border-radius: 15px;
  border: 0.5px solid #1c3559;
  border-right: 4px solid #1c3559;
  text-align: left;
  display: none;
}

body.nighttime .text-description {
  border: 0.5px solid #d1d2b6;
  border-right: 4px solid #d1d2b6;
}

.next-btn {
  font-family: "Waiting for the Sunrise", "Caveat", "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  padding: 12px 24px;
  background: #1c3559;
  color: #e3e1d3;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: none;
}

.next-btn:hover {
  border: 2px solid #1c3559;
  background: transparent;
  color: #1c3559;
}

body.nighttime .next-btn {
  background: #d1d2b6;
  color: #1c3559;
}

body.nighttime .next-btn:hover {
  border: 2px solid #d1d2b6;
  background: transparent;
  color: #e3e1d3;
}

/* extro */
.extro-slide {
  display: none;
}

.extro-slide.show {
  display: flex;
}

.restart-btn {
  font-family: "Waiting for the Sunrise", "Caveat", "Instrument Sans", Arial, Helvetica, sans-serif;
  padding: 15px 30px;
  background: #0d3452;
  color: #e3e1d3;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.restart-btn:hover {
  background: #5d91c4;
  transform: translateY(-2px);
}

footer p {
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  text-align: left;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px dashed #5d91c4;
  line-height: 1.2;
}

footer a {
  color: #4e88c2;
}

/* hide scroll bars */

html { /* Firefox */
  scrollbar-width: none; 
} 

body { /* IE and Edge */
  -ms-overflow-style: none; 
} 

body::-webkit-scrollbar, /* Chrome */
body::-webkit-scrollbar-button,
.content::-webkit-scrollbar, /* Chrome */
.content::-webkit-scrollbar-button { 
  display: none; 
} 

/* mobile version */
@media (max-width: 768px) {
  .header-slide {
    background-image: url(images/daytime-horizontal.png);
    background-position: right;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem 2rem;
  }

  .header-slide.header-slide.nighttime {
    background-image: url(images/nighttime-horizontal.png);
  }

  header {
    padding: 60% 6% 5% 50%;
    text-align: center;
  }

  h1.title {
    font-size: 2rem;
    line-height: 1.1;
  }

  h2.kicker {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  #intro-text > p,
  #quiz-extro > p {
  font-size: 0.9rem;
  line-height: 1.2;
}

  .slide {
    padding: 1rem;
    align-items: center;
  }

  main {
    padding: 0 5%;
  }

  h2 {
    font-size: 1.5rem;
  }

  .question {
    font-size: 1.2rem;
    text-align: center;
  }

  .answer-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .answer-btn {
    width: 100%;
    min-width: auto;
    padding: 1rem;
  }

  .text-description {
    margin: 1rem 0;
    padding: 1rem;
  }

  .theme-btn,
  .next-btn,
  .restart-btn {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}