.sidebar-container {
    width: 9%; /* Ancho de la barra lateral */
    position: fixed; /* Fija la barra lateral */
    top: 0; /* Alinea la barra lateral en la parte superior */
    bottom: 0; /* Hace que la barra lateral ocupe todo el alto del contenedor */
    left: 0; /* Alinea la barra lateral a la izquierda */
    overflow-y: auto; /* Permite que la barra lateral tenga un desplazamiento vertical si es necesario */
    box-shadow: 10px 0 5px -5px rgba(0, 0, 0, 0.5);

}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.sidebar-responsive-button{
    display: none;
}

.logo-sidebar-menu {
    width: 80%;
    height: 15%;
}
.logo-sidebar-menu img {
    width: auto; /* Establece el ancho de la imagen como automático */
    height: auto; /* Establece la altura de la imagen como automático */
    max-width: 100%; /* Asegura que la imagen no sea más ancha que su contenedor */
    max-height: 100%; /* Asegura que la imagen no sea más alta que su contenedor */
}

.button-sidebar{    
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    color: #fff;
    border: none;
    background: none;
    margin: 5%;
    cursor: pointer;
}

.button-sidebar img{
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 50%;
}

.center-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 75%;
    justify-content: flex-start;
}

.bottom-button {
    margin-top: auto; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15%;
}

.button-sidebar.active {
    opacity: 1;
    font-weight: bold;
}

.button-sidebar.inactive {
    opacity: 0.5;
}


@media all and (max-width: 1000px) {
    #sidebar-responsive-button-menu {
        background-color: transparent;
        border: none;
    }
    #sidebar-responsive-button-menu img{
        width: 100%;
        height: 100%;
    }
    .sidebar-container {
        width: 100%;
        height: 5rem;
        position: absolute;
        box-shadow: none;
        background-image: linear-gradient(to bottom, #181c33, #1f2642, #253151, #2b3c61, #304872);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    #information, #indicators-history, #download-data{
        display: none;
    }


    .buttons-header-container a {
        color: #5771a2;
        margin-right: 1%;
        text-decoration: none;
        font-size: 0.6rem;
    }

    .sidebar-container.expanded {
        height: 100%;
        width: 80%;
        z-index: 1;
    }

    .sidebar-container.expanded .sidebar-menu {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .sidebar-container.expanded .center-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        height: 60%;
        justify-content: flex-start;
    }
    .sidebar-container.expanded .logo-sidebar-menu {
        width: 80%;
        height: 15%;
        justify-content: center;
        display: flex;
        align-items: center;
        margin-right: 0;
    }
    .sidebar-container.expanded .sidebar-responsive-button {
        display: flex;
        width: 10%;
        height: 10%;
    }

    .logo-sidebar-menu {
        width: 75%;
        height: 70%;
        justify-content: center;
        display: flex;
        align-items: center;
        margin-right: 10%;
    }

    .sidebar-responsive-button{
        display: flex;
        width: 10%;
        height: 100%;
    }

    .sidebar-responsive-button button{
        width: 50px;
        height: 50px;
    }

    .sidebar-menu {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        flex-direction: row;
    }

    .center-buttons{
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 75%;
        justify-content: flex-start;
    }

    .center-buttons button{
        width: 100%;
        height: 10%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        color: #fff;
        border: none;
        background: none;
        margin: 5%;
        cursor: pointer;
    }

    .sidebar-container.expanded .center-buttons button {
        height: 10%;
    }

    .sidebar-container.expanded .center-buttons a {
        height: 8%;
    }

    .button-sidebar img {
        max-width: 70%;
        max-height: 70%;
    }

    .button-sidebar {
        width: auto; 
        margin: 0.5rem;
        font-size: 1rem;
    }

}
