/* FONTES E CONFIGURAÇÕES GLOBAIS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #f7f5f0;
    --text-color: #080808;
    --main-color: rgb(9, 9, 236);
    --white-color: white;
    --shadow-color: rgba(90, 6, 6, 0.2);
    --correct-color: green;
    --incorrect-color: red;
    --neutral-bg-color: rgb(169, 165, 165);
    --question-bg-color: #b7b1b1;
    --sidebar-bg: #111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: margin-left .5s; /* Animação para empurrar conteúdo */
}

/* --- ESTILOS DA SIDEBAR E CABEÇALHO --- */
.main-nav {
    width: 100%;
    background: black;
    height: 60px;
    padding: 0 20px;
    position: fixed;
    text-align: center;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    font-size: 3rem;
    color: white;
    background: transparent;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.main-nav .nav-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

#sidebar {
    height: 100%;
    width: 260px;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: -260px; /* Começa escondida */
    background-color: var(--sidebar-bg);
    overflow-x: hidden;
    padding-top: 20px;
    transition: 0.5s;
}

#sidebar .sidebar-nav {
    list-style: none;
}

#sidebar .sidebar-nav .close-btn {
    font-size: 3.5rem;
    color: #818181;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    transition: 0.3s;
}
#sidebar .sidebar-nav .close-btn:hover {
    color: #f1f1f1;
}

#sidebar .sidebar-nav li a {
    padding: 10px 15px;
    font-size: 1.8rem;
    color: #818181;
    display: block;
    transition: 0.3s;
}

#sidebar .sidebar-nav li a:hover {
    color: #f1f1f1;
    background-color: #333;
}

/* Classe para empurrar o conteúdo principal */
body.sidebar-open {
    margin-left: 260px;
}

#main-content {
    transition: margin-left .5s; /* Garante que o conteúdo principal também anime */
    padding-top: 60px; /* Compensa a altura do cabeçalho fixo */
}


/* --- RESTANTE DOS ESTILOS --- */
section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

.highlight {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--incorrect-color);
}

header {
    text-align: center;
    padding: 4rem 2rem;
}

header .profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid black;
}

.tag.name {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-top: 1.5rem;
}

.flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 2rem 7%;
}

.card {
    margin: 20px 0;
    padding: 20px;
    max-width: 500px;
    text-align: left;
    background: var(--white-color);
    border-bottom: 4px solid #ccc;
    border-radius: 6px;
    transition: all .5s;
    flex: 1 1 400px;
}

.card:hover {
    border-color: var(--main-color);
}

main p {
    font-size: 1.6rem;
    line-height: 1.6em;
}

.serviços {
    min-height: auto;
    padding: 5rem 7% 10rem;
}

.serviços .heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.serviços .serviços-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.serviços-container .serviços-box {
    flex: 1 1 30rem;
    background: var(--white-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    text-align: center;
    border-top: .6rem solid var(--main-color);
    border-bottom: .6rem solid var(--main-color);
    transition: .5s ease;
}

.serviços-container .serviços-box:hover {
    box-shadow: 0 .1rem 2rem var(--shadow-color);
    transform: scale(1.02);
}

.serviços-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin: 1rem 0;
}

.serviços-box h3 {
    font-size: 2.6rem;
    transition: .5s ease;
}

.serviços-box:hover h3 {
    color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
    margin-top: 1rem;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

.questions-body {
    background-color: var(--neutral-bg-color);
}

.questions-container {
    padding: 4rem 7% 2rem;
    max-width: 1000px;
    margin: auto;
}

.questions-container h1 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 2rem;
}

.question {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--question-bg-color);
    text-align: justify;
}

.question p {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.options label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.options label:hover {
    background-color: rgba(0,0,0,0.1);
}

.options input {
    margin-right: 10px;
}

.question button {
    background-color: rgb(20, 20, 20);
    color: var(--correct-color);
    padding: 8px 25px;
    font-size: 1.6rem;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
}

.correct {
    background-color: var(--correct-color) !important;
    color: white;
    font-weight: bold;
}

.incorrect {
    background-color: var(--incorrect-color) !important;
    color: white;
    font-weight: bold;
}

.back-link {
    display: inline-block;
    color: var(--main-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    .flex {
        flex-direction: column;
        align-items: center;
    }
}

