body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    text-align: center;
}


.containerAll {
    display: flex;
    width: 100%;
    height: 100vh;
    flex-direction: row;
}

/*estyles barra lateral*/
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    /* Hacer que ocupe todo el alto de la ventana */
}

/* Estilos del sidebar */
.sidebar {
    width: 20%;
    background-color: var(--color-principal);
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;

}

.layout__header {
    position: fixed;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 4rem;
    text-align: center;
    background-color: black;
    color: #fff;
    padding: 0.12rem;
    align-items: center;
    z-index: 2;
    box-shadow: 4px 0px 5px rgba(0, 0, 0, 0.5);
}

#user-name-img {
    width: 2.5rem;
    height: 2.5rem;
}

.sidebar-usuario {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    height: 4.9rem;
    line-height: 3.1;
    font-size: 1.5rem;
    color: white;
    align-items: center;

}

.header-left {
    position: fixed;
    display: flex;
    font-weight: 20;
    gap: 1rem;
    left: 26%;
    line-height: 4
}

.title-header {
    position: fixed;
    display: flex;
    font-size: 1rem;
    line-height: 1.7;
    left: 44%;
}

.size_title {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.no-style {
    all: unset;
    /* Elimina todos los estilos heredados */
    display: inline-block;
    /* Para que mantenga su tamaño */
    padding: 0;
    cursor: pointer;
    font-size: 2rem;
    overflow: hidden;
    height: 4.2rem;
    margin-right: 0.5rem;

}


.controller {
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: 0.2s ease;
}

#user-name-display {
    font-size: 16px;
    font-weight: bold;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;

}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.contenido li:hover {
    background-color: var(--color-border-reviews);
}

.sidebar a {
    text-decoration: none;
    color: var(--color-title);
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.sidebar a:hover {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    background-color: var(--color-background);
}

.sidebar a.active {
    background-color: var(--color-border-reviews);
    color: var(--color-secondary);
}

.sidebar a:hover,
.sidebar a.active {
    color: var(--color-secondary);
}

.content {
    margin-left: 20%;
    width: 80%;
    margin-top: 80px;
    overflow-y: auto;
}



.books-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 100%;
    gap: 50px;
    margin: 20px 0;


    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

.book {

    width: 300px;
    height: 300px;
    background-color: rgb(240, 236, 236);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.4s ease;
    margin: 5px;

}

.book img {

    width: 100%;
    height: 100%;

    border-radius: 8px;
    transition: transform 0.3s ease;
}

.book-study {
    background-color: white;

}


.book:hover img {
    transform: scale(1.2);
}

.book-content {
    margin-top: 40px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.unit {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    margin-top: 20px;
}

.unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    cursor: pointer;
    background: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
}


.unit-content {

    padding-top: 15px;
}

.unit-header .toggle-icon {
    transition: transform 0.3s;
    font-size: 18px;
    color: white;
}




h2 {
    color: #222;
}
























@media (max-width: 847px) {
    .book {

        width: 250px;
        height: 250px;
    }
}

@media (max-width: 722px) {

    .sidebar,
    .header-left {
        display: none;

    }
    

    .content {
        margin-left: 0;
        width: 100%;

    }

    .books-grid {
        padding: 0;
        margin: 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .layout__header {
        margin-left: 0;
        width: 100%;
        font-size: 2rem;
    }

    .header-left {
        left: 0;
        margin-left: 10px;


    }

    .title-header {
        width: 100%;
        left: 30%;
        margin-right: 0;
        font-size: 1rem;
    }

    .sidebar-usuario {
        gap: 0.5rem;
    }

}
@media (max-width: 400px) {

  
    .title-header h1{
        font-size:1.5rem
    } 
}