/* PNFoundCSS.css - CÓDIGO FINAL */

/* 1. Configurações Globais e Efeito VHS */
@font-face {
    font-family: 'PixelFont';
    /* Defina o caminho para sua fonte pixelada, se tiver */
}

/* NOVO ESTILO: Fundo de textura com opacidade */
.custom-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sua imagem de fundo */
    background-image: url('https://i.pinimg.com/736x/a7/f8/eb/a7f8eb6865f8fc13b000b0d920dffd5f.jpg');
    background-size: cover; /* Garante que a imagem cubra todo o fundo */
    background-repeat: no-repeat;
    background-position: center center;
    
    /* 50% de Opacidade */
    opacity: 18%;
    
    /* Coloca esta camada abaixo de todo o conteúdo e do fundo principal */
    z-index: -2; 
}

body {
    background-color: #0c0812; 
    color: #ff3366; 
    font-family: 'PixelFont', 'Press Start 2P', monospace;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; 
    text-align: center;
    filter: hue-rotate(5deg) saturate(1.2); /* Efeito de cor VHS */
}

/* Efeito de Scanlines (Linhas de TV) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    z-index: 1000; 
    pointer-events: none;
}

/* Animação para simular falhas de rastreamento VHS */
@keyframes vhs-glitch-y {
    0% { transform: translateY(0); opacity: 1; }
    20% { transform: translateY(-3px) scaleY(1.02); opacity: 0.8; }
    40% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(5px) scaleY(0.98); opacity: 0.9; }
    80% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

.content {
    animation: vhs-glitch-y 10s infinite ease-in-out; 
    position: relative; 
    max-width: 800px;
    width: 90%;
    padding: 20px;
    box-sizing: border-box;
}

/* 2. Estilização do Texto */
.critical-error {
    font-size: 3em;
    margin-bottom: 30px;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.4);
    animation: text-glitch 0.5s infinite alternate; 
}

/* Texto Dinâmico */
#dynamic-text-container {
    height: 60px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.dynamic-line {
    font-size: 1.5em;
    font-weight: bold;
    color: #9c0000;
    margin: 5px 0;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
    position: absolute; 
    text-align: center;
}

.next-file-text {
    font-size: 1.5em;
    margin: 15px 0;
    font-weight: bold;
    color: #ed0505; 
}

/* 3. Botão Objeto (Carne) Central */
.meat-button {
    display: block; 
    width: 200px; 
    height: auto;
    margin: 40px auto;
    cursor: pointer;
    text-decoration: none;
   
}

/* Imagem Brilhante */
.meat-object-img {
    width: 100%; 
    height: auto;
    display: block;
    /* Filtro base e animação de pulsação */
    filter: drop-shadow(0 0 15px #7a0220) drop-shadow(0 0 5px #7a0220);
    animation: object-pulse 2s infinite alternate ease-in-out;
    transform: rotate(5deg); 
    transition: filter 0.1s ease-in-out, transform 0.1s ease-in-out; 
}

/* HOVER: Torna a IMAGEM (meat-object-img) igual ao botão inferior */
.meat-button:hover .meat-object-img {
    /* Efeito de Glitch Cromático: Vermelho/Ciano */
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 1)) drop-shadow(0 0 5px rgba(0, 255, 255, 0.5)); 
    /* Animação de escala e distorção */
    transform: scale(1.05) rotate(6deg) skewX(2deg); 
}

/* HOVER: Contorno do Botão */
.meat-button:hover {
    border-color: #ff0000;
}


/* HOVER: Botão Inferior (mesmo efeito do objeto central) */
.next-button:hover {
    transform: scale(1.05) skewX(2deg); 
    /* Efeito de Glitch Cromático: Vermelho/Ciano */
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 1)) drop-shadow(0 0 5px rgba(0, 255, 255, 0.5)); 
}

/* 5. Animações */
@keyframes text-glitch {
    0% { transform: translate(0); text-shadow: 0 0 10px rgba(255, 0, 0, 0.8); }
    40% { transform: translate(3px, -1px); text-shadow: 2px -2px 15px rgba(255, 0, 0, 1); }
    80% { transform: translate(2px, 1px); text-shadow: 1px 2px 10px rgba(255, 0, 0, 0.7); }
    100% { transform: translate(0); }
}

@keyframes object-pulse {
    0% { transform: scale(1) rotate(5deg); opacity: 1; }
    50% { transform: scale(1.03) rotate(6deg); opacity: 0.95; }
    100% { transform: scale(1) rotate(5deg); opacity: 1; }
}

@keyframes eye-pulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

/* Mídia Query para telas menores */
@media (max-width: 600px) {
    .critical-error {
        font-size: 2em;
    }
    .dynamic-line, .next-file-text {
        font-size: 1.2em;
    }
    .meat-button, .next-button {
        width: 150px;
    }
}