/* styles.css */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

:root {
  --vh: 1vh;
}

.background {
  height: 100vh;
  /* Fallback for browsers that don't support CSS custom properties */
  height: calc(var(--vh, 1vh) * 100);
  /* Ensure a reasonable minimum on very short viewports */
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.grad-anim {
  background: linear-gradient(45deg, #4caf50, #4caf60, #4caf50, #f26, #00bcd4, #4caf50, #f26, #00bcd4, #10bcd4, #00bcd4);
  background-size: 1200% 1200%;
  animation: gradient 120s linear infinite;
}

.title {
  width: calc(min(95vw, 700px));
  color: #fff;
  font-size: calc(min(14vw, 100px));
  /* Set font size to 5% of viewport width */
  text-align: center;
  margin: 0;
  padding: 0;
}

.centered {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.countdown {
  width: calc(min(95vw, 700px));
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 20px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(min(18vw, 116px));
}

.countdown-item span {
  font: 500 calc(min(8vw, 48pt)) Gabarito, sans-serif;
  color: #fff;
}

/* Gradient animation for the background */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.pic {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.info {
  color: #fff;
  font-size: calc(min(4vw, 28px));
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  display: inline-block;
  margin-top: 10vh;
  margin-bottom: 5vh;
  margin-left: 10vw;
  margin-right: 10vw;
  height: auto;
  width: auto;
  padding: clamp(8px, 2vw, 24px);
  box-sizing: border-box;
}

#logo {
  width: calc(min(40vw, 350px));
  height:auto;
  filter: invert(1);
  -webkit-filter: invert(1);
}

#arrow {
  height: 10vh;
  margin-top: auto; /* push to bottom inside flex column */
  margin-bottom: 5vh; /* reasonable space from bottom */
  align-self: center; /* keep it centered horizontally */
}
