@import url("https://fonts.googleapis.com/css2?family=Antic+Didone&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap");

/* CountDown Section */

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 2rem;
  overflow: hidden;
}

.countdown-background {
  align-items: center;
  background-image: url(./event.jpeg);
  background-position: center;
  background-size: cover;
  color: #333;
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  height: 100vh;
  justify-content: center;
}

.countdown {
  align-items: center;
  background-color: rgb(255, 255, 255, 0.5);
  border-radius: 1rem;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  height: 300px;
  justify-content: center;
  padding: 1rem;
  width: 300px;
}

.countdown-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: 110%;
}

.countdown-heading {
  font-family: "Antic Didone", serif;
  font-size: 1.8rem;
  letter-spacing: 1rem;
}

.counter {
  font-size: 6rem;
  z-index: 999;
  text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.7);
}

.count-days,
.count-hours,
.count-minutes,
.count-seconds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.countdown-footer {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
}

@media screen and (min-width: 414px) {
  .countdown-background {
    font-size: 1.7rem;
  }
  .countdown {
    width: 390px;
  }
  .countdown-container {
    gap: 4rem;
  }
  .countdown-heading {
    font-size: 2.5rem;
  }
  .counter {
    font-size: 7rem;
  }
  .countdown-footer {
    font-size: 2rem;
  }
}

@media screen and (min-width: 768px) {
  .countdown-background {
    font-size: 2rem;
  }
  .countdown {
    width: 550px;
    height: 400px;
  }
  .countdown-container {
    gap: 7rem;
  }
  .countdown-heading {
    font-size: 3.5rem;
  }
  .counter {
    font-size: 7rem;
  }
  .countdown-footer {
    font-size: 2.5rem;
  }
}
@media screen and (min-width: 1024px) {
  .countdown-background {
    width: 60%;
    margin: auto;
  }
  body {
    background-color: #eee;
  }
}
