/* Importar fuente inspirada en Mario Wonder */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

body {
    background-color: #74B9FF;
    font-family: 'Nunito Sans', sans-serif;
    color: #ffffff;
    text-align: center;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #120907, #122643); 
    background-size: cover; 
    min-height: 100%; 
    font-family: Arial, sans-serif; 
}

@media (max-width: 768px) {
    body {
        background-size: cover; 
    }

    #loadingGif {
        width: 120px;
        max-width: 80%;
    }

    #progressBarContainer {
        width: 80%;
        height: 8px;
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover; /* Asegura que el fondo no se repita */
    }

    #loadingGif {
        width: 100px;
        max-width: 80%;
    }

    #progressBarContainer {
        width: 80%;
        max-width: 280px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    body {
        background-size: cover; /* Asegura que el fondo no se repita */
    }

    #loadingGif {
        width: 80px;
        max-width: 70%;
    }

    #progressBarContainer {
        width: 70%;
        height: 6px;
    }
}

#loadingContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    padding: 20px;
    box-sizing: border-box; 
    text-align: center;
}


#loadingGif {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    max-width: 80%; 
}


#progressBarContainer {
    width: 90%;
    max-width: 350px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}


#progressBar {
    width: 0%;
    height: 100%;
    background-color: #ffcc00;
    transition: width 0.3s ease;
}


@media (max-width: 768px) {
    #loadingGif {
        width: 120px;
        max-width: 80%; 
    }

    #progressBarContainer {
        width: 80%;
        height: 8px;
    }
}

@media (max-width: 480px) {
    #loadingGif {
        width: 100px;
        max-width: 80%; /* Evita que el GIF se desborde */
    }

    #progressBarContainer {
        width: 80%;
        max-width: 280px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    #loadingGif {
        width: 80px;
        max-width: 70%; /* Ajusta el tamaño para pantallas muy pequeñas */
    }

    #progressBarContainer {
        width: 70%;
        height: 6px;
    }
}


.logo{
    width: 140px;
    height: 70px;
}

/* -------- NAVBAR -------- */

.navbar {
    background: #A71B21 !important;
    padding: 15px 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid #FFD700;
}

.navbar-toggler-icon {
    background-color: #FFD700; 
    border-radius: 10%; 
    width: 30px; 
    height: 30px; 
}

.navbar-toggler.collapsed .navbar-toggler-icon {
    background-color:#FFD700; 
}

/* Logo */
.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.1);
    color: #FFD700;
}

/* Estilos del menú */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Efecto en hover */
.navbar-nav .nav-link:hover {
    color: #FFD700;
    text-shadow: 0px 0px 10px rgba(255, 215, 0, 0.8);
    background-color: rgba(255, 215, 0, 0.2);
}

/* Estilo del botón de búsqueda */
.btn-outline-success {
    color: #fff !important;
    border-color: #FFD700 !important;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: #FFD700 !important;
    color: #000 !important;
    border-color: #FFD700 !important;
}

/* Dropdown */
.dropdown-menu {
    background-color: #E63946;
    border: none;
}

.dropdown-item {
    color: #fff !important;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #FFD700 !important;
    color: #000 !important;
}

/* Navbar responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #E63946;
        padding: 10px;
        border-radius: 5px;
    }

    .navbar-nav .nav-link {
        text-align: center;
        display: block;
    }
}

/* Estilo general para el footer */
.footer {
    border-top: 5px solid #FFD700;
    background-color: #023C7C;
    color: #ffffff;
    padding: 30px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer .footer-social {
    display: flex;
    gap: 15px;
}

.footer .footer-social a {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
}

.footer .footer-form input {
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.footer .footer-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer .footer-form button:hover {
    background-color: #0056b3;
}

.footer .footer-links {
    display: flex;
    gap: 30px;
}

.footer .footer-links h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
}

.footer .footer-links li {
    margin-bottom: 5px;
}

.footer .footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer .footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}


/* -------- BOTONES -------- */
.btn-outline-success {
    background-color: #FFD700;
    border: 3px solid #D35400;
    color: #000;
    font-weight: bold;
    border-radius: 10px;
    transition: background 0.3s, color 0.3s;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-outline-success:hover {
    background-color: #D35400;
    color: #fff;
}

.mario{
    width: 400px;
    height: 350px;
}

/* -------- FOOTER -------- */

.footer {
    background: #023C7C;
    color: #fff;
    padding: 40px 0 20px; 
    font-size: 1rem;
    width: 100%;
    margin-top: auto; 
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}


.container {
    flex: 1;
}


.footer .container {
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 20px; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    flex-wrap: wrap;
    gap: 30px; 
    margin-bottom: 30px; 
}


.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #FFD700;
    color: #000;
    border-radius: 50%;
    font-size: 20px;
    transition: background 0.3s, transform 0.3s;
}

.footer-social a:hover {
    background-color: #D35400;
    color: #fff;
    transform: scale(1.1);
}


.footer-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
}

.footer-form input {
    padding: 10px;
    border-radius: 10px;
    border: none;
    flex: 1; 
    min-width: 200px; 
}

.footer-form button {
    background-color: #FFD700;
    border: none;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-form button:hover {
    background-color: #D35400;
    color: #fff;
}

/* Links del footer */
.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Asegura que los links sean responsive */
}

.footer-links div {
    min-width: 150px;
}

.footer-links h5 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    margin-bottom: 8px; /* Espacio entre links */
}

.footer-links a:hover {
    color: #FFD700;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 20px; /* Espacio antes del copyright */
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-form {
        width: 100%;
    }

    .footer-form input {
        width: 100%;
    }

    .footer-social {
        justify-content: center;
    }
}


/* Estilos para la galería de videos */
.video-gallery {
    padding: 50px 0;
    text-align: center;
}

h2 {
    font-family: 'Bungee', cursive;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
}
/* Contenedor de la galería de videos */
.video-gallery {
    padding: 50px 0;
    text-align: center;
    background: linear-gradient(to right, #120907, #122643); 
}



/* Contenedor de los videos */
.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Tarjeta del video */
.video-card {
    width: 100%;
    max-width: 660px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Paginación */
.pagination-container {
    margin-top: 30px;
}

.pagination {
    justify-content: center;
    list-style-type: none;
    padding-left: 0;
    display: flex;
    gap: 10px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    color: #023C7C;
    background-color: #FFD700;
    border: 1px solid #FFD700; 
    padding: 8px 16px; 
    border-radius: 6px;
    font-weight: normal;
    transition: background-color 0.2s, transform 0.2s; 
    text-decoration: none; 
}

.page-item.active .page-link {
    background-color: #023C7C;
    color: white;
    border-color: #023C7C; 
}

.page-link:hover {
    background-color: #D35400;
    transform: scale(1.05);
}

.page-item.disabled .page-link {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* Estilos Responsivos */

/* Para pantallas grandes */
@media (max-width: 1200px) {
    .video-card {
        max-width: 500px;
    }
}

/* Para pantallas medianas */
@media (max-width: 992px) {
    .video-card {
        max-width: 400px;
    }
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .video-card {
        max-width: 100%;
        margin: 0 10px;
    }

    .pagination {
        flex-direction: column;
        align-items: center;
    }

    .page-item {
        margin: 5px 0;
    }
}

/* Para teléfonos muy pequeños */
@media (max-width: 576px) {
    .video-gallery {
        padding: 20px 0;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .video-card {
        max-width: 100%;
    }

    .pagination {
        flex-direction: column;
        align-items: center;
    }
}
