body {
  font-family: sans-serif;
  background-color: #f0f8ff;
  text-align: center;
  padding: 30px;
}
h1 {
  font-size: .1em;
  color:white;
}
img.seleccion{width:90px;}
img.portada {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 20px;
}
p{font-size: .1em;
  color:white;}
.opciones button {
  font-size: 22px;
  margin: 10px;
  padding: 15px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #d8adad;
  transition: background-color 0.3s;
}
.opciones button:hover {
  background-color: #2f21b1;
}

.opciones button:active {
  background-color: #1c0b6f;
}
#modoJuego button {
  font-size: 22px;
  padding: 10px 20px;
  margin: 5px;
  border: 2px solid black;
  border-radius: 8px;
  cursor: pointer;
  background-color: #6aa7ecff;
  color: #000000;
  transition: background-color 0.3s;
}

#modoJuego button:hover {
  background-color: #5a8cd4ff;
}

.opciones button.seleccionado {
  /*border-color: #2f21b1; /* mismo color que hover */

 border-color: #2f21b1 !important;
  background-color: #2f21b1 !important; /* mismo color que hover */
  color: #d8adad; /* Si querés resaltar el texto */
}

.opciones button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Anula el hover si el botón está deshabilitado o seleccionado */
.opciones button:disabled:hover,
.opciones button.seleccionado:hover {
  background-color: #d8adad; /* o el mismo color de fondo original */
  cursor: default;
  color: #d8adad;
}

.opciones button.seleccionado {
  background-color: #2f21b1 !important;
  border-color: #2f21b1 !important;
  color: #d8adad; /* Si querés resaltar el texto */
}


#estado {
  margin-top: 20px;
  font-weight: bold;
  color: #333;
}
#resultado {
  margin-top: 30px;
  padding: 10px;
  border-top: 2px solid #888;
}

#modoJuego {
  margin-top: 2px;
  font-size: 28px;
  color: #555;
}

#compartir {
      background-color: #ff4444;
      max-width: 600px;
      width: 90%;
      padding: 20px 10px;
      margin: 20px auto 30px auto;
      text-align: center;
      border-radius: 20px;
    }

.loader {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 3px solid #ccc;
  border-top: 3px solid #2f21b1; /* Color de la ruedita */
  border-radius: 50%;
  animation: girar 1s linear infinite;
  vertical-align: middle;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



@media screen and (max-width: 600px) {
  body { padding: 10px; }
  h1 { font-size: .1em; }
  img.portada { width: 100%; max-width: none; }
  img.seleccion { width: 60px; }
  .opciones button {
    font-size: 18px;
    padding: 10px 15px;
    margin:5px;
  }
  #estado, #resultado {
    font-size: 16px;
  }
}
