/* Estilos generales y fondo de la página */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('fondo.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
}

/* Contenedor principal para centrar el contenido */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente para legibilidad */
    border-radius: 10px;
}

/* Estilos de la cabecera */
.main-header {
    text-align: center;
}

.header-image {
    max-width: 100%;
    height: auto;
}

/* Estilo del título principal con fuente de Halloween */
h1 {
    font-family: 'Creepster', cursive; /* Fuente temática de Halloween */
    font-size: 3rem; /* Tamaño grande */
    color: #FF6600; /* Color naranja típico de Halloween */
    text-align: center;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 25px;
}

/* Contenedor del anuncio de AdSense */
.ad-container {
    margin: 20px auto;
    text-align: center;
    min-height: 100px; /* Altura mínima para evitar saltos de contenido */
}

.ad-label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 5px;
}

/* Grilla de letras del abecedario */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    gap: 15px; /* Espacio entre letras */
    margin: 30px 0;
}

.alphabet-grid a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FF6600;
    color: #000;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 8px;
    height: 80px;
    transition: transform 0.2s, background-color 0.2s;
    border: 2px solid #000;
}

.alphabet-grid a:hover {
    background-color: #ff983e;
    transform: scale(1.1); /* Efecto de crecimiento al pasar el mouse */
}

/* Sección de texto informativo */
.info-text {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 8px;
    line-height: 1.6;
}

.info-text h2 {
    color: #FF6600;
    text-align: center;
}

/* Botón de suscripción a YouTube */
.youtube-button {
    display: block;
    width: fit-content;
    margin: 30px auto;
    padding: 15px 30px;
    background-color: #FF0000; /* Rojo de YouTube */
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s;
}

.youtube-button:hover {
    background-color: #cc0000;
}

/* Pie de página */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.8);
}

footer p {
    margin: 0;
    color: #ccc;
}

footer a {
    color: #FF6600;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Media Queries para hacerlo Responsive --- */

/* Para tablets */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .alphabet-grid {
        gap: 10px;
    }

    .alphabet-grid a {
        font-size: 2rem;
        height: 65px;
    }
}

/* Para móviles */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    /* La grilla se mantiene en 4 columnas, pero con menos espacio */
    .alphabet-grid {
        gap: 8px;
    }
    
    .alphabet-grid a {
        font-size: 1.5rem;
        height: 50px;
    }

    .youtube-button {
        padding: 12px 20px;
        width: 90%;
    }
}