@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  width: 100vw;
  height: 40vh;
  overflow: hidden;
  padding: 1vw;
  background: #4d247d;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", sans-serif;
}
.timer-wrapper {
  width: 40%;
  height: 90%;
  border-radius: 1vw;
  padding: 1vw;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.timer-title {
  font-size: 1.5vw;
  text-transform: uppercase;
  font-weight: 500;
}
.timer {
  width: 90%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  font-size: 1vw;
}
.segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 15vw;
  height: 15vw;
}
.digit {
  background: rgba(255, 255, 255, 0.1);
  padding: 1vw;
  border-radius: 1vw;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  height: 7vw;
  width: 7vw;
  font-size: 4vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
.digit span {
  display: inline-block;
  width: 3.5vw;
  text-align: center;
}
.last-digit {
  display: inline-flex;
  gap: 0.1vw;
}
.last-digit-inner.animate {
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.label {
  font-size: 1vw;
  opacity: 0.8;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 1vw;
}
@media (max-width: 960px) {
  body {
    height: 30vh;
  }
  .timer-wrapper {
    height: 70%;
  }
  .label {
    font-size: 1.5vw;
  }
  .timer-title {
    font-size: 1.7vw;
  }
}
@media (max-width: 480px) {
  body {
    height: 20vh;
    color: #4d247d;
    background: #fff;
  }
  .timer-wrapper {
    height: 60%;
  }
  .label {
    font-size: 3vw;
    color: #4d247d;
    font-weight: 600;
  }
  .timer-title {
    width: 80vw;
    font-size: 5vw;
    font-weight: 700;
    margin-bottom: 5vw;
    color: #4d247d;
  }
  .timer-wrapper {
  width: 90%;
}
.segment {
 
  width: 20vw;
  height: 20vw;
}
.digit {
   background: #4e247d25;
  height: 15vw;
  width: 15vw;
  font-size: 7vw;
  color: #4d247d;
}
.digit span {
  width: 5vw;
}
}
