/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

/* MAIN BACKGROUND */
#main-content {
  height: 100svh;
  min-height: 100svh;
  width: 100%;

  background-size: contain;      /* full image, no crop */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;        /* fallback fill */

  transition: filter 0.5s ease;

  filter: contrast(1.05) brightness(0.95);

  will-change: background-image;
}

/* OVERLAY */
.overlay {
  position: relative;
  min-height: 100svh;
  width: 100%;

  background: rgba(0, 0, 0, 0.45);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  text-align: center;
  padding: 40px 20px max(24px, env(safe-area-inset-bottom));
}

/* NAMES */
h1 {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 1px;

  margin-bottom: 6px;

  text-shadow: 
    0 4px 20px rgba(0,0,0,0.6),
    0 0 10px rgba(255, 77, 109, 0.35); /* subtle romantic glow */
}

/* SUBTITLE */
h2 {
  font-weight: 300;
  margin-bottom: 16px;

  opacity: 0.95;
  letter-spacing: 0.5px;
}

.countdown-panel {
  width: min(100%, 860px);
  align-self: flex-end;
  margin-top: auto;
}

#countdown {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* COUNTDOWN BOX */
#countdown div {
  padding: 14px 16px;   /* reduced */
  min-width: 75px;      /* reduced */
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.14);

  backdrop-filter: blur(8px);

  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#countdown div:hover {
  transform: translateY(-5px);
}

/* NUMBERS */
#countdown span {
  font-size: 2.2rem;  /* was too large */
}


/* LABEL */
#countdown p {
  font-size: 0.8rem;
}

/* PASSWORD SCREEN */
#password-screen {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: white;
}

/* PASSWORD BOX */
.password-box {
  text-align: center;
  background: rgba(255,255,255,0.05);
  padding: 30px 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* INPUT */
input {
  padding: 12px 15px;
  margin-top: 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  width: 220px;
  text-align: center;
  font-size: 1rem;
}

/* BUTTON */
button {
  margin-top: 15px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  border: none;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255,77,109,0.5);
}

/* ERROR TEXT */
#error {
  color: #ff6b6b;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* HIDDEN CLASS */
.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  /* Titles */
  h1 {
    font-size: 2.1rem;
    margin-bottom: 4px;
  }

  h2 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  #countdown {
    gap: 12px;
  }

  /* Countdown boxes */
  #countdown div {
    padding: 12px 14px;
    min-width: 65px;
    border-radius: 14px;
  }

  /* Numbers */
  #countdown span {
    font-size: 1.8rem;
  }

  /* Labels */
  #countdown p {
    font-size: 0.75rem;
  }

  /* General spacing */
  .overlay {
    padding: 20px 12px max(18px, env(safe-area-inset-bottom));
  }
}
