/* START OF TEAMS PAGE */

#teams_content_grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    width: 80%;
    margin-bottom: 100px;
}

#teams_content_grid div {
    width: 100%;
    margin: 1%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 25px;
}

#teams_content_grid div img {
    border: 3px solid black;
    filter: grayscale(100%);
}

#teams_content_grid div:hover img {
    filter: none !important;
}

#teams_content_grid #design-team {
    content: url(../images/team/design-glitched.jpg);
    animation: team-glitch-design 5s linear infinite;
}

@keyframes team-glitch-design {
    0% {
        content: url(../images/team/design.jpg);
    filter: grayscale(100%);
    }

    95% {
        content: url(../images/team/design.jpg);
    filter: grayscale(100%);
    }

    100% {
        content: url(../images/team/design-glitched.jpg);
        filter: none;
    }
}

#teams_content_grid #web-team {
    content: url(../images/team/web-glitched.jpg);
    animation: team-glitch-web 5s linear infinite;
}

@keyframes team-glitch-web {
    0% {
        content: url(../images/team/web.jpg);
    filter: grayscale(100%);
    }

    95% {
        content: url(../images/team/web.jpg);
    filter: grayscale(100%);
    }

    100% {
        content: url(../images/team/web-glitched.jpg);
        filter: none;
    }
}

#teams_content_grid #social-team {
    content: url(../images/team/social-glitched.jpg);
    animation: team-glitch-social 5s linear infinite;
}

@keyframes team-glitch-social {
    0% {
        content: url(../images/team/social.jpg);
    filter: grayscale(100%);
    }

    95% {
        content: url(../images/team/social.jpg);
    filter: grayscale(100%);
    }

    100% {
        content: url(../images/team/social-glitched.jpg);
        filter: none;
    }
}

#teams_content_grid #motion-team {
    content: url(../images/team/motion-graphics-glitched.jpg);
    animation: team-glitch-motion 5s linear infinite;
}

@keyframes team-glitch-motion {
    0% {
        content: url(../images/team/motion-graphics.jpg);
    filter: grayscale(100%);
    }

    95% {
        content: url(../images/team/motion-graphics.jpg);
    filter: grayscale(100%);
    }

    100% {
        content: url(../images/team/motion-graphics-glitched.jpg);
        filter: none;
    }
}

#teams_content_grid #leadership-team {
    content: url(../images/team/leadership-glitched.jpg);
    animation: team-glitch-leadership 5s linear infinite;
}

@keyframes team-glitch-leadership {
    0% {
        content: url(../images/team/leadership.jpg);
    filter: grayscale(100%);
    }

    95% {
        content: url(../images/team/leadership.jpg);
    filter: grayscale(100%);
    }

    100% {
        content: url(../images/team/leadership-glitched.jpg);
        filter: none;
    }
}

#teams_content_grid div h3 {
    background-color: black;
    color: #f7f7f7;
    margin: 0;
    padding: 15px 20px;
    margin-top: -5px;
    white-space: nowrap;
    font-size: 1.1em;
    letter-spacing: 1px;
    font-weight: 400;
}

.teams-modal {
    box-sizing: border-box;
    width: 80%;
    overflow-y: scroll;
    border: 2px solid black;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    padding: 10%;
    margin: 150px auto 110px auto;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #f7f7f7;
}

.teams-modal h3 {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: lightgrey;
    border-bottom: 2px solid black;
}

.teams-popup-hide {
    display: none;
}

.teams-modal div {
    width: 100%;
    margin: .5%;
    margin-top: 25px;
}

.profile-name {
    font-weight: 500;
    font-size: 1.1em;
}

.specialty {
    line-height: 1;
    margin-top: 5px;
    margin-bottom: 0;
}

.close-modal {
    position: absolute;
    height: 25px;
    width: 25px;
    top: 10px;
    right: 15px;
    z-index: 999;
    border: 2px solid black;
    cursor: pointer;
    background-image: url(../images/exit-icon.svg);
    background-position: center;
    background-repeat: no-repeat;
}

#teams_wrapper .about-dtc {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.linkedin-icon {
    width: 15px;
    margin-right: 5px;
    position: relative;
    top: 2px;
}

#teams_wrapper .about-dtc figure {
    width: 100%;
    margin: 25px auto;
}

#teams_wrapper .about-dtc article {
    flex: 1;
}

#teams_wrapper .content-left {
    margin-right: 0;
}

#teams_wrapper .content-right {
    margin-left: 0;
}

#teams_wrapper #social-media {
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#social-media a {
    width: 30px;
    margin-right: 25px;
    transition: all .3s;
}

#social-media a:hover {
    opacity: .6;
}

@media screen and (min-width: 720px) {

    .teams-modal div {
        width: 48%;
    }

}

@media screen and (min-width: 850px) {
 
    #teams_wrapper .about-dtc {
        flex-direction: row;
        margin-bottom: 100px;
    }

    .teams-modal {
        padding: 3%;
    }

    .teams-modal div {
        width: 30%;
    }

    .teams-modal img {
        border: solid black 2px;
    }

    #teams_wrapper .about-dtc figure {
        width: 40%;
        margin: 0;
    }

    #teams_wrapper .content-left {
        margin-right: 8%;
    }

    #teams_wrapper .content-right {
        margin-left: 8%;
    }
}

@media screen and (min-width: 1025px) {
    #teams_content_grid div {
        width: 48%;
    }

    .teams-modal div {
        width: 20%;
    }
}

@media screen and (min-width: 1100px) {
    #teams_content_grid div {
        width: 31%;
    }

}