/* ---------------------------
   GLOBAL STYLES
--------------------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #5a0000, #2a0000); /* deep red gradient */
  color: #f9f9f9;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Georgia', serif;
  color: #ffd700; /* gold */
  text-shadow: 2px 2px 4px #000;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
}

.container {
  max-width: 800px;      /* optional for desktop */
  width: 90%;            /* takes most of screen on mobile */
  margin: 60px auto;
  padding: 20px;
  border-radius: 15px;
  background-color: #0b3d0b; /* or your Christmas color */
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

input {
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ffd700;
  width: 200px;
  margin-top: 10px;
  background-color: #0b3d0b;
  color: #fff;
}

/* ---------------------------
   BUTTONS
--------------------------- */
button {
  padding: 10px 20px;
  margin: 10px 5px 10px 0;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  background-color: #c70000; /* deep red */
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 5px #000;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background-color: #ff4444; /* brighter red */
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px #000;
}

a button {
  background-color: #008000; /* green */
}
a button:hover {
  background-color: #00cc00;
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px #000;
}

.hidden { display: none; }

/* ---------------------------
   OVERLAY / POPUP
--------------------------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; 
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 999;
}

.popup {
  background-color: #0b3d0b;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  max-width: 600px;
  text-align: center;
  border: 2px solid #ffd700;
}

.popup h1, .popup h2 {
  color: #ffd700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px #000;
}

.popup p {
  color: #fff;
  font-size: 1.1em;
}

.popup input {
  margin-top: 15px;
  width: 150px;
  border: 1px solid #ffd700;
  background-color: #0b3d0b;
  color: #fff;
}

.popup .hint {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(255,215,85,0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
}

/* ---------------------------
   PROGRESS BAR
--------------------------- */
.progress-container {
  width: 100%;
  background-color: #333;
  border-radius: 10px;
  margin: 10px 0 20px 0;
  height: 20px;
  box-shadow: inset 0 0 5px #000;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(to right, #ffd700, #c70000); /* gold → red */
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

/* ---------------------------
   SNOW
--------------------------- */
.snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  z-index: 1000;
  user-select: none;
  pointer-events: none;
  opacity: 0.8;
  font-size: 15px;
  animation-name: fall, sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

@keyframes fall {
  0% { transform: translateY(-10px); opacity: 0.8; }
  100% { transform: translateY(100vh); opacity: 0.2; }
}

@keyframes sway {
  0% { transform: translateX(0px); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0px); }
}

/* ---------------------------
   DECORATIVE TOUCHES
--------------------------- */
.container h1::before, .container h1::after {
  content: "❄";
  margin: 0 5px;
}

.container p::before, .container p::after {
  content: "🎄";
  margin: 0 3px;
}
