body {
    font-family: "Open Sans", sans-serif;
    margin: auto;
    height: 120vh;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.157), rgba(0, 0, 0, 0), rgb(255, 255, 255)),
        url(team-background.jpg);
    background-repeat: no-repeat;
    background-position: center top, center bottom;
    background-size: cover;

}

p {
    line-height: 1.4;
}

h2 {
    color: rgb(150, 182, 182);
    font-weight: bold;
}

.ProfileContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 500px;
    margin-top: 20px !important;
}

.ProfilePictures {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

.ProfileContainer:hover .ProfilePictures {
    display: block;
}

.TeamPic {
    text-align: center;
    margin: 0 10px;
    position: relative;
    width: 250px;
    height: 250px;
    transition: transform 0.5s ease-in-out;
}

.TeamBackground .TeamMember{
    max-width: 100%;
    max-height: 100%;
    display: inline-flex;
    position: absolute;
    top: 0;
    left: 0;
}

.TeamMember {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}


.TeamBackground {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.Details {
    position: relative;
    color: aliceblue;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px;
    display: none;
    width: 105%;
    height: 400px;
    z-index: 1;
    margin-top: -100%;
}

.DetailsBox {
    position: relative;
    bottom: 190px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px;
    display: none;
    width: 120%;
    background-color: rgba(0, 0, 0, 0.502);
    height: 320px;
    border-radius: 10%;
    z-index: -1;
}

.TeamPic:hover .TeamBackground {
    transform: scale(1.1);
}



.TeamPic:hover .TeamMember {
    transform: translate(-50%, -50%) scale(1);
}

.TeamPic:hover .Details {
    display: block;
}

.TeamPic:hover .DetailsBox {
    display: block;
}

.Buttons img {
    position: relative;
    width: 40px;
    height: auto;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));

}

.link-nbutton:hover img {
    opacity: 0.5;
}


.main-topic{
    margin-top: 120px;
    text-align: center;    

}