:root {
    /*colocar as variáveis aqui*/
    --bg-background-color: #082150;
    --bg-button-color: #0c3073;
    --bg-button-hover-color: #1a4697;
    --bg-selection-color: #048FB4;
    --bg-rosa: #d2a5e6;
    --bg-rosa-claro: #f1d3ff;
}

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=Candal&family=Quicksand:wght@300..700&display=swap');


/* Configurações gerais da página inteira */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* container com a nav e a main */

.sla{
    background-image: url("../img/doação/ondas-1-background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    border: solid #08215000;               /* por algum motivo, essa div so engloba o header se tiver border solid */
    
}

/* Inicio pagina */

main{
    margin: 0 auto;
    margin-top: 200px;      
    width: 80%;
    min-height: 80vh;  
    display: flex;  
    justify-content: space-around;
    gap: 64px;
    padding-bottom: 100px;
}

.aside-container1{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.aside-container2{
    display: flex;
    align-items: center;
    width: 70%;
    border-radius: 5%;
}

.container-doacao{
    display: flex;
    position: relative;
    width: 100%;
}

.doacao-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
    left: -20px;
    z-index: 1;
    border: solid var(--bg-button-hover-color);
    border-radius: 50%;
    background-color: var(--bg-selection-color);
    width: 72px;
    height: 72px;
}

.doacao-icon img{
    width: 46px;
    height: 46px;
    padding: 5%;
    color: white;
}

.doacao-content{
    display: flex;
    flex-direction: column;
    width: 30vw;
    padding: 24px;
    background-color: white;
    border-radius: 10px;    
}

.doacao-content h2{
    text-align: center;
    margin-bottom: 18px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 900;
}

.doacao-content p{
    text-indent: 3vw;
    text-align: justify;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.donation-button{
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.button{
    display: flex;
    flex-grow: 0;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-button-color);
    border-radius: 0.5em;
    width: 12em;
    height: 3em;
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), /* Sombra mais leve */
                0 8px 20px rgba(0, 0, 0, 0.1); /* Sombra ainda mais leve */
    transition: transform 0.2s, background-color 0.2s;
}

.button:hover{
    transform: scale(0.95);
    background-color: var(--bg-button-hover-color);
    text-decoration: none;
} 


/* CONTAINER DE FRASES/CITAÇÕES */
.container-carrossel {
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carrossel {
    overflow: hidden;
    position: relative;
    height: 12em;
    display: flex;
    justify-content: center;
}

.citacao {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    width: 100%;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    padding: 10px;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: var(--bg-selection-color); 
}

.citacao-pessoa{
    margin-top: 10px;
    font-size: 16px;
    color: var(--bg-rosa);
    font-style: italic;
}

.citacao.ativa {
    opacity: 1;
    transform: translateX(0);
    
}

.citacao.sair-esquerda {
    opacity: 0;
    transform: translateX(-100%); /* Movimento para a esquerda */
}

.citacao.sair-direita {
    opacity: 0;
    transform: translateX(100%); /* Movimento para a direita */
}

.controles {
    text-align: center;
    margin-top: 10px;
}

.controles button {
    background-color: var(--bg-rosa);
    color: white;
    border: none;
    padding: 10px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.controles button:hover {
    background-color: var(--bg-rosa-claro);
}

.container-carrossel .doacao-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: solid var(--bg-button-hover-color);
    border-radius: 50%;
    background-color: var(--bg-selection-color);
    width: 72px;
    height: 72px;
}

/* SEÇÃO DE PROJETOS */

.projetos{
    background-color: #ffffff;
    margin-top: 70px;
}

.projetos-texto{
    margin: 0 auto;
    width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.projetos-texto h1{
    font-size: 2.5em;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 600;
    
    color: var(--bg-rosa);
}

.projetos-texto p{
    
    text-align: center;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 50;
    font-size: 16px;
    font-style: normal;
    color: #37445f;

}


/* Carrossel */


.projetos-carrossel{
    margin-top: 56px;
    margin-bottom: 56px;
}

.slider {
    position: absolute;
    width: 100%;
    max-height: 500px;
}

#prev-button,
#next-button {
    width: 30px;
    height: 30px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    align-items: center;
}

#prev-button img,
#next-button img {
    width: 100%;
    height: 100%;
}

.container-slider {
    display: flex;  
    /* padding-left: 5%; */

}

.slider {
    width: 45%;
    /* max-width: 100vw; */
    height: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: end;
}

.slider .list { 
    position: absolute;
    width: max-content;
    height: auto;
    display: flex;
    transition: 1s;
}

.item{
    width: 45vw;          /* colocar o msm numero do width do slider */
}

.slider .item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.slider .buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.slider .buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff5;
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
}

.slider .dots {
    position: absolute;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.slider .dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
}

.slider .dots li.active {
    width: 30px;
}


/* botao embaixo do carrossel */

.projetos-button{
    display: flex;
    justify-content: center;
    margin-bottom: 72px;
}


/* Telas menores */
@media (max-width: 576px) {
    .projetos-texto h1{
        font-size: 1.5em;
    }
    
    .projetos-texto p{
        font-size: 15px;
    }
}

@media (max-width: 768px){
    main{
        flex-direction: column-reverse;
        align-items: center;
    }

    .container-doacao{
        justify-content: center;
    }

    .doacao-icon{
        left: 10px;
        width: 56px;
        height: 56px;
    }

    .doacao-icon img{
        width: 36px;
        height: 36px;
    }

    .aside-container2{
        width: 100%;
    }

    .carrossel{
        height: 15em;
    }


    .citacao{
        font-size: 1.2em;
    }

    .slider{
        width: 100%;
    }
 
    .projetos-texto p{
        font-size: 18px;
    }

    .doacao-content{
        width: 75%;
    }
}

@media (max-width: 1024px){
    .slider{
        width: 80%;
        max-height: 400px;
        height: 400px;
    }

    .item{
        width: 80vw;
    }

    .item img{
        height: 400px;
    }

    .projetos-texto p{
        font-size: 18px;
    }
}
