@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root{
    --padding-container: 100px 0;
    --color-title: #fff;
}

body{    
    background-color: #181818;
    font-family: 'Poppins', sans-serif;
}
body{    
    background-color: #181818;
    font-family: 'Poppins', sans-serif;
}

body::-webkit-scrollbar{
    background-color: #0000008c;

}
body::-webkit-scrollbar-button{
    background-color: #444444;
}
body::-webkit-scrollbar-thumb{
    background-color: rgb(130, 37, 0);
    border-radius: 5px;
}

.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero{
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color:#fff;
}

.hero::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(/CSS/calimantes.jpg);
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
}



 /* Hero container */

.hero_container{
    top: 6rem;
    height: 40rem;
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: lem;
    padding-bottom: 80px;
    text-align: center;   
}

.hero_title{
    font-size: 3rem;
    text-shadow: 10px 10px 20px rgba(63, 43, 36, 0.986);
    padding-top: 100px;
}

.hero_paragraph{
    margin-top: 25px;
    margin-bottom: 25px;
}

.cta{
    display: inline-block;
    background-color: #f97020ec;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 32px;
    transition: .3s;
}

.cta:hover {
    background: rgba(255, 72, 0, 0.76);
}


/* Habitantes */

#bio{
    padding-top: 0;
}

.hero_habitantes{
    width: 100%;
    height: 90vh;
    min-height: 200px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color:#fff;
}

.hero_habitantes::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(/Images/Algamord\ de\ frente.jpg);
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
}



/* Poemitas */

.poemitas_main{
    padding-top: 40px;
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}

.poemitas_container{
    display: grid;
    gap: 2em;
    padding-top: 10px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.poemitas_icons{
    color: #fff;
    display: grid;
    gap: 1em;
    justify-self: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.poemitas_padding{
    padding: 0;
    transition: padding .3s;
    border: 1px solid rgba(250, 6, 67, 0.555);
    border-radius: 6px;
}

.poemitas_padding--add{
    padding-bottom: 30px;
}

.poemitas_answer{
    padding: 0 30px 0;
    overflow: hidden;
}

.poemitas_arrow{
    border-radius: 50%;
    background-color: var(--color-title);
    width: 25px;
    height: 25px;
    display: flex;
    justify-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition: transform .3s;
}

.poemitas_arrow--rotate{
    transform: rotate(180deg);
}


.poemitas_title{
    text-align: center;
    color: #fff;
    display: flex;
    padding: 30px 0 30px;
    cursor: pointer;
    justify-content:center;
    font-size: 20px;
}

.poemitas_paragraph{
    color: #fff;
    margin-bottom: 40px;
}

.poemitas_show{
    color: #fff;
    height: 0;
    transition: .3s;
}

.poemitas_cursiva{
    text-align: right;
    color: #fff;
    height: 0;
    transition: .3s;
}

.poemitas_img{
    display: block;
    
}

.poemitas_derecha{
    text-align: right;
    font-style: italic;
    color: #fff;
    height: 0;
    transition: .3s;
}



/* Footer */

.footer{
    background-color: rgba(226, 5, 5, 0.541);
}




/* Media queries */

@media (max-width:800px){

    .hero_habitantes{
        width: 100%;
        height: 50vh;
        min-height: 200px;
        max-height: 500px;
    }
    .poemitas_main{
        gap: 2em;
    }

    .hero_title{
        font-size: 2.5rem;
    }

    .about_main{
        gap: 2em;
    }

    .knowledge_container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }
    
    .knowledge_picture{
        grid-row: 1/2;
        justify-self: center;
    }

    .libros_container{
        grid-template-columns: 30px 1fr 30px;

    }

    .libros_body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items: center;
    }

    .libros_img{
        width: 200px;
        height: 200px;
    }
}

@media (max-width:600px){
    
    .hero_paragraph{
        font-size: 1rem;
    }

    .subtitle{
        font: 1.8rem;
    }

    .libros{
        --padding-container: 60px 0;
    }

    .libros_container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .libros_arrow{
        width: 100%;
    }

    .libros_ambiente{
        margin-top: 15px;        
    }
    
    .question_title{
        font-size: 1rem;
    }
}