.content{
    padding-top: 200px;
    min-height: 100vh;
}
.title-and-text{
    margin: 0 auto;
    padding-top: 200px;
    width: 90vw;
    max-width: 1200px;
}
.title-and-text h1{
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: normal;
}
.title-and-text h1 span{
    color: var(--main-color);
    font-weight: bold;
    font-family: "Intro";
    font-size: 4rem;
    position: relative;
}
.title-and-text h1 span::after{
    content: "";
    width: 150%;
    height: 3px;
    background: var(--main-dark);
    position: absolute;
    left: -25%;
    bottom: -10px;
    z-index: 2;
}
.title-and-text p{
    max-width: 700px;
    display: block;
    margin: 0 auto;
    margin-top: 60px;
    text-align: justify;
}
.title-and-text p:last-of-type{
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}
.team{
    max-width: 900px;
    width: 90vw;
    margin: 0 auto;
    margin-top: 60px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.teamcard {
    position: relative;
    width: 100%;
    grid-column: span 2;
    overflow: hidden;
    border-radius: 5px;
    transition: .3s ease;
  }
.filler{
    grid-column: span 1;
}
.teamcard:hover{
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.5);
}
  .team-image {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .2s ease;
    backface-visibility: hidden;
  }
  
  .card {
    transition: .3s ease;
    opacity: 1;
    position: absolute;
    top: calc(100% - 50px);
    left: 50%;
    transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    background-color: transparent;
    display: block;
    width: 100%;
    height: 101%;
    box-sizing: border-box;
  }
    .teamcard:hover .card {
    opacity: 1;
    transform: translate(-50%, calc(-100% + 49px));
    background-color: var(--main-light);
  }
  .teamcard:hover .team-image{
      opacity: 0;
  }
  .teamcard:hover .text{
      top: 50%;
      transform: translate(-50%, -50%);
      color: var(--main-dark);
  }
  .teamcard:hover a{
      opacity: 1;
      color: var(--main-color);
  }
  .text h2{
      color: unset;
  }
  .text{
    transition: .3s ease;
    color: white;
    font-size: 16px;
    padding: 16px 32px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0%);
  }
  .text h2{
      font-size: 1rem;
      padding-bottom: 10px;
      text-transform: uppercase;
      white-space: nowrap;
  }
  .text a{
      opacity: 0;
      transition: .3s ease;
  }

  @media only screen and (max-width: 1000px) {
    .team{
        grid-template-columns: repeat(4, 1fr);
    }
  }
    
  @media only screen and (max-width: 768px) {
.title-and-text h1{
    font-size: 2rem;
}
.card{
    top: calc(100% - 80px);
}
.title-and-text h1 span{
    font-size: 3rem;
}
.title-and-text h1 span::after{
    width: 100%;
    left: 0%;
}
.text h2{
    padding-bottom: 0;
}
.text a{
    opacity: 1;
    font-weight: normal;
    color: var(--main-color);
}
}
@media screen and (max-width: 450px){
    .team{
        grid-template-columns: auto;
    }
    
}