﻿/*========================================================================================================================================================*/
/*ALL SCREEN RESOLUTIONS (DEFAULT LAYOUT)*/
/*========================================================================================================================================================*/
.maincontainer {
    justify-content: start;
}

.aboutsection1 {
    height: 1150px;
    margin-top: 5px;
}

.aboutsection1container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.aboutsection1top {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-items: center;
    height: 500px;
}

    .aboutsection1top img {
        object-fit: cover;
        width: 100%;
        z-index: -1;
    }

.aboutsection1foreground {
    position: relative;
    top: -200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
    background-color: white;
    width: 1000px;
    border: solid;
    border-radius: 40px;
    padding: 40px 40px 60px 40px;
}

    .aboutsection1foreground h1 {
        font-size: 50px;
    }

.aboutsection1cards {
    position: relative;
    top: -280px;
    left: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 1000px;
}

.aboutsection1card {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

    .aboutsection1card img {
        width: 300px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .aboutsection1card h1 {
        font-size: 18px;
        font-weight: bold;
    }

    .aboutsection1card p {
        font-size: 14px;
        font-style: italic;
    }

/*========================================================================================================================================================*/
/*TABLET AND PORTRAIT*/
/*========================================================================================================================================================*/

@media only screen and (max-width: 800px) {
    .aboutsection1 {
        width: 100%;
        height: 110vh;
        margin-top: 5px;
    }

    .aboutsection1foreground {
        top: -300px;
        width: 97%;
        border-radius: 40px;
        padding: 20px;
    }

        .aboutsection1foreground h1 {
            font-size: 40px;
        }


    .aboutsection1cards {
        top: -300px;
        left: unset;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .aboutsection1card {
        align-items: center;
        padding: 5px;
        width:350px;
    }

        .aboutsection1card img {
            margin-top: 10px;
            margin-bottom: 10px;
        }

        .aboutsection1card p {
            font-size: 14px;
            font-style: italic;
            text-align: center;
        }
}


/*========================================================================================================================================================*/
/*PHONE AND PORTRAIT*/
/*========================================================================================================================================================*/

@media only screen and (max-width: 600px) {
    .aboutsection1 {
        width: 100%;
        height: 1750px;
        margin-top: 5px;
    }

    .aboutsection1foreground {
        top: -350px;
        width: 95%;
        border-radius: 40px;
        padding: 20px;
    }

        .aboutsection1foreground h1 {
            font-size: 30px;
        }

        .aboutsection1foreground p {
            font-size: 12px;
        }

    .aboutsection1cards {
        top: -360px;
        left: unset;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .aboutsection1card {
        align-items: center;
        padding: 5px;
    }

        .aboutsection1card img {
            margin-top: 10px;
            margin-bottom: 10px;
        }

        .aboutsection1card p {
            font-size: 14px;
            font-style: italic;
            text-align: center;
        }
}
