body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Modo Claro */
body.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

body.light-mode .content-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .quiz-button {
    background-color: #4CAF50;
    color: white;
}

body.light-mode .quiz-button:hover {
    background-color: #45a049;
}

body.light-mode .install-button {
    background-color: #666; /* Cinza escuro */
}

body.light-mode .install-button:hover {
    background-color: #555;
}

body.light-mode .social-button {
    background-color: #007bff; /* Azul para redes sociais */
}

body.light-mode .social-button:hover {
    background-color: #0056b3;
}


/* Modo Escuro */
body.dark-mode {
    background-color: #333;
    color: #f0f0f0;
}

body.dark-mode .content-card {
    background-color: #555;
    border: 1px solid #777;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .quiz-button {
    background-color: #2c7c30;
    color: white;
}

body.dark-mode .quiz-button:hover {
    background-color: #246328;
}

body.dark-mode .install-button {
    background-color: #444; /* Cinza escuro para modo escuro */
}

body.dark-mode .install-button:hover {
    background-color: #333;
}

body.dark-mode .social-button {
    background-color: #005bb0; /* Azul um pouco mais escuro para modo escuro */
}

body.dark-mode .social-button:hover {
    background-color: #004488;
}


/* Ícone de Configurações e Dropdown */
.settings-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.2em;
    cursor: pointer;
    color: #000;
    z-index: 1000;
    transition: color 0.3s ease;
}

body.dark-mode .settings-icon {
    color: #f0f0f0;
}

.settings-dropdown {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    left: 10px;
    top: 60px;
}

body.dark-mode .settings-dropdown {
    background-color: #444;
}

.settings-dropdown button {
    color: #333;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.dark-mode .settings-dropdown button {
    color: #f0f0f0;
}

.settings-dropdown button:hover {
    background-color: #e0e0e0;
}

body.dark-mode .settings-dropdown button:hover {
    background-color: #666;
}

.settings-dropdown.show {
    display: block;
}

/* Cabeçalho e Título */
.banner-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background-color: #e9e9e9;
    border-bottom: 2px solid #ccc;
    position: relative;
}

body.dark-mode .banner-section {
    background-color: #444;
    border-bottom: 2px solid #666;
}

.banner-section h1 {
    font-size: 4em;
    margin: 0; /* Removido margens extras */
    color: #333;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    padding: 10px 0; /* Padding para o texto */
}

body.dark-mode .banner-section h1 {
    color: #f0f0f0;
    text-shadow: 2px 2px 5px rgba(255,255,255,0.3);
}

/* Seção de Quizzes */
.quizzes-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 20px;
}

.quizzes-section h2 {
    font-size: 2.8em;
    margin-bottom: 35px;
    color: #2c3e50;
}

body.dark-mode .quizzes-section h2 {
    color: #cceeff;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.quiz-button {
    display: inline-block;
    padding: 18px 35px;
    font-size: 1.3em;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 280px;
    box-sizing: border-box;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    text-align: center; /* Garante que o texto esteja centralizado */
}

.quiz-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Seção "Saiba Mais" */
.about-section {
    margin-bottom: 80px;
    padding: 0 20px;
}

.about-section h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #2c3e50;
}

body.dark-mode .about-section h2 {
    color: #cceeff;
}

.content-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.content-wrapper::-webkit-scrollbar {
    height: 10px;
}

.content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

body.dark-mode .content-wrapper::-webkit-scrollbar-track {
    background: #444;
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

body.dark-mode .content-wrapper::-webkit-scrollbar-thumb {
    background: #aaa;
}

.content-card {
    flex: 0 0 auto;
    min-width: 380px;
    max-width: 450px;
    padding: 35px;
    border-radius: 12px;
    line-height: 1.7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body.dark-mode .content-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.content-card h3 {
    font-size: 2em;
    margin-bottom: 18px;
    color: #1e8449;
    border-bottom: 2px solid #1e8449;
    padding-bottom: 8px;
}

body.dark-mode .content-card h3 {
    color: #92d192;
    border-bottom-color: #92d192;
}

.content-card p {
    font-size: 1.1em;
    text-align: justify;
}

/* Nova Seção para os Botões "Instalar" e "Redes Sociais" */
.install-social-section {
    text-align: center;
    margin-bottom: 80px; /* Mantém o espaçamento inferior */
    padding: 20px; /* Padding para a seção */
}

.button-group-center {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espaço entre os botões */
    flex-wrap: wrap; /* Garante que os botões quebrem a linha em telas pequenas */
}

.main-action-button {
    display: inline-block;
    padding: 20px 40px; /* Padding um pouco menor para acomodar dois botões */
    font-size: 2.8em; /* Fonte ainda grande */
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px; /* Ajuste o espaçamento */
    min-width: 250px; /* Garante uma largura mínima para cada botão */
    text-align: center; /* Centraliza o texto */
    box-sizing: border-box; /* Inclui padding e borda na largura total */
}

.main-action-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

/* Cores específicas para cada botão */
.install-button {
    background-color: #666; /* Cinza para "Instalar" */
}
.install-button:hover {
    background-color: #555;
}
body.dark-mode .install-button {
    background-color: #444;
}
body.dark-mode .install-button:hover {
    background-color: #333;
}

.social-button {
    background-color: #007bff; /* Azul para "Redes Sociais" */
}
.social-button:hover {
    background-color: #0056b3;
}
body.dark-mode .social-button {
    background-color: #005bb0;
}
body.dark-mode .social-button:hover {
    background-color: #004488;
}


/* Responsividade básica para telas menores */
@media (max-width: 768px) {
    .banner-section h1 {
        font-size: 2.8em;
        letter-spacing: 1px;
    }

    .quizzes-section h2, .about-section h2 {
        font-size: 2em;
    }

    .quiz-button {
        min-width: 90%;
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .content-card {
        min-width: 90%;
        max-width: 90%;
        margin-bottom: 20px;
        padding: 25px;
    }

    .content-card h3 {
        font-size: 1.8em;
    }

    .content-card p {
        font-size: 1em;
    }

    .button-group-center {
        flex-direction: column; /* Empilha os botões em telas pequenas */
        gap: 20px; /* Espaço entre eles */
    }

    .main-action-button {
        font-size: 2.2em; /* Reduz o tamanho da fonte para telas pequenas */
        padding: 18px 30px;
        min-width: 90%; /* Ocupa quase a largura total */
    }

    .settings-icon {
        font-size: 1.8em;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .banner-section h1 {
        font-size: 2.2em;
    }
    .main-action-button {
        font-size: 1.8em;
    }
}