body {
  background-image: url("https://domsinc.no/Pictures/image1.png");
  background-repeat: no-repeat, repeat;
  background-size: cover;
  position: cover;
}

.drivers { 
    color: pink;
    text-align: center;
    font-family: 'Imperial Script', cursive;
    font-size: 20px;
    letter-spacing: 2px;
}

.team1 { 
    display: flex;
    align-items: center;
    justify-content: center;
}

.team2 { 
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-team1 {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.my-team2 {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.team .my-team{ 
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.team .my-team .profile-pic{
    display: flex;
    flex-direction: row;
    width: 25%;
}

.my-team {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.profile-pic {
    width: 512px;
    height: 512px;
    padding: 25px;
    background: transparent;
    position: relative;
    display: flex;
    align-items: flex-end;
    transition: .6s ease-out;
    padding: 1;
    object-fit: scale-down;
}

.profile-pic:hover { 
    transform: translateY(15px);
}
.profile-pic:hover:before { 
    opacity: 1;
}

.profile-pic:hover .detail-text { 
    opacity: 1;
    transform: translateY(0);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    scale: 100%;
}

.profile-pic:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(233, 4, 92), transparent);
    z-index: 2;
    opacity: 0;
    transition: 0.5s;
    scale: 100%;
}

.profile-pic .detail-text { 
    position: relative;
    z-index: 3;
    color: white;
    opacity: 0;
    transform: translateY(60px);
    transition: 0.5s;    
}

.detail-text h1 { 
    margin: 0;
    font-size: 40px;
}

.detail-text .tittleprofile { 
    letter-spacing: 2px;
    font-size: 19px;
    margin-top: 8px;
}

.detail-text p { 
    letter-spacing: 2px;
    font-size: 15px;
    margin-top: 8px;
}

.detail-text a { 
    width: 30px;
    height: 30px;
    display: inline-block;
    border: 1px solid #fff;
    border-radius: 50%;
    text-decoration: none;
}

.detail-text a i { 
    color: #fff;
    padding: 6px;
}

.meet {
    font-family: 'Imperial Script', cursive;
    font-size: 50px;
    letter-spacing: 3px;
}

@media only screen and (max-width:769px){
.team .my-team{
    flex-direction: column;
    border-radius: 20px;
    size-adjust: 500px;
} 
.team .my-team .profile-pic{
    width: 100%;
    padding: 20px;
    border-radius: 20px;
}

.team2 .my-team2{
    flex-direction: column;
    border-radius: 20px;
    size-adjust: 500px;
} 
.team2 .my-team2 .profile-pic{
    width: 100%;
    padding: 20px;
    border-radius: 20px;
}

}

@media only screen and (max-width:642px){
.team .heading{
    width: 100%;
}

.team .heading h3{
    font-size: 1.5em;
}
}