* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  cursor: url("../images/Normal Select.cur"), auto;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
  background: url("../images/bgaero_upscayl_3x_upscayl-standard-4x.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(0, 140, 220, 0.22),
      transparent 32%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(110, 70, 220, 0.18),
      transparent 28%
    ),
    radial-gradient(circle at 72% 82%, rgba(0, 190, 150, 0.14), transparent 30%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* Bubbles */

.bubble {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.06) 55%,
    transparent 85%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 0.35),
    0 0 35px rgba(0, 180, 255, 0.18);
  animation: float 10s ease-in-out infinite;
  z-index: -1;
}

/* Large */

.bubble1 {
  width: 280px;
  height: 280px;
  top: 24%;
  right: 6%;
}

.bubble2 {
  width: 180px;
  height: 180px;
  bottom: 12%;
  left: 8%;
  animation-delay: 2s;
}

.bubble3 {
  width: 130px;
  height: 130px;
  top: 58%;
  right: 18%;
  animation-delay: 4s;
}

/* Small */

.bubble4 {
  width: 70px;
  height: 70px;
  top: 16%;
  left: 12%;
  animation-delay: 1s;
}

.bubble5 {
  width: 55px;
  height: 55px;
  top: 34%;
  right: 24%;
  animation-delay: 3s;
}

.bubble6 {
  width: 90px;
  height: 90px;
  bottom: 22%;
  right: 8%;
  animation-delay: 5s;
}

.bubble7 {
  width: 45px;
  height: 45px;
  bottom: 30%;
  left: 24%;
  animation-delay: 6s;
}

.bubble8 {
  width: 65px;
  height: 65px;
  top: 72%;
  left: 18%;
  animation-delay: 2.5s;
}

.bubble9 {
  width: 50px;
  height: 50px;
  top: 28%;
  right: 32%;
  animation-delay: 7s;
}

.bubble10 {
  width: 38px;
  height: 38px;
  bottom: 10%;
  left: 40%;
  animation-delay: 4.5s;
}

/* Extra glass spheres */

.bubble11 {
  width: 34px;
  height: 34px;
  top: 44%;
  right: 42%;
  animation-delay: 1.5s;
}

.bubble12 {
  width: 26px;
  height: 26px;
  bottom: 38%;
  right: 30%;
  animation-delay: 3.5s;
}

.bubble13 {
  width: 42px;
  height: 42px;
  top: 14%;
  left: 38%;
  animation-delay: 5.5s;
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Navigation */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1360px, calc(100% - 48px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
  background: transparent;
  backdrop-filter: saturate(1.3) url(#de-glass-distortion);
  -webkit-backdrop-filter: saturate(1.3) url(#de-glass-distortion);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 40px rgba(0, 0, 20, 0.4);
  z-index: 100;
}

.nav-subtext {
  display: block;
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: url(#de-glass-distortion);
  -webkit-backdrop-filter: url(#de-glass-distortion);
  pointer-events: none;
  z-index: -1;
}

.navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.08)
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.navbar > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo {
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}
.nav-subtext {
  font-size: 0.72rem;
  font-weight: 400;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
  cursor: url("../images/Link Select.cur"), pointer;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}
.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 220, 255, 0.85);
}

.container {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 80px;
}

.card,
.card::before,
.card::after {
  border-radius: 3rem;
}

.card {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: max(460px, calc(100vh - 300px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 1.1em;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);

  /* Allows the glass layers to fill the card */
  overflow: hidden;
  isolation: isolate;
}

.card > * {
  position: relative;
  z-index: 3;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
}

.card::before {
  z-index: 1;

  background: transparent;

  backdrop-filter: url(#de-glass-distortion);

  -webkit-backdrop-filter: url(#de-glass-distortion);

  filter: url(#de-glass-distortion);
}

.card::after {
  z-index: 2;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.08)
  );

  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.45);
}

.subcards {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .subcards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .subcards {
        grid-template-columns: 1fr;
    }
}

.subcard,
.subcard::before,
.subcard::after {
  border-radius: 3rem;
}

.subcard {
    position: relative;
    z-index: 10;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    width: auto;
    min-height: 300px;

    padding: 30px;

    display: flex;
    flex-direction: column;

    color: #fff;
    font-size: 1.1em;

    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(0, 0, 0, 0.75);

    overflow: hidden;
    isolation: isolate;
} 

.subcard > * {
  position: relative;
  z-index: 3;
}

.subcard::before,
.subcard::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
}

.subcard::before {
  z-index: 1;

  background: transparent;

  backdrop-filter: url(#de-glass-distortion);

  -webkit-backdrop-filter: url(#de-glass-distortion);

  filter: url(#de-glass-distortion);
}

.subcard::after {
  z-index: 2;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.08)
  );

  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.45);
}

.subcard:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.mascot {
  flex: 1;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: flex-start;
}
.mascot-text {
  text-align: left;
}
.mascot-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}
h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}
.subtitle {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}
.description {
  max-width: 580px;
  margin-top: 48px;
  font-size: 1.15rem;
}
p {
  display: block;
  line-height: 1.7;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}

