* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Perfecto Calligraphy', 'Brush Script MT', sans-serif;
  background-color: #e8d4b4;
  color: rgb(0, 0, 0);
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  width: 100%;
}

.image-container {
  width: 100%;
  overflow: hidden;
}

.image-container img {
  margin-top: 10px;
  width: 100vw;  /* Ensure the image stretches across the entire width */
  height: 100%; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure the image covers the container while maintaining its aspect ratio */
}

.countdown {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 20px;
  flex-wrap: nowrap; /* Prevent wrapping and keep horizontal layout */
  align-items: center;
}

.countdown-item {
  margin: 0 15px;
  text-align: center;
  flex: 1; /* Allow items to shrink and grow based on available space */
}

.countdown-item span {
  font-size: 3.5rem;
  font-weight: bold;
  color: rgb(255, 255, 255);
}

.countdown-item p {
  font-size: 1.2rem;
  color: rgb(0, 0, 0);
}

.countdown-heading {
  font-size: 2.5rem;
  margin-top: 30px;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .countdown {
      justify-content: space-around; /* Keep items spaced out */
      flex-wrap: nowrap; /* Ensure countdown items stay horizontal */
      align-items: center; /* Center align items */
  }

  .countdown-item {
      flex: 1 1 14%; /* Allow items to shrink while maintaining their horizontal layout */
  }

  .countdown-item span {
      font-size: 2.8rem; /* Adjust font size for tablet-sized screens */
  }

  .countdown-item p {
      font-size: 1rem; /* Adjust text size for tablets */
  }

  .countdown-heading {
      font-size: 2rem; /* Smaller heading font for tablets */
  }
}

@media (max-width: 768px) {
  .countdown {
      justify-content: space-between;
      flex-wrap: nowrap; /* Keep items in a horizontal line */
  }

  .countdown-item {
      flex: 1 1 16%; /* Allow items to adjust size, but prevent wrapping */
      margin-bottom: 10px;
  }

  .countdown-item span {
      font-size: 2.5rem; /* Smaller font size for small screens */
  }

  .countdown-item p {
      font-size: 1rem; /* Adjust text size for smaller screens */
  }

  .countdown-heading {
      font-size: 1.8rem; /* Adjust heading font size for small screens */
  }
}
