body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom right, #f0f4f8, #d9e4f5);
    margin: 0;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.navegacao {
    background: linear-gradient(to bottom, #1e3a8a, #264c9a);
    color: white;
    padding: 20px 40px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.menu-container button {
    background-color: white;
    color: #1e3a8a;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-container button:hover {
    background-color: #dbeafe;
}

.btn-nav {
    background: #fdb500;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-nav:hover {
    background: #ebebeb;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: black;
}

.btn-nav:active {
    transform: scale(0.98);
}

.btn-nav:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.titulo {
    font-size: 2rem;
    color: #2a5298;
    margin-bottom: 1rem;
}

.sub-titulo {
    font-size: 1.2rem;
    color: rgb(102, 102, 102);
    margin-bottom: 1rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 1rem;
    text-align: center;
}

.card-minigame {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    box-sizing: border-box;
}

.card-resultado {
    background: white;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

.card-input,
.submete {
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
    box-sizing: border-box;
}

.input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
    outline: none;
}

.submete {
    background-color: rgb(42,82,152);
    padding: 10px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin-top: 15px;
    box-sizing: border-box;
}

.submete:hover {
    background-color: rgb(27, 67, 136);
    transform: scale(1.01);
}

.acerto, .errado {
    font-size: 1rem;
    color: white;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.acerto {
    background-color: green;
}

.errado {
    background-color: rgb(253, 53, 53);
}

@media (max-width: 768px) {
    .navegacao {
        height: 65%;
    }

    .menu-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .btn-nav {
        flex: 1 1 100px;
        max-width: 140px;
        font-size: 1rem;
        text-align: center;
    }

    .card-minigame, .input, .submete {
        padding: 16px;
        width: 100%;
        max-width: 90vw;
    }

    .titulo {
        font-size: 1.5rem;
    }

    .sub-titulo {
        font-size: 1rem;
    }

    .card-resultado {
        width: 90%;
        padding: 1rem;
    }

}