:root {
  --purple-dark: #523474;
  --blue-accent: #61d8e6;
  --beige-accent: #a49079;
  --cream-bg: #ddd5c9;
  --indigo: #3c3678;
  --logo-blue: #50688f;
  --btn-bg: #50688f;
  --btn-hover: #61d8e6;
  --btn-hover-text: #523474;
  --contact-btn-bg: #3c3678;
  --contact-btn-hover: #523474;
  --subtitle: #a49079;
  --title: #61d8e6;
}

/* Ensure email and all buttons are white font */
.email-under-logo a,
.guidebook-link,
.link-btn,
.newsletter button,
.contact-btn {
  color: #fff !important;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--purple-dark) url("Backgroud - GitHub Links.png") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  min-height: 100vh;
  transition: background 0.3s;
}

.container {
  max-width: 460px;
  margin: 32px auto;
  padding: 32px 18px 16px 18px;
  background: transparent;
  border-radius: 22px;
  box-shadow: none;
  text-align: center;
  transition: background 0.3s;
}

.banner {
  margin-bottom: 16px;
}
.banner-img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}
.logo {
  width: 100px;
  margin-bottom: 8px;
  border-radius: 22%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  background: #fff;
  border: 3px solid var(--logo-blue);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.email-under-logo {
  margin-bottom: 10px;
}

.main-title {
  font-family: 'Arimo', Arial, sans-serif;
  font-size: 16pt;
  font-weight: bold;
  color: var(--blue-accent);
  margin: 12px 0 8px 0;
  line-height: 1.13;
  text-align: center;
}

.subtitle, .subtitle2 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14pt;
  font-weight: bold;
  color: var(--beige-accent);
  margin-bottom: 8px;
}
.subtitle2 {
  margin: 15px 0 8px 0;
}

.guidebook-section {
  margin-bottom: 16px;
}
.guidebook-link {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12pt;
  font-weight: 600;
  background: var(--btn-bg);
  padding: 9px 32px;
  border-radius: 9px;
  text-decoration: none;
  display: inline-block;
  margin-top: 7px;
  margin-bottom: 7px;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 8px rgba(146,168,209,0.11);
}
.guidebook-link:hover, .guidebook-link:focus {
  background: var(--btn-hover);
  color: var(--btn-hover-text) !important;
}

.section-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14pt;
  font-weight: 700;
  color: var(--blue-accent);
  margin-top: 16px;
  margin-bottom: 12px;
  text-align: left;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 7px;
}
.links.two-col {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.links.two-col .link-btn {
  width: 48%;
  min-width: 170px;
  margin-bottom: 0;
}

.link-btn {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12pt;
  background: var(--btn-bg);
  font-weight: 600;
  text-decoration: none;
  padding: 11px 0;
  border-radius: 13px;
  border: none;
  display: inline-block;
  transition: background 0.14s, color 0.14s, transform 0.13s;
  box-shadow: 0 2px 8px rgba(80,104,143,0.11);
  letter-spacing: 0.01em;
}
.link-btn:hover, .link-btn:focus {
  background: var(--btn-hover);
  color: var(--btn-hover-text) !important;
  transform: translateY(-2px) scale(1.03);
}

.newsletter {
  margin: 13px 0;
  padding: 10px;
  background: var(--indigo);
  border-radius: 9px;
}
.newsletter h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--blue-accent);
}
.newsletter input[type="email"] {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #aaa;
  font-size: 1rem;
  margin-right: 7px;
  width: 62%;
}
.newsletter button {
  background: var(--blue-accent);
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s;
  padding: 8px 14px;
}
.newsletter button:hover, .newsletter button:focus {
  background: var(--btn-hover);
  color: var(--btn-hover-text) !important;
}

.contact {
  margin: 11px 0 11px 0;
}
.contact-btn {
  background: var(--contact-btn-bg);
  text-decoration: none;
  padding: 11px 34px;
  border-radius: 10px;
  font-size: 12pt;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.17s, color 0.13s;
  box-shadow: 0 2px 8px rgba(46,124,202,0.10);
  border: none;
  display: inline-block;
}
.contact-btn:hover, .contact-btn:focus {
  background: var(--contact-btn-hover);
  color: #fff !important;
}

.qr-section {
  margin: 18px 0 6px 0;
}
#qrCode {
  margin: 0 auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(146,168,209,0.07);
}

footer {
  margin-top: 18px;
  font-size: 0.97rem;
  color: #aaa;
  background: transparent;
}
footer a {
  color: var(--blue-accent);
  text-decoration: underline;
}

.mode-toggle {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 100;
}
#toggleMode {
  background: var(--blue-accent);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.35);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 88%;
  max-width: 430px;
  position: relative;
}
.close {
  color: #aaa;
  position: absolute;
  right: 17px;
  top: 15px;
  font-size: 2rem;
  cursor: pointer;
}

/* Ensure video embed is centered and responsive */
.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.video-section > div {
  width: 100%;
  max-width: 420px;
}

.video-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16/9;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--blue-accent);
  border-radius: 12px;
  color: var(--blue-accent);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  background: #362254;
}

@media (max-width: 600px) {
  .container {
    padding: 10px 3px 6px 3px;
    max-width: 99vw;
  }
  .banner-img {
    max-width: 99vw;
  }
  .links.two-col .link-btn {
    width: 100%;
    min-width: unset;
  }
  .main-title {
    font-size: 1.25rem;
  }
  .video-section > div {
    max-width: 99vw;
  }
}
