body{
    margin: 0;
    font-family:'Montserrat';
    min-height: 100vh;
    overflow-x: hidden;
}

.team_page {
    width: 100vw;   
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* Popup Modal */

.modal.active{
    transform: translate(-50%, -50%) scale(1);
}

.modal{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: ease-in-out 200ms;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 10;
    background-color: white;
    width: 500px;
    max-width: 80%;
    z-index: 5001;
}

.header{
    display: flex;
    padding: 15px 15px;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 2px solid black;
    font-weight: bold;
}

.body{
    padding: 5%;
    text-align: center;
    line-height: 23px;

}

#overlay{
    background: rgba(0,0,0,0.8);
    transition: ease-in-out 200ms;
    opacity: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5000;
}

#overlay.active{
    pointer-events: all;
    opacity: 1;
}
#closeButton{
    border: none;
    background: transparent;
    transform: scale(2);
    
}

/* Team Styles */

.team-grid{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10%;
    width: 100%;
    justify-content: space-evenly;
    flex-grow: 1;
}

.pfp{
    width: 250px;
    height: 250px;
    border-radius: 100%;
    border: solid 10px var(--light-purple);
    object-fit: cover; /* crops the image instead of compressing it */
}

.person{
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 5%;
    text-align: center;
    width: 20%;
}

.name {
    margin-top: 20px;
}

.role{
    padding-top: 10px;
    padding-bottom: 5px;
}

.learn-more{
    width: 70%;
    transition: ease-in-out 200ms;
    letter-spacing: 3px;
    font-size: 14px !important;
    margin-top: 20px;
    padding: 10px 20px 10px 20px !important;
}


@media screen and (max-width: 700px){
    .team-grid {
        flex-direction: column;
    }

    .name{
        font-size: 25px;
    }
    .person {
        margin: 40px 0px 50px 0px;
    }

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


@media screen and (max-width: 600px){
    .name{
        font-size: 25px;
    }
}

@media screen and (max-width: 500px){
    .pfp {
        width: 180px;
        height: 180px;
        border: solid 5px var(--light-purple);
    }
}

@media screen and (max-width: 300px) {
    .person {
        margin: 20px 0px 30px 0px;
    }

}