:root {
  /* Teal Shades */
  --teal-90: #022b30;
  --teal-70: #005d5d;
  --teal-50: #009d9a;
  --teal-30: #3ddbd9;

  /* Accent Color - Coral */
  --accent-coral: #ea7348;

  /* Supporting Contrast Colors */
  --dark-gray: #2F2F2F;
  --light-gray: #EAEAEA;

  --background-light: #D9FDFD;
  --background-dark: #022b30;

  --text-light: #D9FDFD;
  --text-dark: #081a1c;

  /* Shadows */
  --shadow-sm: 0px 2px 4px rgba(8, 26, 28, 0.1);
  --shadow-md: 0px 4px 8px rgba(8, 26, 28, 0.15);
  --shadow-lg: 0px 6px 12px rgba(8, 26, 28, 0.2);

  /* Heights */
  --height-sm: 2rem;
  --height-md: 3rem;
  --height-lg: 4rem;

  /* Fonts */
  --default-font: "Roboto", sans-serif;
  --secondary-font: "Roboto Mono", sans-serif;
  --third-font: "Atkinson Hyperlegible Mono", sans-serif;



  /* More readability */
  --default-font-size: 1rem;
}

/* Apply box-sizing border-box to all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
  align-items: center;
}

:focus {
  border: var(--accent-coral) 3px solid;
  outline: none;
}

body {
  display: flex;
  width: 100dvw;
  flex-direction: column;
  font-family: var(--default-font);
  background-color: var(--background-light);
  font-size: var(--default-font-size);
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

body::after {
  content: '';
  display: block;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal-90);
  color: var(--background-light);
  outline: 1px solid var(--accent-coral);
  padding: .5rem;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;

}

header {
  position: relative;
  width: 100vw;
  background-color: var(--teal-70);
  color: var(--text-light);
  padding: 0 15vw;
  box-shadow: var(--shadow-md);
  row-gap: var(--height-sm);
  background-image: url("/img/header-img.jpg");
  background-repeat: space;
  background-size: cover;
}

.font1 {
  font-family: var(--secondary-font);
}

.font2 {
  font-family: var(--third-font);
}

main h1,
h2,
h3 {
  margin-bottom: 1rem;
  color: var(--teal-70);
}

.card-header h2 {
  color: var(--text-light);
}

p {
  color: var(--teal-70);
}

#decorative-img {
  display: none;
  width: 100vw;
  max-height: 14rem;
  object-fit: cover;
  filter: hue-rotate(-37deg) saturate(.5);
  box-shadow: var(--shadow-lg);
}

a {
  color: var(--text-light);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 1em;
  list-style-type: none;
  padding: 0;
}

select {
  background-color: var(--teal-30);
  color: var(--teal-90);
  font-family: var(--default-font);
  font-size: var(--default-font-size);
  font-weight: 600;
  border-radius: .5rem;
}

#quizInstructions {
  display: none;
}

main {
  justify-content: space-evenly;
  text-align: justify;
  flex: 1;
  color: var(--teal-70);
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: start;
  width: 100dvw;
  align-content: center;
  margin-bottom: 2rem;
  padding: 0 2rem;

}

section p {

  padding: 0 .5rem;

}

#introduction {
  padding: 0 1rem;
}

#quizSection {
  padding: clamp(0 1rem, 75%, 20rem);
}

#quiz-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  border: var(--teal-70) 3px solid;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  margin: clamp(0, 35%, 1rem);
  min-width: 300px;
}

.card-header {
  background-color: var(--teal-70);
  border: var(--teal-70) 2px solid;
  width: 100%;
  text-align: center;
  color: var(--text-light);
  margin: 0;
  border-top-left-radius: .75rem;
  border-top-right-radius: .75rem;
  padding: 1rem
}

fieldset {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: auto;
  border: none;
  background-color: transparent;
  padding: 1rem;
  gap: 1rem;
}

label input[type="radio"] {
  height: 1rem;
  width: 1rem;
  cursor: pointer;
  color: var(--accent-coral);
}

label input[type="radio"]:focus {

  border: var(--accent-coral) 2px solid;
}

label {
  display: flex;
  justify-items: center;
  position: relative;
  cursor: pointer;
  width: 50vw;
  font-size: 1rem;
  font-weight: 600;
  column-gap: 1rem;
  background-color: var(--teal-70);
  padding: .5rem;
  border-radius: .5rem;
  color: var(--background-light);
}


label:hover {

  background-color: var(--accent-coral);
  color: var(--background-dark);
}

#quizOptions {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  width: auto;
  gap: 1rem;
  margin: 1rem;
}

button {
  background-color: var(--teal-70);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
  border-radius: .5rem;
  border: var(--teal-70) 1px solid;
  font-size: var(--default-font);
  height: var(--height-sm);
  font-weight: 600;
  margin-bottom: 2rem;
  width: 100%;
  padding: 1 2rem;
}

button:hover {
  background: var(--accent-coral);
  color: #022b30;
}

.informative-image {
  width: 100dvw;
}

.accessibility-item {
  display: flex;
  flex-direction: column;
}

footer {
  position: static;
  bottom: 0;
  width: 100vw;
  height: auto;
  padding: 0 15vw;
  background-color: var(--teal-70);
  color: var(--text-light);
}

.footer-content {
  text-wrap: wrap;
  padding: 0 2rem;
  color: var(--background-light);
}

footer p {
  color: var(--background-light);
}

/* Media Queries */
@media (min-width: 52rem) {



  main {
    text-align: left;
  }

  section p {

    padding: 0 6rem;

  }

  #decorative-img {
    display: block;
  }

  .card-header {
    padding: 1rem 3rem;
  }

  #quizSection {
    flex-direction: column;

    padding: 0 15rem;

  }

  #quiz-form {
    max-width: 50vw;

  }

  #quizInstructions {
    display: block;
    text-align: center;
  }

  label {
    width: 15vw;
  }

  .informative-image {
    width: 75dvw;
    margin-bottom: var(--height-sm);
  }
}