@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --bg-color: #1e1e1e;
  --text-color: #fff;
  --font-family: 'Inter', sans-serif;
  --timer-gap: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden; /* prevent scroll with canvas */
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-color: var(--bg-color);
  display: block;
}

.container {
  position: relative;
  z-index: 1; /* on top of canvas */
  user-select: none;
  padding: 1rem 2rem;
}

.title {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.countdown {
  display: flex;
  gap: var(--timer-gap);
  justify-content: center;
  font-weight: 700;
  font-size: 3.8rem;
  letter-spacing: 1.5px;
  opacity: 0;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.6s;
}

.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 75px;
}

.countdown span {
  font-size: 3.8rem;
  line-height: 1;
}

.countdown small {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 0.2rem;
  color: #bbb;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .title {
    font-size: 2.5rem;
  }
  .countdown {
    font-size: 2.8rem;
    gap: 1rem;
  }
  .countdown div {
    min-width: 50px;
  }
  .countdown small {
    font-size: 1rem;
  }
}
