/* styles_index.css */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: black;
}

.video-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #000;
}

video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
  filter: blur(5px);
}

.top-content {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.logo {
  width: 150px;
  max-width: 30vw;
  height: auto;
}

.titulo {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  color: white;
  font-size: 3rem;
  position: relative;
  text-align: center;
  text-shadow:
    0px -5px 10px rgba(255,255,255,1),
    0px 0px 5px rgba(255,255,255,0),
    0px 0px 10px rgba(255,255,255,0),
    0px 0px 15px rgba(255,255,255,0),
    0px 0px 20px rgba(255,255,255,0);
  animation: glitch-anim 2.5s infinite linear alternate;
  z-index: 2;
}

.titulo::before,
.titulo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: transparent;
  background: transparent;
  overflow: hidden;
  z-index: -1;
}

.titulo::before {
  left: 2px;
  text-shadow: -2px 0 red;
  animation: glitch-shift 2s infinite alternate-reverse;
}

.titulo::after {
  left: -2px;
  text-shadow: -2px 0 cyan;
  animation: glitch-shift 2s infinite alternate;
}

@keyframes glitch-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes glitch-shift {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -1px); }
}

.stats-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.gametracker {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 90%;
  width: 560px;
}

.gametracker img {
  width: 100%;
  height: auto;
  margin-top: 120px;
}

.botones {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.botones a {
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border: 1px solid white;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.botones a:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .titulo {
    font-size: 2rem;
  }

  .logo {
    width: 100px;
  }

  .stats-btn {
    top: 10px;
    right: 10px;
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .gametracker {
    top: 50%;
    width: 90%;
  }

  .gametracker img {
    width: 100%;
    height: auto;
  }
}