/* Mascot */

.mascot-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-art::before {
  content: "";
  position: absolute;
  inset: 6% 10%;
  background: radial-gradient(
    circle at 42% 36%,
    rgba(140, 220, 255, 0.24),
    rgba(0, 140, 255, 0.08) 45%,
    transparent 70%
  );
  filter: blur(28px);
  pointer-events: none;
}
.mascot-art::after {
  content: "";
  position: absolute;
  bottom: 4%;
  width: 62%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.mascot-art img {
  position: relative;
  width: min(100%, 400px);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 150, 255, 0.35));
  animation: bob 4s ease-in-out infinite;
}

/* Liquid Button */

.banner-button {
  position: relative;
  display: inline-block;
  margin-top: 28px;
  padding: 14px 38px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
  cursor: url("../images/Link Select.cur"), pointer;

  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.25);

  backdrop-filter: url(#de-glass-distortion);
  -webkit-backdrop-filter: url(#de-glass-distortion);

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.45);

  overflow: hidden;
  isolation: isolate;

  transition: 0.25s ease;
}

.banner-button::before,
.banner-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.banner-button::before {
  z-index: -1;
  backdrop-filter: url(#de-glass-distortion);
  -webkit-backdrop-filter: url(#de-glass-distortion);
  filter: url(#de-glass-distortion);
}

.banner-button::after {
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.08)
  );
}

.banner-button:hover {
  border-color: rgba(255, 255, 255, 0.7);

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.25);

  transform: translateY(-3px);
}

.banner-button:active {
  transform: translateY(-1px) scale(0.98);
}
/* Sections */

h2 {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.panel,
.panel::before,
.panel::after {
  border-radius: 0.9rem;
}
.panel {
  position: relative;
  z-index: 10;
  padding: 22px;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}
.panel > * {
  position: relative;
  z-index: 12;
}
.panel::before,
.panel::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.panel::before {
  z-index: 9;
  filter: url(#de-glass-distortion);
  backdrop-filter: url(#de-glass-distortion);
  -webkit-backdrop-filter: url(#de-glass-distortion);
}
.panel::after {
  z-index: 11;
  background: transparent;
  box-shadow:
    inset 1px 1px 2px 0 rgba(255, 255, 255, 0.24),
    inset -1px -2px 3px 1px rgba(0, 0, 0, 0.3),
    0 0 6px 1px rgba(0, 0, 0, 0.35);
  transition: 0.2s;
}
.panel:hover::after {
  background: transparent;
}

footer {
  margin-top: 40px;
  text-align: center;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.75);
}

@media (max-width: 900px) {
  .mascot {
    grid-template-columns: 1fr;
  }
  .mascot-text {
    text-align: center;
  }
  .description {
    margin-left: auto;
    margin-right: auto;
  }
  .mascot-art {
    max-width: 280px;
    margin: 0 auto;
  }
  .navbar {
    width: calc(100% - 32px);
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 100px 0 48px;
  }
  .card {
    padding: 28px 22px;
  }
  h1 {
    font-size: 2.6rem;
  }
  .navbar {
    top: 12px;
    height: 56px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
}



@media (max-width: 800px) {
    #terminal {
        width: 100%;
    }
}

.Divider {
  border: none;
  height: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 35px 0;
}

.lesson-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    flex: 1;
}

.lesson-terminal {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lesson-text {
    min-width: 0;
}

.lesson-text-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.lesson-text-nav {
    margin-top: 24px;
}

.lesson-text-nav .btn {
    padding: 10px 26px;
}

#terminal {
    width: 100%;
    flex: 1;
    min-height: 500px;
    margin-top: 10px;
}

/* Lesson progress bar */

.lesson-progress {
  width: 100%;
  margin-bottom: 24px;
}

.lesson-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95);
}

