@font-face {
  font-family: 'Democracia';
  src: url('/fonts/Democracia.ttf') format('truetype');
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.87);
  background-color: #000000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-tap-highlight-color: transparent;
}

header {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  height: 75px;
  width: auto;
  fill: #fff;
}

#app {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  position: relative;
}

#pixi-container {
  border-radius: 32px;
  overflow: hidden;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgb(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: red;
}

.overlay-header {
  font-size: 120px;
  font-family: 'Democracia', sans-serif;
  text-align: center;
  margin: 0;
}

.overlay-text {
  font-size: 18px;
  font-family: 'Pixelify Sans', sans-serif;
  margin: 0;
  text-align: center;
}

.typewriter {
  display: block;
  width: max-content;
  max-width: 100%; 
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  
  animation: 
      typing 1s steps(30, end) forwards,
      blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #000; } /* Sostituisci col colore che vuoi */
}

footer {
  margin-top: 1rem;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cta-container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* centra il testo */
  margin-bottom: 15px;
  padding: 12px 20px;
  border-radius: 20px;
  background: red;
  color: #d1d1d4;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
}

.cta-button .icon-box {
  position: absolute;
  left: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-button .icon-box img {
  width: 25px;
  height: 25px;
  border-radius: 5px;
}

.cta-button .text {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 800;
}

.icon-panel {
  display: flex;
  gap: 24px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0);
  justify-content: center;
  align-items: center;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  color: #d1d1d4;
}

.passthrough {
  pointer-events: none;
}

