/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  background-color:black;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow-x: hidden;
  user-select: none;
  margin: 0;
  padding: 2rem;
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: 100%;
  gap: 1rem;
  position: relative;
  padding: 0 1rem;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;

  /* Consenti wrapping per evitare overflow */
  flex-wrap: wrap;

  padding-top: 40px;
  margin-bottom: 2rem;
  height: 100px;
  position: relative;
}

.countdown-item {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  padding: 0 6px;
  transition: border-color 0.3s, color 0.3s;
}

.countdown-value {
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 3px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.placeholder {
  visibility: hidden;
  pointer-events: none;
}

.brand-title {
  font-size: 3rem;
  background: linear-gradient(90deg, #ffffff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}

.description {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: #fff;
  text-transform: lowercase;
  max-width: 400px;
  line-height: 1.4;
}

#jumping-ball {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  transition: background-color 0.3s;
}

@media (max-width: 600px) {
  html, body {
    padding: 1rem;
  }

  .brand-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .description {
    font-size: 0.75rem;
    max-width: 90%;
    line-height: 1.5;
  }

  .countdown-item {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
    padding: 0;
  }

  .countdown-label {
    font-size: 0.5rem;
    margin-top: 2px;
  }

  #countdown {
    gap: 0.6rem;
    height: 90px;
  }

  #jumping-ball {
    width: 8px;
    height: 8px;
  }
}
