/* ========================================= */
/* 1. IMPORTAÇÃO DE FONTES & CURSOR          */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    cursor: url(https://ani.cursors-4u.net/toons/too-12/too1134.cur), auto !important;
    box-sizing: border-box; /* Isso impede que bordas quebrem o layout */
}

/* ========================================= */
/* 2. VARIÁVEIS DE CORES (PALETA)            */
/* ========================================= */
:root {
    --bg-color: #2f524b;      
    --box-bg: rgba(235, 226, 214, 0.95); /* Bege quase sólido */        
    --accent: #cd683d;  /* Laranja */       
    --border: #4a2c18;  /* Marrom Escuro */
    --text: #2e1e11;    /* Café */
    --link-color: #2f5b5b;
}

/* ========================================= */
/* 3. CONFIGURAÇÕES GERAIS (BODY & VIDEO)    */
/* ========================================= */
body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: 'Share Tech Mono', monospace; 
    margin: 0;
    padding: 0;
    font-size: 14px;
}

#video-fundo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: contain; 
    image-rendering: pixelated;
}

/* Links gerais */
a {
    color: var(--border);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
    color: var(--accent);
}

/* ========================================= */
/* 4. BARRA DO TOPO (TOP BAR)                */
/* ========================================= */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    background-color: #7c855a; 
    border-bottom: 3px solid var(--border); 
    padding: 10px 20px;
    width: 100%;
    position: sticky; 
    top: 0;
    z-index: 100; 
    backdrop-filter: blur(5px); 
}

.star-icon {
    color: var(--border);
    font-size: 24px;
    position: relative;
    font-weight: bold;
    top: -2px;
}

.top-nav {
    display: flex;          
    align-items: center;    
    gap: 20px;              
}

.top-nav a {
    color: var(--text);
    font-family: 'VT323', monospace;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px; /* Aumentei um pouco para ler melhor */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-nav a:hover {
    color: #9a2f17; 
    text-decoration: line-through; 
}

/* ========================================= */
/* 5. TEXTO CORRENDO (MARQUEE)               */
/* ========================================= */
.marquee-container {
    width: 100%;
    background-color: var(--text); 
    color: var(--accent);          
    border-bottom: 2px solid var(--border);
    overflow: hidden;              
    white-space: nowrap;           
    padding: 5px 0;
    font-family: 'VT323', monospace; 
    font-size: 18px;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;            
    animation: scroll-text 25s linear infinite; 
}

.frase {
    margin-right: 300px; /* Espaço entre as frases */
}

@keyframes scroll-text {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ========================================= */
/* 6. LAYOUT PRINCIPAL (WRAPPER)             */
/* ========================================= */
.conteudo-principal {
    display: flex;           
    justify-content: center; /* Centraliza as caixas na tela */
    align-items: flex-start; 
    gap: 30px;               /* Espaço entre as caixas */
    
    max-width: 1200px;       
    margin: 50px auto;       /* Margem automática nas laterais */
    padding: 0 20px;
}

/* ========================================= */
/* 7. ESTILO DAS CAIXAS (MEU CONTAINER)      */
/* ========================================= */
.meu-container {
    /* Largura ajustada para caberem duas lado a lado (45% + 45%) */
    width: 45%;            
    min-width: 350px;
    
    /* Removemos margens fixas porque o .conteudo-principal já centraliza */
    margin: 0;   
    
    background-color: var(--box-bg); 
    border: 2px solid var(--border);        
    box-shadow: 8px 8px 0px var(--border);  
    backdrop-filter: blur(5px);
}

.titulo-container {
    font-family: 'VT323', monospace;
    font-size: 28px;
    background-color: var(--accent); 
    color: #fff;                     
    padding: 10px 15px;              
    font-weight: bold;               
    border-bottom: 2px solid var(--border); 
    letter-spacing: 2px;             
    text-transform: uppercase;       
}

.conteudo-container {
    padding: 20px;       
    line-height: 1.4;    
    color: var(--text);  
}

.conteudo-container img {
    max-width: 100%;    
    height: auto;       
    display: block;     
    margin: 20px auto;  
    border: 2px solid var(--border); 
}

/* ========================================= */
/* 8. CÓDIGOS ANTIGOS / OUTRAS PÁGINAS       */
/* (Mantive aqui caso precise usar depois)   */
/* ========================================= */
.box {
    border: 2px solid var(--border);
    box-shadow: 6px 6px 0px var(--border);
    background-color: var(--box-bg);
    margin-bottom: 25px;
}
.box-header {
    background-color: var(--accent);
    color: #fff; 
    padding: 8px 15px;
    border-bottom: 2px solid var(--border);
    font-weight: bold;
    letter-spacing: 1px;
}
.content-grid {
    display: grid;
    grid-template-columns: 200px 1fr 250px; 
    gap: 20px;
    align-items: start;
}
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}
.nav-card {
    border: 1px solid var(--border);
    background-color: rgba(255,255,255,0.4); 
    text-align: center;
    padding: 15px;
    display: block;
    transition: 0.2s;
}
.nav-card:hover {
    transform: translate(-3px, -3px); 
    box-shadow: 3px 3px 0px var(--border);
    background-color: var(--accent); 
    color: #fff;
}
.lista-links li {
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

/* ========================================= */
/* 9. MOBILE / CELULAR                       */
/* ========================================= */
@media (max-width: 800px) {
    /* Transforma o layout lado-a-lado em coluna */
    .conteudo-principal {
        flex-direction: column;
        align-items: center;
    }

    /* Caixa ocupa a tela toda no celular */
    .meu-container {
        width: 100%;          
        margin-bottom: 40px;   
    }

    /* Ajustes da barra e grids antigos */
    .content-grid { grid-template-columns: 1fr; }
    .top-bar { font-size: 12px; padding: 10px; }
    .star-icon { display: none; }
}

/* --- ESTILO DO GERADOR DE QUOTES --- */

/* Texto da frase */
.pixel-text {
    font-style: italic;
    min-height: 60px; /* Segura o espaço para a caixa não ficar mudando de tamanho */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Botão Retro */
.btn-pixel {
    background-color: var(--text); /* Fundo Café */
    color: #fff;                   /* Texto Branco */
    font-family: 'VT323', monospace; /* Fonte Pixelada */
    font-size: 20px;
    border: 2px solid var(--border);
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.1s;
    box-shadow: 3px 3px 0px var(--border); /* Sombra dura */
}

.btn-pixel:hover {
    background-color: var(--accent); /* Fica Laranja */
    transform: translate(2px, 2px);  /* Efeito de botão afundando */
    box-shadow: 1px 1px 0px var(--border);
}

.btn-pixel:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

/* --- ESTILO DA BOLA 8 MÁGICA --- */

/* Ajuste para a caixa ficar menorzinha (Widget) */
.container-8ball {
    max-width: 300px !important; 
}

/* O corpo da bola preta */
#magic-ball {
    width: 150px;
    height: 150px;
    background-color: var(--text); /* Preto/Café */
    border-radius: 50%;            /* Deixa redondo */
    border: 4px solid var(--border);
    margin: 0 auto;                /* Centraliza */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    user-select: none;             /* Não deixa selecionar o texto */
    transition: transform 0.1s;
}

/* O triângulo/texto de dentro */
#ball-answer {
    width: 90px;
    height: 90px;
    background-color: var(--box-bg); /* Bege claro */
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 40px; /* Tamanho do número "8" inicial */
    line-height: 1;
    padding: 5px;
}

/* A Animação de "Tremer" */
.shaking {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}