/* mineria.css */

body {
  font-family: sans-serif;
  text-align: center;
  background-color: #111;
  color: #fff;
  margin: 0;
  padding: 20px;
}

.board {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(5, 60px);
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.cell {
  width: 60px;
  height: 60px;
  background-color: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  user-select: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cell.safe {
  border: 3px solid rgb(60, 255, 0);
  background-color: rgb(103, 150, 103);
}

.cell.bomb {
  background-color: red;
  border: 3px solid rgb(255, 94, 0);
}

button {
  margin: 10px 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #686868;
  border: none;
  border-radius: 8px;
  color: rgb(255, 255, 255);
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #fbff00;
  color: black;
}

#fichasLine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#fichas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

#fichas input {
  width: 100px;
}

#recargar {
  margin-top: 10px;
}

input[type="number"] {
  padding: 5px;
  width: 100px;
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hidden {
  display: none;
}

.mensajeSinSaldo {
  background: red;
  padding: 20px 40px;
  border-radius: 10px;
  color: white;
  font-size: 24px;
  animation: rebote 1s infinite alternate;
}

@keyframes rebote {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.gananciaAnimada {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: #00ff88;
  font-weight: bold;
  background-color: rgba(0,0,0,0.8);
  padding: 10px 30px;
  border-radius: 15px;
  animation: subir 1s ease-out forwards;
  z-index: 20;
}

@keyframes subir {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(-40px);
  }
}

.perdisteAnimada {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: #ff4444;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 40px;
  border-radius: 15px;
  z-index: 20;
  animation: sacudir 0.4s ease-in-out 3;
}

@keyframes sacudir {
  0% { transform: translateX(-50%) translateY(0); }
  25% { transform: translateX(-52%) translateY(0); }
  50% { transform: translateX(-48%) translateY(0); }
  75% { transform: translateX(-52%) translateY(0); }
  100% { transform: translateX(-50%) translateY(0); }
}

.alertaApuesta {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 140, 0, 0.95);
  color: #fff;
  font-size: 20px;
  padding: 15px 30px;
  border-radius: 12px;
  z-index: 30;
  box-shadow: 0 0 10px #ff8c00;
  animation: alertaEntrada 0.3s ease-out;
}

@keyframes alertaEntrada {
  from { opacity: 0; transform: translateX(-50%) scale(0.8); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
#fichaA {
  background-color: rgb(66, 228, 80);
}
#fichaA:hover {
  background-color: rgb(66, 188, 80);
  color: black;
}
#fichaB {
  background-color: rgb(0, 153, 255);
}
#fichaB:hover {
  background-color: rgb(0, 103, 255);
  color: black;
}
#fichaC {
  background-color: rgb(252, 81, 81);
}
#fichaC:hover {
  background-color: rgb(184, 30, 58);
  color: black;
}
#fichaD {
  background-color: rgb(174, 0, 255);
}
#fichaD:hover {
  background-color: rgb(138, 1, 202);
  color: black;
}
#botonC:hover {
  background-color: rgb(21, 255, 0);
  color: black;
}
#botonR:hover {
  background-color: red;
  color: white;
}
a {
  text-align: left;
  color: white;
  text-decoration: none;
}
a:hover {
  color: #fbff00;
}