@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

:root {
    --amareloprincipal: #FFDE59;
    --pretofonteprincipal: black;
    --brancoprincipal: white;
    --fontetitulos: "Pixelify Sans", sans-serif;
    --fontetextos: sans-serif;
}

* {
    text-decoration: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* CONFIGURAÇÃO GERAL DAS OPERAÇÕES */
.operacao-jogo {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* FUNDOS */
.operacao-soma {
    background-image: url("transparentes/ruadobomjesus-pixelart2.png");
}

.operacao-subtracao {
    background-image: url("transparentes/mercadodesaojose-pixelart2.png");
}

.operacao-multiplicacao {
    background-image: url("transparentes/pracadarepublica-pixelart2.png");
}

.operacao-divisao {
    background-image: url("transparentes/cinemasaoluiz-pixelart2.png");
}

/* CABEÇALHO */
.cabecalho-jogo {
    min-height: 5.5rem;
    flex-shrink: 0;
    background-color: var(--amareloprincipal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.cabecalho-jogo h1 {
    font-family: var(--fontetitulos);
    font-size: 4rem;
    color: var(--pretofonteprincipal);
    text-shadow: var(--brancoprincipal) 1.5px 1.5px;
    margin: 0;
}

.cabecalho-jogo h2 {
    font-family: var(--fontetitulos);
    font-size: 1.7rem;
    line-height: 1.1;
    text-align: center;
    color: var(--pretofonteprincipal);
    text-shadow: var(--brancoprincipal) 1.5px 1.5px;
    margin: 0;
}

/* ÁREA DO JOGO */
.area-jogo {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 1rem;
    padding: 2rem 4rem;
}

/* CAMPOS DOS NÚMEROS */
.numero input {
    width: 340px;
    height: 85px;
    background-color: var(--brancoprincipal);
    border: 4px solid var(--pretofonteprincipal);
    border-radius: 18px;
    box-shadow: 7px 7px 0 var(--pretofonteprincipal);
    font-family: var(--fontetextos);
    font-size: 3rem;
    text-align: center;
    outline: none;
    transition: transform 0.15s ease;
}

/* HOVER DOS CAMPOS */
.numero input:hover {
    transform: translateY(-3px);
}

/* SÍMBOLO */
.simbolo {
    font-family: var(--fontetitulos);
    font-size: 5rem;
    font-weight: bold;
    color: var(--pretofonteprincipal);
    text-shadow: var(--brancoprincipal) 2px 2px;
}

/* RESPOSTA DO ESTUDANTE */
.resposta {
    grid-column: 1 / 4;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resposta-aluno {
    width: 340px;
    height: 85px;
    background-color: var(--brancoprincipal);
    border: 4px solid var(--pretofonteprincipal);
    border-radius: 18px;
    box-shadow: 7px 7px 0 var(--pretofonteprincipal);
    font-family: var(--fontetextos);
    font-size: 3rem;
    text-align: center;
    outline: none;
    transition: transform 0.15s ease;
}

/* HOVER DA RESPOSTA */
.resposta-aluno:hover {
    transform: translateY(-3px);
}

/* REMOVE AS SETINHAS DOS INPUTS */
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* BOTÃO VERIFICAR */
.verificar {
    align-self: center;
    margin-bottom: 1rem;
    padding: 0.8rem 2rem;
    font-family: var(--fontetitulos);
    font-size: 1.5rem;
    color: var(--pretofonteprincipal);
    background-color: var(--amareloprincipal);
    border: 4px solid var(--brancoprincipal);
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--pretofonteprincipal);
    cursor: pointer;
    transition: transform 0.1s ease;
}

/* HOVER DO BOTÃO */
.verificar:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--pretofonteprincipal);
}

/* BOTÃO PRESSIONADO */
.verificar:active {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 var(--pretofonteprincipal);
}

/* RESULTADO */
.mensagem {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fontetitulos);
    font-size: 2.3rem;
    text-align: center;
    margin: 0.5rem 1rem 1rem 1rem;
    padding: 0 1rem;
}

/* LOCAL */
.local {
    font-family: var(--fontetitulos);
    font-size: 2rem;
    text-align: center;
    margin: 0 0 1rem 0;
}

/* RESPONSIVIDADE PARA TELAS MÉDIAS */
@media (max-width: 1100px) {

    /* CABEÇALHO */
    .cabecalho-jogo {
        min-height: 5rem;
        padding: 0 1.5rem;
    }

    .cabecalho-jogo h1 {
        font-size: 3.2rem;
    }

    .cabecalho-jogo h2 {
        font-size: 1.45rem;
    }

    /* ÁREA DO JOGO */
    .area-jogo {
        gap: 0.8rem;
        padding: 1.5rem 2rem;
    }

    /* CAMPOS */
    .numero input {
        width: clamp(220px, 25vw, 300px);
        height: 75px;
        font-size: 2.5rem;
    }

    .resposta-aluno {
        width: clamp(220px, 25vw, 300px);
        height: 75px;
        font-size: 2.5rem;
    }

    /* SÍMBOLO */
    .simbolo {
        font-size: 4rem;
    }

    /* MENSAGEM */
    .mensagem {
        font-size: 2rem;
    }

    /* LOCAL */
    .local {
        font-size: 1.7rem;
    }
}

/* RESPONSIVIDADE PARA TABLETS */
@media (max-width: 768px) {

    /* CABEÇALHO */
    .cabecalho-jogo {
        min-height: 4.5rem;
        padding: 0 1rem;
    }

    .cabecalho-jogo h1 {
        font-size: clamp(2.3rem, 7vw, 3rem);
    }

    .cabecalho-jogo h2 {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
    }

    /* ÁREA DO JOGO */
    .area-jogo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
        padding: 1.5rem 1rem;
    }

    /* CAMPOS DOS NÚMEROS */
    .numero {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .numero input {
        width: min(80%, 300px);
        height: 65px;
        font-size: 2.2rem;
    }

    /* SÍMBOLO */
    .simbolo {
        font-size: 3.5rem;
    }

    /* RESPOSTA */
    .resposta {
        width: 100%;
    }

    .resposta-aluno {
        width: min(80%, 300px);
        height: 65px;
        font-size: 2.2rem;
    }

    /* MENSAGEM */
    .mensagem {
        min-height: 2.8rem;
        font-size: 1.7rem;
        margin: 0.5rem 0.8rem 1rem 0.8rem;
    }

    /* BOTÃO */
    .verificar {
        font-size: 1.3rem;
        padding: 0.7rem 1.6rem;
        margin-bottom: 0.5rem;
    }

    /* LOCAL */
    .local {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
}

/* RESPONSIVIDADE PARA CELULARES */
@media (max-width: 480px) {

    /* CABEÇALHO */
    .cabecalho-jogo {
        min-height: 4rem;
        padding: 0 0.7rem;
    }

    .cabecalho-jogo h1 {
        font-size: 2rem;
    }

    .cabecalho-jogo h2 {
        font-size: 0.95rem;
    }

    /* ÁREA DO JOGO */
    .area-jogo {
        gap: 0.5rem;
        padding: 1rem 0.7rem;
    }

    /* CAMPOS DOS NÚMEROS */
    .numero input {
        width: min(85%, 260px);
        height: 55px;
        font-size: 1.9rem;
        border-width: 3px;
        border-radius: 14px;
        box-shadow: 5px 5px 0 var(--pretofonteprincipal);
    }

    /* SÍMBOLO */
    .simbolo {
        font-size: 3rem;
    }

    /* RESPOSTA */
    .resposta-aluno {
        width: min(85%, 260px);
        height: 55px;
        font-size: 1.9rem;
        border-width: 3px;
        border-radius: 14px;
        box-shadow: 5px 5px 0 var(--pretofonteprincipal);
    }

    /* MENSAGEM */
    .mensagem {
        min-height: 2.5rem;
        font-size: 1.4rem;
        margin: 0.4rem 0.5rem 0.8rem 0.5rem;
        padding: 0 0.5rem;
    }

    /* BOTÃO */
    .verificar {
        font-size: 1.1rem;
        padding: 0.6rem 1.3rem;
        border-width: 3px;
    }

    /* LOCAL */
    .local {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
}