*,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lexend", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-optical-sizing: auto;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #F4F7F7;
  color: #235558;
  min-height: 100vh;
}

h1 {
  font-size: 27px;
}


h1,
h2,
h3 {
  font-weight: 400;
  margin-bottom: 1rem;
}

.header-content h1 {
  padding: 10px;
}


p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -50px;
  right: 0;
  text-decoration: none;
  padding: 10px;
  background: #235558;
  color: white;
  cursor: pointer;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus-visible {
  top: 0;
  outline-offset: 2px;
}

#header {
  background: #E7F1F1;
  padding-bottom: 10px;
}

.nav-list {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  list-style: none;
}

a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  color: #235558;
  padding: 10px;
}

a:hover {
  background-color: #CCE3E4;
}


#main-content {
  flex-grow: 1;
}

#introduction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 4rem;
}




.text-container {
  position: absolute;
  width: 100%;
  padding: 1rem;
}

.img-container {
  position: relative;
  background-color: #E9F1F1;
  background: -webkit-linear-gradient(#CCE3E4cc, #F5F7F7cc);
  top: 0;
  z-index: -1;
  width: 100%;
  height: 37vh;
  overflow: hidden;
}

.decorative-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.3;

}

#about {
  text-align: center;
  margin: 4rem auto;
  margin-bottom: 4rem;
}

.navigation-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap-reverse;
  padding: 10px;
  margin-bottom: 4rem;
  text-align: center;
}

.descriptive-img {
  max-width: 600px;
  width: 100%;
  height: 100%;
  margin-top: 2rem;
}

/*quiz styling*/

#quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
}

.quiz-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  background-color: #E7F1F1;
  border-radius: 8px;
  height: 20px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  background-color: #235558;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 8px;
}

legend {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  /* color: #235558; */
  background-color: #BFF6D4;
  padding: 10px;
  border: 2px solid #bababa;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.question {
  display: none;
  /* color: #235558; */
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid #bababa;
  border-radius: 15px;
  width: auto;
  max-width: 500px;
  padding: 10px;
  margin: 5px;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="radio"] {
  appearance: none;
}

.abc-index {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background-color: #F4F7F7;
  border: #6FB686 solid 2px;
  box-sizing: border-box;
}

.submit-btn {
  align-self: flex-end;
  margin-top: 1rem;
}

label.btn,
button.submit-btn,
#start-button,
.continue-btn {
  display: inline-block;
  color: #235558;
  font-size: 16px;
  background-color: #BFF6D4;
  padding: 10px 10px;
  border-radius: 25px;
  border: #6FB686 solid 2px;
  cursor: pointer;
}

label.btn:hover,
button.submit-btn:hover,
#start-button:hover,
.continue-btn:hover {
  background-color: #b2daff;
  border: #004280 solid 2px;
  box-shadow: #235558 0px 0px 10px;
}

/* style buttons when in focus */
button.submit-btn:focus-visible,
#start-button:focus-visible,
.continue-btn:focus-visible {
  outline: 2px solid #235558;
  outline-offset: 5px;
}


input[type="radio"]:checked+label {
  background-color: #00ff62;
  border-color: #00ff62;
}

/* style label when radio button is in focus */
input[type="radio"]:focus-visible+label {
  outline: 2px solid #235558;
  outline-offset: 5px;
}


.submit-btn {
  align-self: flex-end;
}

main {
  flex-grow: 1;
}

footer {
  /* position: fixed; */
  /* bottom: 0; */
  margin-top: auto;
  background: #E7F1F1;
  /* height: 50px; */
  width: 100%;
}

footer p {
  padding: 10px;
  align-items: left;
  font-size: 12px;
  margin: 0;
}

.error {
  color: red;
  font-size: 16px;
  padding: 15px 10px 10px 10px;
}

.message-container {
  display: none;
  /* color: #235558; */
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  border: 2px solid #bababa;
  border-radius: 15px;
  width: auto;
  max-width: 500px;
  padding: 20px;
  margin: 10px 5px;
}

.results-container {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  border: 2px solid #bababa;
  border-radius: 15px;
  width: auto;
  max-width: 500px;
  padding: 50px;
  margin: auto;
  margin-bottom: 50px;
  text-align: center;
}

.results-container p {
  font-size: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quiz-gif {
  max-width: 100%;
  width: 200px;
  height: auto;
  margin-top: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.results-container h2 {
  font-size: 28px;
  color: #235558;
  text-align: center;
  margin-bottom: 1rem;
}

/* 
- fix the shadows on answer btn when hoovering 
- maybe other colors idk 
- fix the font size of the question?
- fix the font size of the submit button
- fix legend size and centering
*/


/* LEXEND font class for a variable style

// <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name

.lexend-<uniquifier> {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
  */

@media screen and (min-device-width: 320px) and (max-device-width: 1200) {
  body {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 1.2rem;
  }

}

@media (min-width: 1024px) {
  body {
    font-size: 1.4rem;
  }

  .navigation-info {
    gap: 4rem;
  }
}