:root {
    --game-dark-bg: #1A1A1A;
    --game-section-bg: #2B2B2B;
    --game-text-primary: #F0F0F0;
    --game-text-secondary: #AAAAAA;
    --game-border-color: #555555;
    --effect-green-neon: #00FF00;
    --effect-blue-vibrant: #007BFF;
    --effect-red-action: #FF3366;
    --effect-bright-yellow: #FFFF00;
    --effect-purple-accent: #9900FF;
}


/* Base Geral do Documento */

body {
    font-family: 'Audiowide', sans-serif;
    background-color: var(--game-dark-bg);
    color: var(--game-text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto;
    background-image: url('iMG/fliperama.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    z-index: -1;
}


/* Container Principal do Site */

#container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background-color: var(--game-section-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin: 30px auto;
    border: 1px solid var(--effect-green-neon);
    transition: all 0.3s ease-in-out;
}

#container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--effect-blue-vibrant);
    /* Sombra e brilho */
}


/* Cabeçalho */

#jar-header {
    background-color: var(--game-dark-bg);
    color: var(--game-text-primary);
    padding: 60px 30px;
    text-align: center;
    border-bottom: 2px solid var(--effect-blue-vibrant);
    position: relative;
    overflow: hidden;
    background-size: 150px;
    background-repeat: no-repeat;
    background-position: center 20px;
    padding-top: 100px;
}

#jar-header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 3.5em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--effect-bright-yellow);
    text-shadow: 0 0 10px var(--effect-bright-yellow), 0 0 20px rgba(255, 255, 0, 0.4);
    animation: textFlicker 1.5s infinite alternate;
}

@keyframes textFlicker {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--effect-bright-yellow);
    }
    50% {
        opacity: 0.9;
        text-shadow: 0 0 8px var(--effect-bright-yellow), 0 0 15px rgba(255, 255, 0, 0.3);
    }
}

#jar-header h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.8em;
    margin: 15px 0 0;
    color: var(--effect-blue-vibrant);
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}


/* Conteúdo Principal e Barra Lateral */

.page-wrapper {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    background-color: var(--game-section-bg);
    /* O container principal */
}

.main.supporting {
    flex: 3;
    padding: 25px;
    color: var(--game-text-primary);
    background-color: var(--game-dark-bg);
}

.intro {
    padding: 25px;
    background-color: var(--game-dark-bg);
    color: var(--game-text-primary);
    border-radius: 5px;
    position: relative;
}


/* Estilo para as Sub-seções de Conteúdo */

.summary,
.preamble,
.explanation,
.participation,
.benefits,
.requirements {
    padding: 25px;
    margin-bottom: 30px;
    background-color: var(--game-dark-bg);
    border-radius: 5px;
    border: 1px solid var(--effect-blue-vibrant);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.7;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}


/* Efeito p/ passar o mouse */

.summary:hover,
.preamble:hover,
.explanation:hover,
.participation:hover,
.benefits:hover,
.requirements:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--effect-red-action);
    border-color: var(--effect-red-action);
}


/* Efeito de Borda Animada*/

.summary::before,
.preamble::before,
.explanation::before,
.participation::before,
.benefits::before,
.requirements::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 7px;
    padding: 2px;
    background: linear-gradient(45deg, var(--effect-green-neon), var(--effect-blue-vibrant), var(--effect-purple-accent));
    background-size: 300% 300%;
    animation: borderGlow 4s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.summary:hover::before,
.preamble:hover::before,
.explanation:hover::before,
.participation:hover::before,
.benefits:hover::before,
.requirements:hover::before {
    opacity: 1;
    /* Aparece ao passar o mouse */
}

.summary h3,
.preamble h3,
.explanation h3,
.participation h3,
.benefits h3,
.requirements h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8em;
    color: var(--effect-green-neon);
    border-bottom: 1px solid var(--effect-red-action);
    padding-bottom: 10px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    /* Sombra para o título */
}

p {
    margin-bottom: 15px;
    color: var(--game-text-primary);
}


/* Efeitos para Links*/

a {
    color: var(--effect-blue-vibrant);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    display: block;
    margin-top: 3px;
    left: 0;
    background: linear-gradient(90deg, var(--effect-green-neon), var(--effect-red-action));
    transition: width 0.3s ease-out;
}

a:hover {
    color: var(--effect-green-neon);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

a:hover::after {
    width: 100%;
}


/* Sidebar */

.sidebar {
    flex: 1;
    padding: 25px;
    background-color: var(--game-dark-bg);
    color: var(--game-text-primary);
}

.sidebar .wrapper {
    margin-bottom: 30px;
    background-color: var(--game-section-bg);
    padding: 25px;
    border-radius: 5px;
    border: 1px solid var(--effect-blue-vibrant);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 8px var(--effect-blue-vibrant);
}

.sidebar .wrapper h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.6em;
    color: var(--effect-red-action);
    border-bottom: 1px solid var(--effect-green-neon);
    padding-bottom: 10px;
    margin-top: 0;
    text-transform: uppercase;
}

.sidebar .wrapper ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.sidebar .wrapper li {
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.sidebar .wrapper li:last-child {
    border-bottom: none;
}


/* Efeitos Links da Sidebar*/

.sidebar .wrapper a {
    color: var(--game-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding-left: 20px;
    text-shadow: none;
}

.sidebar .wrapper a::before {
    content: '▶';
    font-size: 0.8em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--effect-red-action);
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar .wrapper a::after {
    content: none;
}

.sidebar .wrapper a:hover {
    color: var(--effect-green-neon);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.sidebar .wrapper a:hover::before {
    color: var(--effect-green-neon);
    transform: translateY(-50%) scale(1.1);
}


/* Rodapé */

#jar-footer {
    background-color: var(--game-dark-bg);
    color: var(--game-text-secondary);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
}

#jar-footer p {
    margin: 0;
    color: var(--game-text-secondary);
}


/* Scrollbar Personalizado */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--game-section-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--effect-blue-vibrant);
    border-radius: 10px;
    border: 2px solid var(--effect-green-neon);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--effect-red-action);
}


/* Responsividade*/

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    .main.supporting {
        border-right: none;
        border-top: 1px solid var(--effect-green-neon);
        ;
        border-bottom: 1px solid var(--effect-green-neon);
        ;
    }
    .sidebar {
        border-left: none;
        border-top: 1px solid var(--effect-green-neon);
    }
    #jar-header h1 {
        font-size: 2.5em;
        letter-spacing: 3px;
    }
    #jar-header h2 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    #jar-header {
        padding: 40px 20px;
        padding-top: 80px;
    }
    #jar-header h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }
    #jar-header h2 {
        font-size: 1.2em;
    }
    .sidebar,
    .summary,
    .preamble,
    .explanation,
    .participation,
    .benefits,
    .requirements {
        padding: 15px;
    }
    .intro {
        background-position: center bottom 10px;
    }
    .summary h3,
    .preamble h3,
    .explanation h3,
    .participation h3,
    .benefits h3,
    .requirements h3 {
        font-size: 1.4em;
    }
    .sidebar .wrapper h3 {
        font-size: 1.3em;
    }
}