@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
    font-family: 'Press Start 2P';
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: url(/images/fondojungla.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
body h1{
    text-align: center;
    color: #ffffff;
    text-shadow: 
	-2px -2px 0 rgb(0, 0, 0),
	-2px 2px 0 rgb(0, 0, 0),
	2px 2px 0 rgb(0, 0, 0),
	2px -2px 0 rgb(0, 0, 0) ;
}
#grid {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 10px;
    margin: 20px;
}

.cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    background-color: #8f3818;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cell:hover {
    background-color: #3e1100; /* Color al pasar el mouse */
    transform: scale(1.05); /* Efecto de escalado */
}

.cell.correct {
    background-color:chartreuse;
    border: 2px solid #4caf50; /* Borde verde para correcto */
}

.cell.incorrect {
    background-color: #c71023;
    border: 2px solid #f44336; /* Borde rojo para incorrecto */
}

.boton{
    background-color: black;
    justify-self:left;
    padding: 13px 30px;
    border-radius: 32px;
	margin-bottom: 20px;
    margin-right: auto;
    
}
.boton a{
	text-decoration: none;
	color: #fff;
}
.boton:hover{
	background: #129d05;
}


#question {
    font-size: 24px;
    margin-top: 20px;
}
#pregunta{
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
}
#score {
    font-size: 20px;
    margin-top: 10px;
}
#new-game {
    font-family: 'Press Start 2P';
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    background-color: #0b8300;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

#new-game:hover {
    background-color: #052e01; /* Color al pasar el mouse */
    transform: scale(1.05); /* Efecto de escalado */
}

#new-game:focus {
    outline: none; /* Quitar el borde de enfoque */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Sombra al enfocar */
}


.capa{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

@media screen and (max-width: 900px) {
	body {
        font-family: 'Press Start 2P';
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 100px;
    }
    body h1{
        text-align: center;
    }
    .boton a{
        text-decoration: none;
        font-size: 20px;
    }
    .cell {
        width: 100px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
        font-weight: bold;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
    }
    #grid {
        display: grid;
        grid-template-columns: repeat(3, px);
        gap: 50px;
        row-gap: 10px;
        margin: 20px;
        margin-left: -20px;
    }
    #question {
        font-size: 30px;
        margin-top: 10px;
        text-align: center;
    }
    #pregunta{
        font-size: 30px;
        text-align: center;
    }
    #score {
        font-size: 30px;
        margin-top: 10px;
    }
    #new-game {
        font-family: 'Press Start 2P';
        padding: 10px 20px;
        font-size: 30px;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        margin-top: 20px;
    }
}