@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #0046FE; /* Azul */
  box-sizing: border-box;

  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Contenedor principal */
.container {
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
}

/* Caja blanca superior */
.top {
  background-color: white;
  margin-bottom: 1vw;
  border-radius: 0.5rem;
}

/* Parte inferior dividida en dos */
.bottom {
  display: flex;
  gap: 1vw;
}

/* Caja roja izquierda */
.left {
  background-color: red;
  flex: 1;
  border-radius: 0.5rem;
}

/* Caja amarilla derecha */
.right {
  background-color: yellow;
  flex: 1;
  border-radius: 0.5rem;
}

header {
  background: white;
  padding: 10px 0;
  text-align: center;
  font-size: 2em;
  border-radius: 20px;
  padding: 20px;
}

main {
  display: flex;
  gap: 40px;
  padding: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

#letras-panel {
  display: grid;
  background: white;
  border-radius: 20px;
  padding: 10px;
}

.letra {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  /*animation: pop 0.5s ease;*/
  animation: pop 1s infinite alternate;
  transition: transform 0.2s;
}

@keyframes pop {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.letra:hover {
  transform: scale(1.1);
}

#letra-seleccionada {
  display: flex;
  flex-direction: row;
  justify-content: center;   /* Centra horizontalmente */
  align-items: baseline;     /* Alinea letras en la línea base */
  min-width: 150px;
  min-height: 200px;
  background: white;
  border-radius: 20px;
  padding: 20px;
  font-size: 15em;
  text-align: center;
}

#letra-mayuscula,
#letra-minuscula {
  display: inline-block;
  line-height: 1;
}

#letra-mayuscula {
  color: red;
}

#letra-minuscula {
  color: black;
  font-size: 0.6em;
}

span {
  font-weight: bold;
}

/* ----------------------------
   RESPONSIVE: Aplica en móviles
----------------------------- */

  /* xsm */
@media (min-width: 411px) {
  .bottom {
    flex-direction: column;
  }

  .top {
    margin-bottom: 2vw;
    text-align: center;
  }

  .left,
  .right {
    height: 100%;
    margin-bottom: 2vw;
  }

  #letras-panel {
    display: grid;
    grid-template-columns: repeat(6, 51px);
    gap: 13px;
    background: white;
    border-radius: 20px;
  }

  .letra {
    width: 50px;
    height: 50px;
    font-size: 24pt;
  }
}

@media (max-width: 768px) {
  
}