@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;
}

/* JOGO DE DECOMPOSIÇÃO */
.jogo-decomposicao {
    min-height: 100vh;
    background-image: url("transparentes/pracadobaoba-pixelart2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 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: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5rem;
    padding: 2rem;
}

/* NÚMERO CENTRAL */
.numero-central input {
    width: 350px;
    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;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: transform 0.15s ease;
}

/* HOVER DO NÚMERO */
.numero-central input:hover {
    transform: translateY(-3px);
}

/* DECOMPOSIÇÃO */
.decomposicao {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* CAMPOS DE RESPOSTA */
.resposta {
    width: 185px;
    height: 50px;
    background-color: var(--brancoprincipal);
    border: 3px solid var(--pretofonteprincipal);
    border-radius: 10px;
    box-shadow: 5px 5px 0 var(--pretofonteprincipal);
    font-family: var(--fontetextos);
    font-size: 1.7rem;
    text-align: center;
    outline: none;
    transition: transform 0.15s ease;
}

/* HOVER DOS CAMPOS */
.resposta:hover {
    transform: translateY(-3px);
}

/* SINAIS DE + */
.sinal {
    font-family: var(--fontetitulos);
    font-size: 3rem;
    font-weight: bold;
    color: var(--pretofonteprincipal);
    text-shadow: var(--brancoprincipal) 1.5px 1.5px;
    flex-shrink: 0;
}

/* 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 */
#resultado {
    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: 3.5rem;
        padding: 1.5rem 2rem;
    }

    /* NÚMERO CENTRAL */
    .numero-central input {
        width: clamp(250px, 30vw, 330px);
        height: 75px;
        font-size: 2.5rem;
    }

    /* DECOMPOSIÇÃO */
    .decomposicao {
        gap: 0.7rem;
    }

    /* CAMPOS */
    .resposta {
        width: clamp(120px, 15vw, 170px);
        height: 48px;
        font-size: 1.5rem;
    }

    /* SINAIS */
    .sinal {
        font-size: 2.5rem;
    }

    /* RESULTADO */
    #resultado {
        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 {
        gap: 2.5rem;
        padding: 1.5rem 1rem;
    }

    /* NÚMERO CENTRAL */
    .numero-central {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .numero-central input {
        width: min(80%, 300px);
        height: 65px;
        font-size: 2.2rem;
    }

    /* DECOMPOSIÇÃO */
    .decomposicao {
        width: 100%;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    /* CAMPOS */
    .resposta {
        width: clamp(90px, 17vw, 145px);
        height: 50px;
        font-size: 1.4rem;
    }

    /* SINAIS */
    .sinal {
        font-size: 2.3rem;
    }

    /* RESULTADO */
    #resultado {
        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: 1.8rem;
        padding: 1rem 0.7rem;
    }

    /* NÚMERO CENTRAL */
    .numero-central input {
        width: min(85%, 260px);
        height: 55px;
        font-size: 1.9rem;
        border-width: 3px;
        border-radius: 14px;
        box-shadow: 5px 5px 0 var(--pretofonteprincipal);
    }

    /* DECOMPOSIÇÃO */
    .decomposicao {
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    /* CAMPOS */
    .resposta {
        width: clamp(65px, 19vw, 105px);
        height: 45px;
        font-size: 1.15rem;
        border-width: 3px;
        border-radius: 9px;
        box-shadow: 4px 4px 0 var(--pretofonteprincipal);
    }

    /* SINAIS */
    .sinal {
        font-size: 1.8rem;
    }

    /* RESULTADO */
    #resultado {
        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;
    }
}