:root {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  --primary-red: #8c1d2c;
  --primary-gold: #f5c16c;
  /* Global aspect ratio for wide layout: width : height = 2.1 : 1 */
  --soict-aspect-ratio: 2.1 / 1;
  --soict-aspect-ratio-number: 2.1;
  /* Remove dark veil to make page brighter */
  --dark-overlay: rgba(0, 0, 0, 0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('/back_ground.jpg') center/cover fixed no-repeat;
  position: relative;
}

body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark-overlay);
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  /* Make the main content area wider to better fit the canvas and controls */
  width: min(1600px, 96vw);
  /* Lighter translucent panel for a brighter look */
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

h1,
h2,
h3,
p {
  margin: 0 0 16px;
}

/* Center main section headings on the homepage */
main > section {
  text-align: center;
}

.accent {
  color: var(--primary-gold);
}

.button-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 18px 32px;
  border-radius: 999px;
  border: 2px solid var(--primary-gold);
  background: transparent;
  font-size: 1.1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  min-width: 220px;
}

.btn.primary {
  background: linear-gradient(135deg, #a82538, #e24b2c);
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
}

.card {
  background: rgba(0, 0, 0, 0.18);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  background: rgba(245, 193, 108, 0.18);
  border: 1px solid rgba(245, 193, 108, 0.5);
}

.hidden {
  display: none !important;
}

/* Password Modal */
.password-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.password-modal.hidden {
  display: none;
}

.password-modal-content {
  background: rgba(23, 2, 2, 0.95);
  border-radius: 24px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.password-modal h3 {
  margin: 0 0 16px;
  color: var(--primary-gold);
  text-align: center;
}

.password-modal input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(245, 193, 108, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: inherit;
}

.password-modal input:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.15);
}

.password-modal .countdown {
  text-align: center;
  color: var(--primary-gold);
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.password-modal .error-message {
  color: #ff6b6b;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 12px;
  min-height: 20px;
}

.password-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.password-modal-actions .btn {
  min-width: 120px;
  padding: 12px 24px;
}

@media (max-width: 640px) {
  main {
    padding: 32px 24px;
  }

  .btn {
    width: 100%;
  }

  .password-modal-content {
    padding: 32px 24px;
  }
}

/* Fullscreen toggle button */
.fullscreen-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
  backdrop-filter: blur(4px);
  font-weight: 700;
}

/* Fullscreen overlay/iframe */
#soict-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

#soict-fullscreen-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

