/* Universal styles */
@font-face {
  font-family: "Poppins";
  src: url("/Fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Domaine Display";
  src: url("/Fonts/DomaineDisplay-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  background: #f1f1f1;
  margin: 0;
  padding-top: 100px;
  font-family: Poppins, sans-serif;
  color: #28003b;
  scroll-behavior: smooth;
}
body.no-scroll {
  overflow: hidden;
}
section {
  min-height: 0vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #28003b;
  color: #f1f1f1;
  z-index: 999;
  padding: 20px 0;
}
#site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
}
@media (max-width: 600px) {
  #site-header nav {
    padding: 0 10px;
  }
}
.logo-link {
  text-decoration: none;
  position: relative;
}
.logo-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.logo-link:hover::after {
  transform: scaleX(1);
}
#logoVid {
  display: block;
  max-height: 80px;
  width: auto;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 8rem;
}
/* nav links use the headline font */
.nav-left a:not(.logo-link) {
  position: relative;
  font-family: "Poppins";
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}
.nav-left a:not(.logo-link)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}
.nav-left a:not(.logo-link):hover::after {
  transform: scaleX(1);
}
@media (min-width: 1200px) {
  .nav-left {
    gap: 8rem;
  }
}
@media (max-width: 1199px) {
  .nav-left {
    gap: 4rem;
  }
}
.contact-link {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #f1f1f1;
  background: transparent;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.contact-link:hover {
  background: #f1f1f1;
  color: #28003b;
  border-color: #28003b;
  text-decoration: none;
}
/* Overlay & popup */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
}
#overlay.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 360px;
  background: #28003b;
  color: #fff;
  border-radius: 12px;
  visibility: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  box-sizing: border-box;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 101;
}
#popup.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
#popup .close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
#popup input {
  width: 80%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 12px 16px;
  margin: 10px 0;
  color: #fff;
  font-size: 0.95rem;
}
#popup input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
#startQuiz {
  margin-top: auto;
  background: #fff;
  color: #28003b;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
}

/* Generic button style used throughout site */
.link-btn {
  background: #28003b;
  color: #fff;
  border: none;
  text-decoration: none;
  display: inline-block;
  border-radius: 20px;
  padding: 15px 30px;
  cursor: pointer;
  transition: transform 0.2s;
}
.link-btn:hover {
  transform: scale(1.05);
}
/* Footer */
#site-footer {
  background: #28003b;
  color: #f1f1f1;
  padding: 15px 20px;
  text-align: left;
}
