* {
  box-sizing: border-box;
}

.countdown {
  width: 1%;
  display: flex;
  gap: 30px;
  font-family: sans-serif;
  transform: scale(0.3);
}

.square-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 70px;
}


.time-section {
  text-align: center;
  font-size: 30px;
}

.time-group {
  display: flex;
  gap: 10px;
}

.time-segment {
  display: block;
  font-size: 100px;
  font-weight: 900;
  width: 100px;
}

.segment-display {
  position: relative;
  height: 100%;
}

.segment-display__top,
.segment-display__bottom {
  overflow: hidden;
  text-align: center;
  width: 100%;
  height: 50%;
  position: relative;
}

.segment-display__top {
  line-height: 1.5;
  color: #eee;
  background-color: #111;
}

.segment-display__bottom {
  line-height: 0;
  color: #fff;
  background-color: #333;
}

.segment-overlay {
  position: absolute;
  top: 0;
  perspective: 400px;
  height: 100%;
  width: 100px;
}

.segment-overlay__top,
.segment-overlay__bottom {
  position: absolute;
  overflow: hidden;
  text-align: center;
  width: 100%;
  height: 50%;
}

.segment-overlay__top {
  top: 0;
  line-height: 1.5;
  color: #fff;
  background-color: #111;
  transform-origin: bottom;
}

.segment-overlay__bottom {
  bottom: 0;
  line-height: 0;
  color: #eee;
  background-color: #333;
  border-top: 2px solid black;
  transform-origin: top;
}

.segment-overlay.flip .segment-overlay__top {
  animation: flip-top 0.8s linear;
}

.segment-overlay.flip .segment-overlay__bottom {
  animation: flip-bottom 0.8s linear;
}

@keyframes flip-top {
  0% {
    transform: rotateX(0deg);
  }
  50%,
  100% {
    transform: rotateX(-90deg);
  }
}

@keyframes flip-bottom {
  0%,
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.colon-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  font-weight: 900;
  color: #eee;
  width: 60px;
  height: 120px;
  background: linear-gradient(to bottom, #111 50%, #333 50%);
  border-radius: 16px;
  box-shadow: 0 2px 8px #0003;
  margin-top: 24px;
  user-select: none;
  position: relative;
}

.segment-display__top,
.segment-display__bottom,
.segment-overlay__top,
.segment-overlay__bottom,
.colon-separator {
  font-family: 'Orbitron', sans-serif;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,1.5);
}
