/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background: url("assets/finish.jpg") no-repeat center center/cover;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  text-align: center;
  position: relative;
}

/* MOBILE BACKGROUND */
@media (max-width: 599px) {
  body {
    background: url("https://i.postimg.cc/3R6mk55H/wallpaperflare-cropped.jpg") 
                no-repeat center center/cover;
    background-size: cover;
  }
}

/* OVERLAY */
.overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* COUNTDOWN CONTAINER */
.countdown-container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* TITLES */
.title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ff5c5c;
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: #ffffff;
  opacity: 0.9;
}

/* ZOOM ANIMATION FOR TITLE */
.zoom {
  animation: zoomInOut 2s infinite;
}

@keyframes zoomInOut {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* TIMER WRAPPER */
.timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

/* TIME BOXES */
.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px 30px;
  width: 120px;
}

/* BIG NUMBER */
.number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #ffffff;
}

/* LABEL (Hours, Minutes, Seconds) */
.label {
  font-size: 1rem;
  color: #ffffff;
  opacity: 0.8;
}

/* MEDIA QUERIES */

/* For tablets and larger devices */
@media (min-width: 600px) {
  .countdown-container {
    padding: 40px 60px;
  }
  .title {
    font-size: 3.5rem;
  }
  .subtitle {
    font-size: 1.6rem;
  }
  .time-box {
    width: 140px;
  }
  .number {
    font-size: 3.5rem;
  }
}

/* For desktops and larger devices */
@media (min-width: 992px) {
  .countdown-container {
    padding: 50px 80px;
  }
  .title {
    font-size: 4rem;
  }
  .subtitle {
    font-size: 1.8rem;
  }
  .time-box {
    width: 160px;
  }
  .number {
    font-size: 4rem;
  }
}

/* For mobile devices */
@media (max-width: 599px) {
  body {
    padding: 20px;
  }
  .countdown-container {
    padding: 20px 20px;
  }
  .title {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .time-box {
    width: 100px;
    padding: 15px 20px;
  }
  .number {
    font-size: 2rem;
  }
  .label {
    font-size: 0.8rem;
  }
}
