* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #353;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 800px;
  padding: 20px;
}

.decorative-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50vw;
  overflow: hidden;
}

.left-image {
  left: 0;
}

.right-image {
  right: 0;
}

.decorative-image img {
  /* width: 100%; */
  /* max-width: 100%; */
  height: auto;
  transform: rotate(90deg);
  object-fit: cover;
}

.left-image img {
  transform: rotate(90deg);
}

.right-image img {
  transform: rotate(90deg) scaleY(-1);
  transform-origin: center;
}

.countdown-container {
  text-align: center;
  border-radius: 20px;
  padding: 40px;
}

/* .title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0;
  animation: titleFadeIn 1.2s ease-out 0.2s forwards;
} */

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.target-date {
  margin-bottom: 40px;
}

.target-date p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  transition: all 0.3s ease;
}

.countdown {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.countdown.fade-in {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* min-width: 120px; */
  opacity: 0;
  animation: slideInScale 0.8s ease-out forwards;
}

.time-unit:nth-child(1) {
  animation-delay: 0.1s;
}

.time-unit:nth-child(2) {
  animation-delay: 0.2s;
}

.time-unit:nth-child(3) {
  animation-delay: 0.3s;
}

.time-unit:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInScale {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.number-container {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}

.digit {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  padding: 20px 10px;
  min-width: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.digit.flip {
  animation: fadeInUp 0.4s ease-out;
  /* animation: flipAnimation 0.3s ease-in-out; */
}

@keyframes flipAnimation {
  0% {
    transform: rotateX(0);
  }
  50% {
    transform: rotateX(-90deg);
  }
  100% {
    transform: rotateX(0);
  }
}

.label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  font-weight: 300;
}

.message {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 20px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .container {
    padding-top: 8px;
  }

  .decorative-image {
    position: absolute;
    width: 100vw;
    height: auto;
    left: 0;
    right: 0;
    transform: none;
  }

  .left-image {
    top: 2vh;
    left: 0;
    transform: rotate(180deg);
  }

  .right-image {
    bottom: 2vh;
    top: auto;
    right: 0;
    transform: rotate(180deg);
  }

  .decorative-image img {
    width: 140%;
    margin: auto;
  }

  .left-image img {
    transform: rotate(0deg);
  }

  .right-image img {
    transform: rotate(0deg) scaleY(-1);
  }

  .countdown {
    justify-content: center;
  }

  .time-unit {
    min-width: 20px;
  }

  .digit {
    font-size: 1.8rem;
    padding: 10px 6px;
    min-width: 20px;
  }

  .countdown-container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .countdown .time-unit {
    min-width: 30px;
  }

  .left-image {
    top: 1vh;
  }

  .right-image {
  }

  .decorative-image img {
  }
}
