@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;
}

/* ANTECESSOR E SUCESSOR */
.jogo-antecessor {
    min-height: 100vh;
    background-image: url("transparentes/marcozero-pixelart2.png");
    background-size: cover;
    background-position: center 8%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* CABEÇALHO */
.cabecalho-jogo {
    min-height: 5.5rem;
    background-color: var(--amareloprincipal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-sizing: border-box;
}

.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;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem 4rem;
}

/* RESPOSTAS */
.resposta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.resposta h3 {
    font-family: var(--fontetitulos);
    font-size: 1.8rem;
    color: var(--pretofonteprincipal);
    text-shadow: var(--brancoprincipal) 1.5px 1.5px;
    margin: 0;
}

/* CAMPOS DOS ALUNOS */
.resposta input {
    width: 340px;
    height: 85px;
    box-sizing: border-box;
    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;
}

.resposta input:hover {
    transform: translateY(-3px);
}

/* NÚMERO CENTRAL */
.numero-central input {
    width: 180px;
    height: 100px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--fontetitulos);
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    color: var(--pretofonteprincipal);
    text-shadow: var(--brancoprincipal) 2px 2px;
}

/* 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;
}

#verificar:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--pretofonteprincipal);
}

#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;
}

/* MARCO ZERO */
.marcozero {
    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: 1.2rem;
        padding: 1.5rem 2rem;
    }

    /* RESPOSTAS */
    .resposta {
        gap: 0.8rem;
    }

    .resposta h3 {
        font-size: 1.5rem;
    }

    .resposta input {
        width: clamp(220px, 25vw, 300px);
        height: 75px;
        font-size: 2.5rem;
    }

    /* NÚMERO CENTRAL */
    .numero-central input {
        width: 140px;
        height: 80px;
        font-size: 4rem;
    }

    /* RESULTADO */
    #resultado {
        font-size: 2rem;
    }

    /* MARCO ZERO */
    .marcozero {
        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 {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    /* RESPOSTAS */
    .resposta {
        width: 100%;
        gap: 0.5rem;
    }

    .resposta h3 {
        font-size: 1.4rem;
    }

    .resposta input {
        width: min(80%, 300px);
        height: 65px;
        font-size: 2.2rem;
    }

    /* NÚMERO CENTRAL */
    .numero-central input {
        width: 140px;
        height: 70px;
        font-size: 3.5rem;
    }

    /* 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;
    }

    /* MARCO ZERO */
    .marcozero {
        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.7rem;
        padding: 1rem 0.7rem;
    }

    /* RESPOSTAS */
    .resposta h3 {
        font-size: 1.2rem;
    }

    .resposta input {
        width: min(85%, 260px);
        height: 55px;
        font-size: 1.9rem;
        border-width: 3px;
        border-radius: 14px;
        box-shadow: 5px 5px 0 var(--pretofonteprincipal);
    }

    /* NÚMERO CENTRAL */
    .numero-central input {
        width: 110px;
        height: 60px;
        font-size: 3rem;
    }

    /* 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;
    }

    /* MARCO ZERO */
    .marcozero {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
}