@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


* {
  box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #4a5c9a; /* Un azul más suave, como el cielo de Mario */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    border: 8px solid #a83800; /* Borde rojo como la gorra de Mario */
    box-shadow: inset 0 0 0 4px #000000;
    line-height: 1.5; /* Ajuste importante para el espaciado entre líneas */
}

h1, h2, p {
    color: #ffffff;
    text-shadow: 3px 3px #000000;
    margin: 15px 0; /* Aumentado el margen vertical */
}

h1 {
    font-size: 18px;
}

h2 {
    font-size: 16px;
}

p {
    font-size: 14px;
    line-height: 1.8; /* Mayor espacio entre las líneas del párrafo */
}

button {
    font-family: 'Press Start 2P', cursive;
    background-color: #ff9d00;
    color: #000000;
    border: none;
    padding: 12px 24px;
    margin: 12px 8px;
    font-size: 14px; /* Ajuste de tamaño para que el texto quepa mejor */
    cursor: pointer;
    border-radius: 0;
    border-bottom: 4px solid #b36e00;
}

button:active {
    border-bottom: 1px solid #b36e00;
    transform: translateY(3px);
}

#texto-descriptivo {
    font-size: 21px; /* Tamaño de fuente más grande */
    margin-bottom: 65px; /* Margen para separarlo del título */
}

.oculto {
    display: none !important;
}

.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.contenido-modal {
    background-color: #a83800;
    color: #ffffff;
    padding: 20px;
    border: 4px solid #000000;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 6px 6px 0px 0px #000000;
}

.cerrar-modal {
    position: absolute;
    top: 5px; /* Ajuste de la posición */
    right: 10px; /* Ajuste de la posición */
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
}

#pantalla-juego {
    width: 100%;
    max-width: 600px;
}

.header-juego {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
}

#temporizador, #contador-intentos {
    background-color: #008700;
    padding: 8px;
    border: 2px solid #000000;
}

input {
    font-family: 'Press Start 2P', cursive;
    padding: 10px;
    margin: 10px 0;
    width: 80%;
    border-radius: 0;
    border: 2px solid #000000;
    background-color: #ffffff;
    text-align: center;
    color: #000000;
}