:root {
    --cor-vertical: #c8c48e;
    --cor-horizontal: #d6af74;
    --cor-borda: #ffffff;
    --cor-texto: #000000;
    --cor-modal: #f5cc8d;
    --cor-modal-borda: #756244;
}

@font-face {
    font-family: 'Poppins Local';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Local';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Alpha';
    src: url('../fonts/Alphakind.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

html {
    background-color: #d0e9ee;
    /* background-image: url(../images/bg.png);
    background-size: cover;
    background-repeat: no-repeat; */
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: 'Poppins Local';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main {
    background-color: #d0e9ee;
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#header {
    background-image: url(../images/top.png);
    background-repeat: no-repeat;
    background-position: -15px -50px;
    background-size: 100%;
    width: 102.5%;
    text-align: center;
    position: relative;
    z-index: 90;
    min-height: 22rem;
}

#logotipo {
    max-width: 30rem;
    padding: 1rem;
    display: flex;
}

.tt {
    margin: 3rem 0 0 3rem;
    width: 140%;
    height: 100%;
}

.bird {
    width: 70%;
    height: 100%;
    margin: 1rem 0 0 3rem;
}

#content-container {
    background-image: url(../images/btm.png);
    background-size: 200%;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    position: relative;
    z-index: 80;
    padding: 2rem 4rem 2rem 0;
}

@media (min-width: 768px) {
    #content-container {
        flex-direction: row;
    }

    #perguntas-column {
        flex: 1;
        max-width: 40%;
    }

    #grid-column {
        flex: 2;
        max-width: 100%;
    }
}

#perguntas-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    #perguntas-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #perguntas-container-verticais,
    #perguntas-container-horizontais {
        flex: 1;
        min-width: 45%;
    }
    #grid-container-bg::before {
        content: '';
        position: absolute;
        top: -5%;
        left: -6%;
        right: -13%;
        bottom: -2.6%;
        background-image: url(../images/img.png);
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        z-index: 0;
    }
}

@media (min-width: 768px) and (max-width: 1190px) {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    #content-container {
        flex-direction: column;
        align-items: center;
    }
    #perguntas-column {
        max-width: 95%;
    }
    #perguntas-container {
        flex-direction: row;
    }
}

#perguntas-container-verticais > h3,
#perguntas-container-horizontais > h3 {
    font-family: 'Alpha';
    margin-bottom: 0.1rem;
    padding-bottom: 0.1rem;
    font-size: 3rem;
    font-weight: 100;
    text-align: left;
    padding-left: 3rem;
    text-transform: uppercase;
}
#perguntas-container-verticais > h3 {
    color: #5b562c;
}
#perguntas-container-horizontais > h3 {
    color: #805216;
}

#perguntas-verticais,
#perguntas-horizontais {
    background-color: #000;
    gap: 1px;
}

#perguntas-container-verticais,
#perguntas-container-horizontais {
    /* border: 3px solid var(--cor-borda); */
    /* border-radius: 30px; */
    padding: 0 1.5rem 0 0;
    padding-left: 0rem;
}

#perguntas-container-verticais {
    /* background-color: var(--cor-vertical); */
}

#perguntas-container-horizontais {
    /* background-color: var(--cor-horizontal); */
}

.pergunta-item {
    background-color: #d0e9ee;
    margin-bottom: 1px;
    padding: 0.5rem 0.5rem 0.5rem 3rem;
    line-height: 1.4;
    font-size: 1.45rem;
    /* font-weight: 700; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pergunta-texto {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 0rem;
}

.pergunta-item span {
    font-weight: bold;
    color: var(--cor-texto);
    min-width: 2.5rem;
}

.pergunta-item p {
    margin: 0;
    flex: 1;
}

.btn-responder {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    border: none;
    white-space: nowrap;
}

#perguntas-container-verticais .btn-responder {
    background-color: var(--cor-vertical);
    /* background-color: #949169; */
    color: #474633;
    font-weight: bold;
    border: 2px solid #474633;
}

#perguntas-container-horizontais .btn-responder {
    background-color: var(--cor-horizontal);
    /* background-color: #a38558; */
    color: #57472f;
    font-weight: bold;
    border: 2px solid #57472f;
}

.respondida p {
    text-decoration: line-through;
    opacity: 0.7;
}

#grid-column {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
}

#grid-container-bg {
    position: relative;
    max-width: 100%;
    /* transform: scale(0.9); */
}

