body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000d9;
  padding: 20px;
}

#boardContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  border:10px solid lightgray;
  border-radius: 5px;
}
.displayContainer {
  display: flex;
  height: 600px;
  flex-direction: column;
  margin-left: 10px;
}
.score {
  display: flex;
  border: 8px solid lightgray;
  margin: 10px;
  margin-top:0;
  margin-bottom: 0;
  padding: 8px;
  font-family: fantasy;
  font-size: 30px;
  color: #109d76;
  justify-content: space-between;
}
.nextTetrimino {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 210px;
  height: 120px;
  border:10px solid lightgray;
  margin: 10px;
  margin-top:0px;
  padding: 10px;
  border-radius: 5px;
}
.nextTetrimino img {
  scale: 0.5;
}
.titleContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 210px;
  height: 110px;
  border:10px solid lightgray;
  margin:10px;
  padding: 10px;
  border-radius: 5px;
}
.titleContainer img {
  width: 100%;
}

#endGameContainer {
  position: absolute;
  display: none;
  width: 300px;
  height: 260px;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  align-items: center;
  background-color: #109d76;
  color: white;
  border: 5px solid lightgray;
  border-radius: 5px;
  font-size: xx-large;
  font-family: fantasy;
}
#scoreContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 80px;
  border:5px solid lightgrey;
  border-radius: 5px;
}
#gameMessage {
  margin-top: 20px ;
}
#startGame {
  width: 70px;
  cursor: pointer;
}
#buttonContainer {
  margin-bottom: 5px;
}
/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  padding: 20px;
}

.preloader-logo {
  width: 120px;
  height: auto;
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

.preloader-progress {
  width: 300px;
  height: 6px;
  background-color: #333;
  border-radius: 3px;
  overflow: hidden;
  margin: 20px auto;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #109d76, #14584f);
  transition: width 0.2s ease;
  border-radius: 3px;
  box-shadow: 0 0 10px #63f319;
}

.preloader-text {
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 10px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.score.score-column {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 8px;
}

/* Estilo para el valor del score */
.score-value {
  font-size: 40px;  /* Más grande para destacar */
  color: #63f319;   /* Verde más brillante */
  text-shadow: 0 0 10px #109d76;
  line-height: 1.2;
  word-break: break-word;  /* Permite saltos de línea si es necesario */
  text-align: center;
  max-width: 100%;
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 400px) {
  .score-value {
    font-size: 32px;
  }
}

/* Opcional: Animación cuando cambia el score */
@keyframes scorePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: #fff; }
  100% { transform: scale(1); }
}

.score-value.pop {
  animation: scorePop 0.3s ease;
}