/* =========================================================
   THEME VARIABLES
   --------------------------------------------------------- */
:root {
  --bg: #1e1e1e;
  --text: #fff;
  --muted: #cfcfcf;
  --nav: #000;
  --hover: #333;
  --circle: #000;
}

/* =========================================================
   BASE / RESET
   --------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  color: var(--text);
}

/* Utility (optional) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* =========================================================
   NAVBAR (top black bar)
   --------------------------------------------------------- */
.navbar {
  background: var(--nav);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}

.navbar h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* =========================================================
   ACCOUNT DROPDOWN (click to toggle)
   --------------------------------------------------------- */
/* Wrapper */
.dropdown {
  position: relative;
  display: inline-block;
}

/* The clickable "Account ▾" trigger */
.dropdown-toggle {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

/* Optional: rotate the caret when open */
.dropdown-toggle span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.dropdown.active .dropdown-toggle span {
  transform: rotate(180deg);
}

/* The menu panel (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background-color: #222;
  min-width: 170px;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
}

/* Show panel only when .dropdown has .active (set by JS) */
.dropdown.active .dropdown-content {
  display: block;
}

/* Menu items */
.dropdown-content a {
  color: var(--text);
  padding: 12px 14px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #444;
}

/* NOTE: we intentionally removed the hover-to-open rule:
   .dropdown:hover .dropdown-content { display:block; }
   because we are using click-to-toggle behavior instead. */

/* =========================================================
   MAIN CONTAINERS / LAYOUT
   --------------------------------------------------------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 16px 40px;
}

.presentation {
  text-align: center;
}

/* Section header row (e.g., "Early Access" and "Socials") */
.sections {
  display: flex;             /* make children sit in a row */
  justify-content: center;   /* center horizontally */
  align-items: center;       /* align vertically */
  gap: 16px;                 /* space between items */
  background-color: #000;
  text-align: center;
  padding: 10px 12px;
}

/* Optional section title styles (if you want badges) */
.earlyaccess-title,
.social-title {
  margin: 0;
  font-size: 1.25rem;
  background: #111;
  border-radius: 6px;
  padding: 6px 12px;
}

/* =========================================================
   MEDIA / IMAGES
   --------------------------------------------------------- */
.fullwidth {
  width: 100%;
  max-width: 800px;          /* prevents getting gigantic on wide screens */
  height: auto;
  display: block;
  margin: 20px auto 28px;
  border-radius: 12px;
}

/* =========================================================
   SOCIAL ICONS (circles + hover)
   --------------------------------------------------------- */
.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 40px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;               /* circle size */
  height: 50px;
  border-radius: 50%;
  background: var(--circle);
  transition: background-color .25s ease, transform .1s ease;
}

.social a:hover { background: var(--hover); }
.social a:active { transform: scale(0.98); }

.social img {
  width: 30px; height: 30px;
  object-fit: contain;
  /* your PNGs are white with transparent backgrounds */
}

/* =========================================================
   FOOTER
   --------------------------------------------------------- */
.footer {
  border-top: 1px solid #2a2a2a;
  padding: 16px;
  text-align: center;
  color: #9a9a9a;
  font-size: 0.95rem;
}

/* =========================================================
   RESPONSIVE (small screens)
   --------------------------------------------------------- */
@media (max-width: 480px) {
  .navbar { padding: 10px 14px; }
  .navbar h1 { font-size: 1.2rem; }

  .social a { width: 44px; height: 44px; }
  .social img { width: 22px; height: 22px; }
}


/* ===== MODALS (Login / Register) ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;                 /* HIDE by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.show {                    /* JS toggles this */
  display: flex;
}

.modal-content {
  position: relative;
  background: #222;
  color: var(--text);
  width: 320px;
  max-width: 92vw;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.modal-content h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: 0;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
}

#loginForm, #registerForm {
  display: grid;
  gap: 10px;
}

#loginForm label, #registerForm label {
  font-size: .9rem;
  color: var(--muted);
  text-align: left;
}

#loginForm input, #registerForm input {
  background: #111;
  color: var(--text);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
}

.btn-primary {
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.form-hint { font-size: .9rem; margin: 6px 0 0; }
#registerError, #loginError { color: #f77; }
#registerInfo,  #loginInfo  { color: #9fd; }

.captcha-box {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.captcha-box iframe {
  transform: scale(0.9);      /* adjust size */
  transform-origin: top;      /* anchor scaling to top */
}