#grid-container-bg::before {
    content: '';
    position: absolute;
    top: 2%;
    left: -6%;
    right: -13%;
    bottom: -2.6%;
    background-image: url(../images/img.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(0.9, 1.1);
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(19, minmax(2rem, 4rem));
    grid-template-rows: repeat(19, minmax(2rem, 4rem));
    gap: 0.2rem;
    max-width: 100%;
    position: relative;
    z-index: 1;
    transform: scale(1, 0.927);
}

@media (max-width: 990px) {
    #header {
        background-size: cover;
    }
    .tt {
        width: 100%;
    }
    .bird {
        width: 50%;
    }
}

@media (max-width: 767px) {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    #grid-container {
        grid-template-columns: repeat(19, minmax(1.8rem, 3.6rem));
        grid-template-rows: repeat(19, minmax(1.8rem, 3.6rem));
        gap: 0.2rem;
    }

    .numero-pergunta {
        font-size: 1.2rem;
        width: 1.8rem;
        height: 1.7rem;
    }

    .letra {
        font-size: 2rem;
    }
}

@media (max-width: 630px) {
    html {
        font-size: 55%;
    }
}

.grid-cell {
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.celula-palavra {
    background-color: #fef6df !important;
    /* background-color: #fff !important; */
    border: 2px solid #000000;
}

.preenchida {
    background-color: #ffebb0 !important;
    /* background-color: #f8c700 !important; */
    border: 2px solid #000000;
    color: #000000;
}

.hifen-placeholder {
    color: #000000;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
}

.numero-pergunta {
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
    z-index: 10;
    width: 2rem;
    height: 2.1rem;
    border: 2px solid #000;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* position: absolute; */
    top: 2px;
    left: 2px;
}

.numero-vertical {
    background-color: var(--cor-vertical);
}

.numero-horizontal {
    background-color: var(--cor-horizontal);
}

.letra {
    font-size: 2.2rem;
    font-weight: bolder;
    text-transform: uppercase;
}

.hifen {
    color: #000000;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    position: relative;
    background-color: var(--cor-modal);
    padding: 2rem;
    border: 3px solid var(--cor-borda);
    border-radius: 30px;
    width: 100%;
    max-width: 50rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: -1.5rem;
    top: -1.5rem;
    background-color: #dbb67f;
    border: 3px solid #756244;
    border-radius: 100%;
    font-size: 2.5rem;
    line-height: 2.5rem;
    cursor: pointer;
    color: #756244;
    padding: 0.5rem 1rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header {
    color: var(--cor-modal-borda);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cor-borda);
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
}

.modal-pergunta-txt {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--cor-modal-borda);
}

.resposta-input {
    width: 100%;
    box-sizing: border-box;
    padding: 1.2rem;
    border: 3px solid #a88d62;
    border-radius: 12px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background-color: #f5e9d7;
    color: var(--cor-modal-borda);
    font-weight: bold;
    text-transform: uppercase;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.btn-confirmar,
.btn-revelar {
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.6rem;
    border: 3px solid var(--cor-modal-borda);
    flex: 1;
    min-width: 12rem;
}

.btn-confirmar {
    background-color: var(--cor-modal-borda);
    color: #dbb67f;
}

.btn-revelar {
    background-color: #dbb67f;
    color: var(--cor-modal-borda);
}

.feedback {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.feedback.certo {
    background-color: #57b55f;
    color: #cbf7cf;
    border: 2px solid #57b55f;
}

.feedback.errado {
    background-color: #c25d5d;
    color: #f7cbcf;
    border: 2px solid #c25d5d;
}

@media (max-width: 460px) {
    .tt {
        width: 80%;
        margin-left: 2rem;
    }
    .bird {
        width: 40%;
    }
    #content-container {
        padding-top: 0;
        margin-top: -2rem;
    }
    #grid-container {
        padding-top: 1rem;
        grid-template-columns: repeat(19, minmax(2rem, 2rem));
        grid-template-rows: repeat(19, minmax(2rem, 2rem));
        gap: 0.1rem;
    }
    #grid-container-bg {
        margin-top: 2rem;
    }
    .numero-pergunta {
        font-size: 1.1rem;
        width: 1.6rem;
        height: 1.5rem;
    }
    .letra {
        font-size: 1.4rem;
    }
    .celula-palavra {
        border: 1.4px solid #000000;
    }
    .numero-pergunta {
        border: 1.4px solid #000;
    }
    .modal {
        width: auto;
    }
}
