body {
  margin: 0;
  padding: 0;
  background-image: url('imagenes/fondo-inicio.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
}


.zona-juego {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 12%;
  gap: 20px;
  padding: 20px;
}

.columna-lateral {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.columna.fichas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ficha {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
}

.ficha:hover {
  transform: scale(1.1);
}

.ficha.roja {
  background-color: #ff5722;
}

.ficha.verde {
  background-color: #4caf50;
}

.tablero {
  display: grid;
  grid-template-columns: repeat(10, 60px);
  grid-template-rows: repeat(10, 60px);
  gap: 2px;
  background-color: #333;
  border: 2px solid #444;
}

.casilla {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.agua { background-color: #00bcd4; }
.roca { background-color: #9e9e9e; }
.hierba { background-color: #81c784; }

.tarjeta-info {
  position: absolute;
  width: 200px;
  background-color: white;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.tarjeta-info h3 {
  text-align: center;
}

.tarjeta-oculta {
  display: none !important;
}

.ficha-dañada {
  animation: parpadeo 0.4s ease;
}

@keyframes parpadeo {
  0% { opacity: 1; }
  25% { opacity: 0.1; }
  50% { opacity: 1; }
  75% { opacity: 0.1; }
  100% { opacity: 1; }
}

.eliminados {
  width: 200px;
  background-color: #f5f5f5;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  text-align: center;
  margin-bottom: 10%;
}

.zona-eliminados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.zona-eliminados .ficha {
  width: 30px;
  height: 30px;
  opacity: 0.5;
  cursor: default;
  border: none;
}

.marcador {
  background-color: #fff;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  width: 200px;
  min-height: 57px;
  margin-bottom: 10%;
}

.marcador h3 {
  margin: 0 0 6px;
}

.marcador div {
  font-weight: bold;
  font-size: 16px;
}

/* Pantalla de inicio superpuesta */
#pantalla-inicio {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); /* Más opaco para dar contraste al botón */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Botón de inicio centrado */
#boton-start {
  font-size: 28px;
  padding: 16px 36px;
  background-color: #4caf50;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background-color 0.3s;
}

#boton-start:hover {
  transform: scale(1.08);
  background-color: #43a047;
}
