body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f7;
}

/* HEADER */
header {
    padding: 15px;
    background: #283e51;
    color: white;
    text-align: center;
}

.logout-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 10px 20px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
}

.logout-btn:hover {
    background: #c9302c;
}


/* HERO */
.hero {
    padding: 70px 20px;
    text-align: center;
    background: linear-gradient(#4b79a1, #283e51);
    color: white;
    animation: fadeIn 1.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.titulo {
    text-align: center;
    margin-top: 40px;
}

/* TELA DE LOGIN */
.login-container {
    width: 350px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.login-form label {
    margin-top: 10px;
    font-weight: bold;
}

.login-form input,
.login-form textarea {
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.login-form button {
    margin-top: 20px;
    padding: 12px;
    background: #283e51;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
}

.login-form button:hover {
    background: #4b79a1;
}


/* GRID */
.grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px;
    gap: 20px;
}

/* CARDS */
.card {
    background: white;
    width: 250px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transition: .3s;
    transform: scale(1);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px;
    background: #283e51;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: .3s;
}

.btn:hover {
    background: #4b79a1;
}

/* --------- MODAL SEM JS (usando :target) ----------- */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    opacity: 0;
    pointer-events: none;
    transition: .4s;
}

.modal:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 60%;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    animation: slide .4s ease-out;
}

@keyframes slide {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close {
    float: right;
    font-size: 25px;
    text-decoration: none;
    color: red;
}

.actions button {
    padding: 10px;
    margin: 10px 5px;
    background: #4b79a1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* QUIZ */
.quiz {
    width: 60%;
    margin: auto;
}

.pergunta {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

.alternativa {
    display: block;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: background .3s;
}

.alternativa:hover {
    background: #f2f2f2;
}

/*MENSAGENS */
.certo, .errado {
    display: none;
    margin-left: 10px;
    font-weight: bold;
}

.certo {
    color: green;
}

.errado {
    color: red;
}

/*MOSTRAR MENDAGEM QUANDO MARCA O RADIO */
input[type="radio"]:checked ~ .certo {
    display: inline;
}

input[type="radio"]:checked ~ .errado {
    display: inline;
}

input[type="radio"] {
    margin-right: 10px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #283e51;
    color: white;
}

