/* ===== Layout base ===== */
html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f6f7fb;
    color: #0a2540;
}

/* ===== Conteúdo ===== */
main {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background-color: #e2e2f5;
    height: auto;
    margin-top: 10vh;
}

.letra.espaco {
    border: none;
    width: 1.5rem;
}


/* ===== Títulos ===== */
h2 {
    color: #0a2540;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}

p {
    font-family: "inter", sans-serif;
    text-align: center;
    font-size: 1.2rem;
}

/* ===== header ===== */
header {
    z-index: 1000;
    padding: .5rem 1rem;
    min-height: 10vh;
    height: 10vh;
    flex-direction: row;
    display: flex;
    position: fixed;
    width: 100%;
    background-color: #fefefe;
    border-bottom: 2px solid #37415156;
    box-shadow: 0px 5px 10px #a3a3a383;
}

/* ===== footer =====*/
footer {
    min-height: 20vh;
    height: 20vh;
}

.logo-rodape {
    height: 50%;
}

.logo-main {
    height: 8vh;
}

.logo:hover {
    cursor: pointer;
}

/* ===== titulo ===== */
.titulo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: "Bangers", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: .5rem;
}

.logo {
    height: 100%;
}

.campo-nova-palavra {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: 70%;
}

/* ===== Botões ===== */
button {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    width: 10rem;
    height: 3rem;
    border-radius: 12px;
    border: none;
    background-color: #1f6feb;
    box-shadow: 0 6px 15px rgba(31, 111, 235, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(31, 111, 235, 0.4);
}

.teclado-virtual button {
    border-radius: 8px;
}

.tecla {
    background-color: #1f6feb;
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.tecla:hover {
    transform: translateY(-1px);
}

/* CORES DAS TECLAS */

.tecla.letra-correta {
    background-color: #22c55e;
    /* verde */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}

.tecla.letra-errada {
    background-color: #dc2626 !important;
    color: #fff !important;
}

/* evita que disabled apague a cor */
.tecla:disabled {
    opacity: 1;
    cursor: not-allowed;
}

/* ===== Letras da forca ===== */
.letra {
    border-bottom: 2px solid #1f6feb;
    font-size: 2rem;
    text-align: center;
}

/* ===== Inputs ===== */
label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    color: #374151;
}

#palavra,
#dica {
    width: 100%;
    height: 2.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    font-size: 1rem;
    background: #ffffff;
    color: #0a2540;
}

/* ===== Footer ===== */
footer {
    display: flex;
    justify-content: space-between;
    background-color: #0a2540;
    padding: 1rem;
    text-align: center;
    align-items: center;
}

.copyright {
    color: #ffffff;
    font-size: 0.9rem;
}

.termos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.termos a {
    font-size: .8rem;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #111;
    color: white;
    padding: 15px;
    display: none;
    z-index: 9999;
}

.cookie-content {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#cookie-banner a {
    color: #00bfff;
    text-decoration: underline;
}

#aceitar-cookies {
    background: #00bfff;
    border: none;
    padding: 8px 15px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}


/* ===== Responsivo ===== */
@media (max-width: 650px) {
    footer {
        flex-direction: column;
    }
}