body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
  padding: 40px;
  max-width: 600px;
}

.logo {
  width: 120px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  margin: 10px 0;
}

.tagline {
  font-weight: 500;
  color: #555;
  margin-top: 40px;   /* Increased space ABOVE */
  margin-bottom: 25px; /* Increased space BELOW */
  font-size: 1.1rem;
}

.message {
  font-weight: 300;
  font-size: 1rem;
  color: #666;
}
#countdown-box {
  margin-top: 30px;
  font-size: 1.2rem;
  color: #333;
}

#countdown {
  font-weight: 600;
  font-size: 1.4rem;
  margin-top: 8px;
  color: #000;
}

#countdown span {
  display: inline-block;
  min-width: 35px;
}
/* Countdown Container */
#countdown-box {
  margin-top: 35px;
  text-align: center;
}

/* Title */
.countdown-title {
  color: #777;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Countdown Row */
#countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #555;
}

/* Boxed Values */
.cd-block {
  background: #e0e0e0;        /* Light grey */
  color: #333;
  padding: 10px 18px;
  border-radius: 12px;        /* Rounded ends */
  font-size: 1.2rem;
  min-width: 40px;
  display: inline-block;
  text-align: center;
  letter-spacing: 1px;
}

/* Separator style */
.separator {
  color: #999;
  font-weight: 700;
  font-size: 1.4rem;
}
/* Group tagline + message at the bottom */
.bottom-group {
  position: absolute;
  bottom: 40px;     /* Adjust height from bottom */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Reduced spacing between tagline and the message */
.tagline {
  font-weight: 500;
  color: #555;
  margin: 0 0 8px 0;   /* Only 8px gap below tagline */
}

.message {
  font-weight: 300;
  font-size: 1rem;
  color: #666;
  margin: 0;           /* Remove extra spacing */
  line-height: 1.4;
}
/* Main container stays full screen centered */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #222;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* This ensures top content is centered vertically */
.center-group {
  text-align: center;
  position: absolute;
  top: 80px; /* distance from the top */
  left: 50%;
  transform: translateX(-50%);
}

/* Bottom content fixed at bottom */
.bottom-group {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Reduced spacing between tagline + message */
.tagline {
  font-weight: 500;
  color: #555;
  margin: 0 0 8px 0;
}

.message {
  font-weight: 300;
  font-size: 1rem;
  color: #666;
  margin: 0;
}
/* Spin effect on cogwheel */
.cog-spin {
  animation: spin 6s linear infinite;
  transform-origin: center center;   /* ensure perfect rotation axis */
  display: inline-block;             /* prevents layout shift */
  image-rendering: auto;             /* smooths edges */
}

/* Define the rotation animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Desktop cogwheel size */
.cog-spin {
  width: 60px;
  height: 60px;      /* Force square shape */
  object-fit: contain;  
}

/* MOBILE LAYOUT */
@media (max-width: 600px) {

  /* Let the page scroll naturally on mobile */
  body {
    display: block;
    height: auto;
    align-items: flex-start;
  }

  .container {
    max-width: 100%;
    padding: 24px 16px 40px;
  }

  /* Top section: logo + heading + countdown */
  .center-group {
    position: static;        /* cancel absolute */
    transform: none;
    text-align: center;
    margin-top: 20px;
  }

  /* Bottom text: tagline + message */
  .bottom-group {
    position: static;        /* IMPORTANT: no absolute/fixed on mobile */
    transform: none;
    text-align: center;
    margin-top: 300px;        /* <<< SPACE ABOVE THIS BLOCK */
    padding-bottom: 24px;    /* a bit of breathing room at bottom */
  }

  .tagline {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
  }

  .message {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
  }

  /* Optional: slightly smaller countdown on mobile */
  #countdown {
    gap: 4px;
  }

  .cd-block {
    padding: 6px 10px;
    font-size: 0.9rem;
    min-width: 32px;
  }
}
