body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

#timer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 75vh;
  font-size: 3rem;
  padding: 2rem;
}
@media (max-width: 567px) {
  #timer {
    font-size: 2rem;
  }
}

:root {
  --color-red: #f44336;
  --color-orange: #ff9800;
  --color-yellow: #ffeb3b;
  --color-green: #4caf50;
  --color-blue: #2196f3;
  --color-purple: #9c27b0;
  --color-pink: #e91e63;
}

#fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 999;
}

.firework {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color);
  transform: translate(-50%, -50%);
  animation: explode 1s ease-out;
}

.sparks {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
  animation: spark 1s ease-out;
}

.trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 10px;
  background-color: white;
  transform: translate(-50%, -50%);
  animation: trail 1s ease-out;
}

@keyframes explode {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
@keyframes spark {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
@keyframes trail {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
