/* Importar fuentes de Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

/* Estilo del cuerpo de la pagina*/
body {
    font-family: Arial, sans-serif;
    background-color: black;
    color: black;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
 /*Configuracion de la imagen*/
.imagen{
    max-width: 80%;
    height: auto;
}

/* Estilo para el titulo principal (h1) */
body h1{
    font-family: 'Anton', serif;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 2px 2px 10px black;
    -webkit-text-stroke: 2px black;
}

/* Contenedor para centrar el contenido */
.container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilos para el encabezado */
.header {
    background: linear-gradient(to right, #FFD700, #FF8C00);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
}

/* Estilos para la cuadricula */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    max-width: 900px;
    width: 100%;
}

/* Titulo principal */
.tituloCalendario{
    color: white;
    font-family: "Funnel Display", serif;
    font-weight: 400;
    font-style: normal;
    background: linear-gradient(90deg, transparent, gold, transparent);
    background-size: 200% 100%; 
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    color: white; 
}

/* Texto legible*/
@media (max-width: 600px) {
    body h1 {
        -webkit-text-stroke: 1px black;
    }
}


/*** Creacion de cada cuadro (día) ***/
.event {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    width: calc(25% - 15px); 
    text-align: center;
    color: black;
    box-sizing: border-box;
}
 /* Fecha / Titulo*/
.event h3 {
    font-family: "Funnel Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: black;
    margin-bottom: 5px;
    text-align: center;
    margin-top: 0;
    padding-top: 10px; 
    width: 100%;
    background-color: #EBB74A; 
    text-transform: uppercase;
}
/* Ajustar titulos */
@media (max-width: 600px) {
    body h1 {
        font-size: 32px; /* Reduce el tamaño del título */
    }

    h2 {
        font-size: 24px;
    }

    .event h3 {
        font-size: 16px;
    }

    .event p {
        font-size: 14px;
    }
}

/* Descripcion*/
.event p {
    text-transform: uppercase;
    font-weight: bold;
    display: grid;
    place-items: center;
    height: 100px;
}

.gold-text {
    color: #EBB74A; /* Color dorado */
    font-weight: bold; /* Texto en negritas (opcional) */
}

/* Texto intermedio*/
h2{
    color: white;
    font-family: "Funnel Display", serif;
    font-weight: 400;
    font-style: normal;
    background: linear-gradient(90deg, transparent, gold, transparent);
    background-size: 200% 100%;
    background-position: 0% center;
    -webkit-background-clip: text; 
    background-clip: text;
    color: transparent; 
    animation: swipe 10s linear infinite;
    
}

/* Animacion del texto*/
@keyframes swipe {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.event-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
  }


/* Solo flotar*/
.event{
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
    
    /* Se establece el ancho como el 50% del contenedor, menos 15px de margen */
    width: calc(50% - 15px);
}

/* Ajuste del diseño para mejorar la visualizacion en celulares */
@media (max-width: 600px) {
    .grid {
        display: grid; /* Grid para organizar los eventos */
        
        /* Se establecen 2 eventos por fila en pantallas menores a 600px */
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
        
        /* Se agrega un espacio de 10px entre los eventos */
        gap: 10px;
    }
    
    .event {
        /* En celulares, los eventos ocupan todo el ancho disponible en la celda de la cuadrícula */
        width: 100%;
    }
}

.event:hover {
    transform: translateY(-10px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
  }


/* Animación de la imagen */
#loader img {
    width: 100px;
    height: auto;
    animation: spin 5s linear infinite; 
    width: 300px; 
    height: auto; 
    margin-bottom: 50px;
}

/* Animación de texto */
#loading-text {
    margin-top: 10px;
    font-family: Arial, sans-serif;
    color: #333;
    animation: blink 1.5s infinite;
    font-size: 70px; 
    font-weight: bold; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Animación de rotación */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animación de parpadeo */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Para llevar a la noticia*/
.event {
    margin-bottom: 15px;
}

.event-link {
    text-decoration: none; 
    color: inherit; 
    display: block; 
    padding: 10px; 
    border: 2px solid #EBB74A; 
    border-radius: 10px; 
    background-color: #f9f9f9; 
    transition: all 0.3s ease; 
}

.event-link:hover {
    background-color: #EBB74A; 
    color: white; 
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.event-link h3 {
    font-family: "Funnel Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: black;
    margin-bottom: 5px;
    text-align: center;
    margin-top: 0;
    padding-top: 10px;
    text-transform: uppercase;
}

.event-link p {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    margin: 0; 
}