/* Fondo animado de nubes */
body {
  background-image: url('menu/nubes.png');
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: auto 100vh;
  animation: scrollBackground 30s linear infinite;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  /* Resolución fija y sin scroll */
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* No scroll */
  position: fixed; /* Fijo */
  /* Deshabilitar selección y arrastre */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  /* Cursor personalizado */
  cursor: url('arte/mouse.png'), auto;
}

@keyframes scrollBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 1920px 0; /* Ajustar al ancho real de tu imagen */
  }
}

/* Animación de flotación para el título del juego */
@keyframes flotar {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Estilos base para pantallas */
#pantallaInicio, #juego {
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  /* Deshabilitar selección y arrastre */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Cuadrito gris solo para el menú de inicio */
#pantallaInicio {
  background: rgba(128, 128, 128, 0.8); /* Fondo gris semitransparente */
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* El juego con fondo blanco semitransparente */
#juego {
  background: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: #333; /* Cambiar color de texto a oscuro para mejor contraste */
}

/* Mantener el texto del título en blanco con animación */
#juego h1 {
  animation: flotar 3s ease-in-out infinite;
  color: white; /* Título mantiene color blanco */
  text-shadow: 
    -5px -5px 0 #000,
    5px -5px 0 #000,
    -5px 5px 0 #000,
    5px 5px 0 #000,
    -5px 0 0 #000,
    5px 0 0 #000,
    0 -5px 0 #000,
    0 5px 0 #000,
    -4px -4px 0 #000,
    4px -4px 0 #000,
    -4px 4px 0 #000,
    4px 4px 0 #000,
    -3px -3px 0 #000,
    3px -3px 0 #000,
    -3px 3px 0 #000,
    3px 3px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
}

/* Texto del juego con mejor contraste */
#juego p {
  color: #333;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

/* Deshabilitar selección para TODOS los elementos */
*, *::before, *::after {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  outline: none;
  /* Cursor personalizado para todos los elementos */
  cursor: url('arte/mouse.png'), auto;
}

/* Cursor especial para elementos clickeables */
button, input[type="submit"], #minitromy {
  cursor: url('arte/mouse.png'), pointer !important;
}

/* Cursor específico para inputs de texto */
input[type="text"] {
  cursor: url('arte/mouse.png'), text !important;
}

#banner {
  max-width: 100%;
  height: auto;
}

#minitromy {
  cursor: url('arte/mouse.png'), pointer !important;
  max-width: 300px;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* Efecto de escala al hacer hover */
  transition: transform 0.1s ease;
}

#minitromy:hover {
  transform: scale(1.02);
}

#minitromy:active {
  transform: scale(0.98);
}

input, button {
  padding: 12px 20px;
  margin: 8px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

input {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  /* Permitir selección solo en inputs */
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

button {
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

button:hover {
  background: linear-gradient(45deg, #45a049, #5cb85c);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

button:focus, input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

ul {
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 15px;
  list-style: none; /* Quitar los asteriscos/puntos */
}

li {
  margin: 8px 0; /* Espaciado entre elementos de la lista */
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: normal;
}

h1 {
  font-size: 2.5em;
  margin: 15px 0;
  color: white;
  text-shadow: 
    -5px -5px 0 #000,
    5px -5px 0 #000,
    -5px 5px 0 #000,
    5px 5px 0 #000,
    -5px 0 0 #000,
    5px 0 0 #000,
    0 -5px 0 #000,
    0 5px 0 #000,
    -4px -4px 0 #000,
    4px -4px 0 #000,
    -4px 4px 0 #000,
    4px 4px 0 #000,
    -3px -3px 0 #000,
    3px -3px 0 #000,
    -3px 3px 0 #000,
    3px 3px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
  font-weight: 900;
  text-transform: uppercase;
  font-family: Impact, 'Arial Black', sans-serif; /* Solo H1 en Impact */
}

h3 {
  font-size: 1.5em;
  margin: 20px 0 10px 0;
  color: white;
  text-shadow: 
    -4px -4px 0 #000,
    4px -4px 0 #000,
    -4px 4px 0 #000,
    4px 4px 0 #000,
    -4px 0 0 #000,
    4px 0 0 #000,
    0 -4px 0 #000,
    0 4px 0 #000,
    -3px -3px 0 #000,
    3px -3px 0 #000,
    -3px 3px 0 #000,
    3px 3px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
  font-weight: 900;
  text-transform: uppercase;
  font-family: Impact, 'Arial Black', sans-serif; /* Solo H3 en Impact */
}

p {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

p {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}