@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400;500;600&family=Montserrat:wght@300;400;500&family=Nunito:wght@300&family=The+Nautigal&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat";
    /* overflow-x: hidden; */
}

html {
    font-size: 16px;
}

body {
    font-size: 14px;
    background-color: #FCF8E8;
    width:-1000px;
}

header {
    width: 100%;
    height: 100vh;
}

.page-1 {
    display: flex;
    max-width: 1000px;
    justify-content: space-between;
    align-items: center;
    padding: 0 4em;
    margin: 0 auto;
}

.about {
    margin: 0 auto;
    text-align: center;
    width: 60%;
    font-size: 2rem;
    background-color: #D4F6CC;
    border-radius: 10px;
}

.heading {
    font-size: 3rem;
    margin: 1em;
}

.para {
    color: #1F4690;
    font-size: 1.2rem;
    line-height: 1.7rem;
    letter-spacing: 2px;
}

.page-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.team-section {
    width: 50%;
    margin: 0 3.5em;
    /* border: 2px solid red; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-mates {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 2fr 3fr 4fr 5fr;

}

.team-mates-item {
    padding: 2em;
    font-size: 1.2rem;
    color: #1F4690;
    font-family: 'Baloo Bhaijaan 2', cursive;
}

.team-mates-item:hover {
    transition: 0.4s;
    transform: scale(1.2);
}

.team-mates-item img {
    transition: 0.4s;
}

.team-mates-item img:hover {
    transition: 0.4s;
    transform: rotate(360deg);
}

@media (max-width:660px) {
    * {
        overflow-x: hidden;
    }

    html {
        font-size: 10px;
    }

    .page-1 {
        flex-direction: column;
        max-width: 400px;
    }

    .page-1 .about {
        margin-top: 1em;
    }

    .page-2 {
        flex-direction: column-reverse;
        justify-content: space-between;
        height: 200vh;
    }

    .page-2 .members-gif img {
        margin: 0;
        height: fit-content;
        overflow: hidden;
        /* border: 2px solid steelblue; */
    }


    .team-section h1 {
        margin: 3em auto;
        text-align: center;
    }

    .team-mates {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 1em auto;
        overflow: hidden;
    }
}