/* Colores de referencia de Los Simpsons */
:root {
    --simpsons-yellow: #FDCB00;
    --simpsons-blue: #0080C1;
    --simpsons-red: #ED1C24;
    --simpsons-green: #8BC53F;
    --simpsons-black: #000;
    --simpsons-white: #FFF;
}

body {
    font-family: 'Arial', sans-serif; /* Puedes cambiar la fuente por una más "cartoon" si tienes una */
    background-color: var(--simpsons-yellow); /* El icónico amarillo de Springfield */
    color: var(--simpsons-black);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    overflow: hidden; /* Evita barras de scroll si los elementos animados se salen */
    position: relative; /* Necesario para posicionar elementos pseudo y animados */
}

/* Fondo divertido con elementos de Los Simpsons */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="20" font-size="15" fill="%230080C1">🍩</text><text x="70" y="50" font-size="15" fill="%23ED1C24">🍺</text><text x="30" y="80" font-size="15" fill="%238BC53F">🌿</text></svg>'), /* Donuts, cerveza Duff, arbustos */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="40" y="10" font-size="20" fill="%23ED1C24">🚧</text><text x="80" y="90" font-size="20" fill="%23FDCB00">☢️</text><text x="5" y="60" font-size="20" fill="%23000">🍔</text></svg>'); /* Cono de construcción, nuclear, Krusty Burger */
    background-repeat: repeat;
    background-size: 100px; /* Ajusta el tamaño de los iconos si es necesario */
    opacity: 0.3; /* Haz que el fondo sea sutil */
    z-index: -1; /* Envía el fondo detrás del contenido */
    animation: backgroundScroll 60s linear infinite; /* Animación para mover el fondo */
}

@keyframes backgroundScroll {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}


.container {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semi-transparente */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 10px 10px 0px var(--simpsons-black); /* Sombra para un efecto "cartoon" */
    border: 5px solid var(--simpsons-black);
    max-width: 800px;
    width: 90%;
    box-sizing: border-box; /* Incluye padding y border en el ancho total */
    position: relative;
    z-index: 1; /* Asegura que el contenido esté sobre el fondo */
}

h1 {
    color: var(--simpsons-red);
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px var(--simpsons-blue); /* Sombra de texto para pop */
    animation: pulse 2s infinite ease-in-out; /* Animación llamativa para el título */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


p {
    color: var(--simpsons-black);
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.soon-message {
    font-size: 1.5em;
    color: var(--simpsons-blue);
    font-weight: bold;
    margin-top: 30px;
    text-shadow: 2px 2px 0px var(--simpsons-yellow);
}

.simpsons-img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border: 5px solid var(--simpsons-black);
    box-shadow: 8px 8px 0px var(--simpsons-red);
    border-radius: 10px;
}

/* Estilo para hacerla responsiva */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }

    .soon-message {
        font-size: 1.2em;
    }

    .container {
        padding: 20px;
    }
}