body, html {
    overflow-y: auto; /* This will ensure that if content overflows it will be scrollable */
}


body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    height: auto; 
    background-image: url('https://images.pexels.com/photos/371900/pexels-photo-371900.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}


#container {
    max-width: 100%;
    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 40px;
    margin-left: auto;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}




h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

#chart-container {
    width: 100%;
    height: 600px;

}

#chart-container1 {
    height: 450px;
    /* Ajusta este valor según cuánto quieras aumentar la altura */
}


#controls-container, #controls-container2, #controls-container3, #controls-container4 {
    display: flex;
    gap: 20px;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    margin-top: 12px;
}

select,
input[type="checkbox"] {
    margin-top: 10px;
    padding: 8px;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    color: #333;
}

#local-time-label {
    font-size: 18px;
    font-weight: bold;
}

#charts-wrapper {
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 0 auto;
}

.chart-main {
    flex: 7.5;
    /* 70% del espacio */
    margin-right: 10px;
    min-height: 300px;
    /* ajusta este valor según tus necesidades */
}

.chart-secondary {
    display: flex;
    flex: 1;
    margin: 0 10px;
}

.chart-container {
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    width: 100%;
    /* Asegúrate de que los gráficos tomen todo el ancho de su contenedor */
}

.chart-secondary .chart-container {
    width: 50%;
    /* Los gráficos secundarios toman la mitad del ancho de su contenedor */
    padding: 10px;
    box-sizing: border-box;
    /* Para que el padding no aumente el tamaño total de los gráficos */
}


/* Tus otros estilos... */

/* Y aquí es donde agregas una Media Query para pantallas pequeñas */
@media (max-width: 768px) {
    #charts-wrapper {
        flex-direction: column;
        /* Cambiar la dirección de la flexbox a column */
    }

    .chart-main-wrapper {
        flex-direction: column;
        flex: none;
        /* Cancela el valor de flex establecido anteriormente */
        width: 100%;
        /* Asegura que cada contenedor de gráfico tenga el 100% del ancho disponible */
    }

    .chart-secondary {
        flex: none;
        /* Cancela el valor de flex establecido anteriormente */
        width: 100%;
        /* Asegura que cada contenedor de gráfico tenga el 100% del ancho disponible */
    }

    .chart-container {
        width: 100%;
        /* Hace que los gráficos tomen todo el ancho disponible */
        height: auto;
        /* Establece la altura de todos los gráficos a auto */
        margin: 10px 0;
        /* Asegurándose de que el margen solo se aplica arriba y abajo */
    }

    .chart-secondary {
        flex-direction: column;
        /* Los gráficos secundarios también se colocan en una columna */
    }

    .chart-secondary .chart-container {
        width: 100%;
        /* Los gráficos secundarios toman todo el ancho de su contenedor */
        height: auto;
        /* Establece la altura a auto */
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.8);
}

#loader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-indicator {
    flex: 2.5;
    /* 30% del espacio */
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    box-sizing: border-box;
    max-height: 600px;
    max-height: none; 

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Sombra para el texto */
    /*font-size: 24px; /* Aumenta el tamaño del texto */

}

.chart-indicator h2,
.chart-indicator p {
    margin-top: 10px;
    /* Espaciado superior */
    margin-bottom: 10px;
    /* Espaciado inferior */
}

.chart-main-wrapper {
    display: flex;
    width: 100%;
}

.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #33267C;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-overlay svg {
    width: 100px;
    height: 100px;
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #33267C;
}

#preloader-svg {
    opacity: 0;
}

.Card {
    position: relative;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.452);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 38, 252, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1), 0 0 30px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, filter 0.3s;
}

.Card:hover {
    /*transform: scale(1.01);*/
    filter: brightness(1.01);
}


.Circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 200px;
    background-color: #33267C;
}