.lesson-progress-bar {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -1px 3px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.lesson-progress-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: url(#de-glass-distortion);
  -webkit-backdrop-filter: url(#de-glass-distortion);
  filter: url(#de-glass-distortion);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.08)
  );
}

.lesson-progress-bar > div {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(155, 182, 237, 0.6),
    rgba(13, 68, 206, 0.6)
  );
  box-shadow: 0 0 18px rgba(0, 220, 255, 0.5);
  transition: width 0.4s ease;
}

/* Lesson sections */

.lesson-section {
  display: none;
}

.lesson-section.is-active {
  display: block;
  animation: lessonFade 0.4s ease;
}

@keyframes lessonFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lesson card: fill viewport so the terminal stretches to the bottom */

.lesson-card {
  min-height: calc(100vh - 260px);
}

.lesson-content {
    flex: 1;
    align-items: stretch;
}

/* Lesson controls */

.lesson-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.95);
  cursor: url("../images/Link Select.cur"), pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: url(#de-glass-distortion);
  -webkit-backdrop-filter: url(#de-glass-distortion);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.45);
  transition: 0.25s ease;
}

.btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.btn:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(12, 52, 231, 0.55),
    rgba(0, 13, 255, 0.4)
  );
  border-color: rgba(0, 220, 255, 0.5);
}

.btn-primary.is-ready:hover {
  box-shadow: 0 0 24px rgba(0, 220, 255, 0.55);
}

.btn-primary:not(.is-ready) {
  opacity: 0.45;
  cursor: default;
  filter: grayscale(0.4);
}

.lesson-controls .btn-primary:not(.is-ready):hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-primary.is-ready {
  background: linear-gradient(
    135deg,
    rgba(6, 65, 213, 0.55),
    rgba(0, 143, 252, 0.4)
  );
  border-color: rgba(0, 230, 140, 0.5);
}

@media (max-width: 600px) {
  .lesson-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

.small-font {
  font-size: x-small;
}


.quiz-card {
  max-width: 850px;
  margin: 40px auto;
}

.quiz-progress {
  margin-top: 18px;
}

.quiz-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.quiz-progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

#quizProgressFill {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, #36d07f, #49c8ff);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(80, 220, 160, 0.7);
  transition: width 0.3s ease;
}

#question {
  margin: 30px 0 20px;
  font-size: 22px;
}

#answers {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answer:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateX(3px);
}

.quiz-answer.correct {
  background: #e7f5e9;
  border-color: #3b8f4a;
}

.quiz-answer.incorrect {
  background: #f8e7e7;
  border-color: #b94a48;
}

.quiz-answer:disabled {
  cursor: default;
}

.quiz-answer:disabled:hover {
  transform: none;
}

#feedback {
  min-height: 24px;
  margin: 20px 0;
  font-weight: 500;
}

.feedback-correct {
  color: #03fb3c;
}

.feedback-incorrect {
  color: #fb0000;
}

#nextQuestionBtn {
  margin-top: 10px;
}

.quiz-results {
  text-align: center;
  padding: 30px 0;
}

.quiz-results h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.quiz-results p {
  font-size: 18px;
}

#restartQuizBtn {
  margin-top: 20px;
}

.quiz-answer {
    width: 100%;
    padding: 16px 20px;
    margin: 10px 0;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: inherit;
    font-size: 1rem;
    text-align: left;

    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.quiz-answer:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}


.quiz-answer:disabled {
    cursor: default;
}


.quiz-answer.correct {
    background: rgba(100, 220, 140, 0.18);
    border-color: rgba(100, 220, 140, 0.5);
}

.quiz-answer.incorrect {
    background: rgba(255, 90, 90, 0.18);
    border-color: rgba(255, 90, 90, 0.5);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;

  color: inherit;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.category-desc {
  font-size: 0.9rem;
  opacity: 0.75;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.quiz-header h2 {
  margin: 0;
}

.back-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  color: inherit;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.95rem;
}

.quiz-counter {
  opacity: 0.9;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.quiz-counter #questionNumber {
  font-weight: 700;
  font-size: 1.4rem;
}

.quiz-counter #quizTotal {
  font-size: 1.1rem;
  opacity: 0.8;
}

.quiz-next-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;

  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.quiz-next-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.quiz-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-next-btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.result-score {
  font-size: 1.3rem;
  text-align: center;
  margin-top: 10px;
}

.result-message {
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
}

.quiz-result-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .quiz-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.validation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
}

.validation-badges a {
  line-height: 0;
}

.validation-badges img {
  max-width: 100%;
  height: auto;
}