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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  color: white;
  background-image: linear-gradient(rgb(0 0 0 / 70%), rgb(0 0 0 / 70%)),
    url('./Snow.svg');
}

section {
  text-align: center;
  padding: 1.25rem;
}

.container-start h1 {
  margin-block-end: 3.125rem;
}

.container-end {
  display: none;
}

@keyframes wipe-in-down {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

h1 {
  font-size: clamp(3.75rem, 2.5rem + 3.333vw, 5rem);
  letter-spacing: 5px;
  text-wrap: balance;
  text-shadow: 0 0 5px #ffffff7c;
  transition: scale 0.3s;
  animation: wipe-in-down 2s cubic-bezier(0.25, 1, 0.3, 1) both;

  &:hover {
    scale: 1.05;
  }
}

@keyframes wipe-in-up {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.875rem;

  .time-block {
    background-color: rgb(255 255 255 / 10%);
    padding: 1.25rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    min-width: 150px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 10%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    row-gap: 0.625rem;
    letter-spacing: 2px;

    &:nth-child(1) {
      animation: wipe-in-up 2.5s 0.5s cubic-bezier(0.25, 1, 0.3, 1) both;
    }

    &:nth-child(2) {
      animation: wipe-in-up 2.5s 1s cubic-bezier(0.25, 1, 0.3, 1) both;
    }

    &:nth-child(3) {
      animation: wipe-in-up 2.5s 1.5s cubic-bezier(0.25, 1, 0.3, 1) both;
    }

    &:nth-child(4) {
      animation: wipe-in-up 2.5s 2s cubic-bezier(0.25, 1, 0.3, 1) both;
    }

    &:hover {
      transform: translateY(-5px);
    }

    span:first-child {
      font-size: 4rem;
    }

    .label {
      font-size: 1.3rem;
      color: #ccc;
    }
  }
}
