/* Estilos Generales */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #222; /* Fondo oscuro tipo juego */
    color: #eee; /* Texto claro */
}


header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: sticky; 
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #f0a000; /* Un toque de naranja/amarillo para resaltar */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
}

nav ul li {
    position: relative; 
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover, .dropbtn:hover {
    background-color: #555;
    border-radius: 5px;
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #666;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Contenido Principal */
main {
    padding: 20px;
    max-width: 1000px; 
    margin: auto; 
}

section {
    background-color: #333;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

section h2 {
    color: #f0a000;
    border-bottom: 2px solid #f0a000;
    padding-bottom: 10px;
    margin-top: 0;
}

section h3 {
    color: #bbb;
    margin-top: 25px;
}

section p, section ul {
    color: #ccc;
}

section img {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}


.character-grid, .infected-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
}

.character-card, .infected-card {
    background-color: #444;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.character-card img, .infected-card img {
    width: 140px;
    height: 140px;
    border-radius: 200%; 
    object-fit:fill;
    margin-bottom: 10px;
    border: 1px solid #f0a000;
}

.character-card h4, .infected-card h4 {
    color: #f0a000;
    margin-top: 0;
    margin-bottom: 10px;
}

.character-card p, .infected-card p {
    font-size: 0.9em;
    color: #ccc;
}

.gallery-grid img {
    width: 100%;
    height: 180px; 
    object-fit: cover; 
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03); 
}

/* Pie de Página */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
}


@media (max-width: 768px) {
    nav ul {
        flex-direction: column; 
    }
    nav ul li {
        margin: 5px 0;
    }
    .dropdown-content {
        position: static; 
        box-shadow: none;
    }
    .character-grid, .infected-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    section {
        padding: 15px;
    }
    .character-grid, .infected-grid, .gallery-grid {
        grid-template-columns: 1fr; 
    }
}