main {
  display: flex;
  flex-direction: column;    /* apila elementos verticalmente */
  justify-content: center;
  align-items: center; 
}
body {
  font-family: Arial, sans-serif;
  color: #333333;
  background: #88a4b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gameTitle {
  font-family: 'Bungee', Arial, sans-serif;
  font-size: clamp(2rem, 11vw, 5rem); /* mínimo 2rem, máximo 5rem, escala con el ancho */
  letter-spacing: 2px;
  text-align: center;
  color: #1a2236;
  margin: 0.8rem 0 1.2rem 0;
  text-shadow: 1px 1px 0 #bfc9db, 2px 2px 3px #dbeafe80;
}
.textBox {
  text-align: center;
  font-weight: bold;
  font-size: 1.15rem;
  border: 2.5px solid #e3e6e8;
  border-radius: 1.2rem;
  padding: 1rem 1.4rem;
  width: 70%;
  background: #f7f9fa;
  box-sizing: border-box;  /*Limita el tamaño para dentro del objeto*/
}
button {
  font-size: 1.17rem;
  padding: 1.05rem 0;
  border-radius: 1.2rem;
  color: #ffffff;
  border: none;
  font-weight: bold;
  width: 70%;
  cursor: pointer;
  margin-bottom: 0.13rem;
  letter-spacing: 0.5px;
}
button:hover {
  opacity: 0.80;
}


/* ==== FOOTER ==== */
.mainFooter {
  position: fixed; /* se mantiene fijo en esa posicion del navegador */
  bottom: 0.5rem;
  width: 100%;
  background-color: #656565;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 0rem 1rem 0rem;
  font-size: 1.08rem;
  border-radius: 1.4rem;
}

.footerCol {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.footerLeft {
  justify-content: flex-start;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 8px #0000001a;
  font-family: 'Segoe UI', Arial, sans-serif;
  padding-left: 1vw;
}

.footerCenter { justify-content: center; }

.footerRight {
  justify-content: flex-start;
  padding-right: 2vw;
}

.footerBtn {
  display: flex;
  align-items: center;
  background: #23272b;
  color: #90caf9;
  padding: 0.80rem 1.2rem;
  border-radius: 1.6rem;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  border: 1.5px solid #33404f;
  gap: 0.5em;
  margin: 0 0.2em;
}
.footerBtn:hover {
  background: #314a66;
  color: #ffffff;
  border-color: #4f83cc;
}
.footerIcon {
  display: flex;
  vertical-align: middle;
  margin-right: 0.3rem;
}


/* RESPONSIVE */
@media (min-width: 1000px) {
  .mainFooter {
    max-width: 1150px;
    margin: 0 auto;
    left: 0; right: 0;
  }
}

@media (max-width: 750px) {
  .mainFooter {
    flex-direction: column;
    gap: 0.2rem;
    align-items: stretch;
    text-align: center;
  }
  .footerCol, .footerLeft {
    justify-content: center !important;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }
  .footerBtn {
    width: 100%;
    justify-content: center;
    margin: 0.25rem 0;
  }
}




/* ==== PANTALLA DE INICIO / MAIN ==== */
.screen {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2.7rem 2.1rem;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.screen p{
  font-size: 1.3rem;
  font-weight:bold;
  margin-bottom: -1rem;
}
.screen .errorMessage {
  color: #d32f2f;
  font-size: 1.1rem;
  margin-top: -1rem;
}

.secondScreen{
  display: flex;
  flex-direction: row;
}

.screen p{
  font-size: 1.3rem;
  font-weight:bold;
  margin-bottom: -1rem;
}

.screen .errorMessage {
  color: #d32f2f;
  font-size: 1.1rem;
  margin-top: -1rem;
}

