body {
    background-color: purple;
    text-align: center;
}

p {
    color: blanchedalmond;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 70px;
}

.navbar .form-control {
    width: 400px;
    border-radius: 20px;
    
}

.navbar .btn-outline-primary {
    border-radius: 50%;
    padding: 5px 10px;
}

.navbar .btn-outline-primary:hover {
    background-color: #ff5722;
    color: white;
    border-color: #ff5722;
}


/* Contenedor general */
.container {
    max-width: 1200px;
}

/* Estilo de las tarjetas de noticias */
.card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    text-align: center;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.card-text {
    font-size: 30px;

    color: black;
}

/* Botón */
.btn-primary {
    background-color: #ff5722;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #e64a19;
}

/* Estilos para el contenedor de carga */
#loadingContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo semi-transparente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    padding: 20px;
    text-align: center;
}
/* Ajusta el tamaño del GIF de carga */
#loadingGif {
    width: 150px;
    max-width: 80%; /* Evita que sea más grande que la pantalla */
    height: auto;
    margin-bottom: 20px;
}

/* Contenedor de la barra de progreso */
#progressBarContainer {
    width: 90%;
    max-width: 350px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}

/* Barra de progreso */
#progressBar {
    width: 0%;
    height: 100%;
    background-color: #ffcc00;
    transition: width 0.3s ease;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    #loadingGif {
        width: 120px;
    }

    #progressBarContainer {
        width: 85%;
    }
}

@media (max-width: 480px) {
    #loadingGif {
        width: 100px;
    }

    #progressBarContainer {
        width: 80%;
        height: 8px;
    }
}

@media (max-width: 360px) {
    #loadingGif {
        width: 80px;
    }

    #progressBarContainer {
        width: 75%;
        height: 6px;
    }
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 20px;
    font-size: 14px;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

