/* Configurações */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Scrolls Reveals */
.card {
    visibility: hidden;
}

:root {
    --maincolor1: #e3a72f;
    --maincolor2: #bb8633;
    --maincolor3: #ddd98c;
    --secondcolor1: #245091;
    --secondcolor2: #6494de;
    --darkcolor: #222222;
    --whitecolor: #fcfcfc;

    --montserrat: 'Montserrat', sans-serif;
    --opensans: 'Open Sans', sans-serif;
}

#background {
    width: 100vw;
    min-height: 90vh;
    height: auto;
}

#whatsapp-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
}

#whatsapp-fixed a i {
    font-size: 3.2rem;
    color: #25D366;
    transition: 200ms ease-in-out;
}

#whatsapp-fixed a i:hover {
    color:#128C7E;
}

/* MAIN */

main {
    width: 100%;
    min-height: 100vh;
    margin-top: 10vh;
    background-color: #f0f0f0;
}

.titles h1{
    font-family: var(--montserrat);
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--darkcolor);
    margin: 0;
    padding-top: 3rem;
    padding-bottom: 1rem;
    text-align: center;
}

.projetos-cards {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 3rem;
}

.card {
    width: 25%;
    margin: 25px;
    padding: 20px;
    background-color: #fcfcfc;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: transform ease 0.2s, box-shadow ease 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;

    animation: card-animation 1s;
}

@keyframes card-animation {
    from {
        transform: translateY(-20px);
    }
    to {
        transform: translateY(0);
    }
}

.card:hover {
    box-shadow: 0px 0px 10px rgba(227, 167, 47, 0.2);
}

.card h2 {
    color: var(--darkcolor);
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.7rem;
    text-align: center;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.card button {
    width: 100px;
    height: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 13pt;
    background-color: var(--maincolor1);
    border: none;
    transition: 0.3s;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.card button:hover {
    background: transparent;
    border: 1px solid var(--maincolor1);
    color: var(--maincolor1);
}

.card a {
    -webkit-tap-highlight-color: transparent;
}

.card button a {
    color: var(--darkcolor);
    text-decoration: none;
}

/* MOBILE DEVICES */

@media only screen and (max-width: 1280px) {
    .titles h1 {
        font-size: 2.2rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}

@media only screen and (max-width: 980px) {
    .card {
        width: 40%;
    }

    .card h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 836px) {
    main {
        margin-top: 8vh;
    }
}

@media only screen and (max-width: 768px) {
    .titles {
        display: flex;
        justify-content: center;
    }
    
    .titles h1 {
        width: 80%;
    }

    .card button {
        width: 100px;
        height: 45px;
        font-size: 13pt;
        border-radius: 5px;
    }
}

@media only screen and (max-width: 600px) {
    .card button {
        width: 100px;
        height: 40px;
        font-size: 11pt;
        border-radius: 5px;
    }
}   

@media only screen and (max-width: 500px) {

    .projetos-title {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .projetos-title h4 {
        font-size: 28pt;
        width: 80%;
    }

    .projetos-title h3 {
        font-size: 18pt;
        width: 100%;
    }

    .card {
        width: 100%;
    }

}

@media only screen and (max-width: 416px) {
    .titles h1 {
        font-size: 2rem;
    } 
}

@media only screen and (max-width: 340px) {
    .titles h1 {
        font-size: 1.8rem;
    } 
}
