body {
    font-family: "Raleway";
    width: 860px;
    margin: auto;

}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: flex;
    flex-direction: row;
}

nav {
    display: grid;
    grid-template-columns: 70% 10% 10% 10%;
    background-color: black;
    padding: 15px;
    position: relative;
}

#mainLogo {
    color: white;
    font-weight: bolder;
}

.menuItems {
    color: #888888;
    text-align: center;
    font-weight: normal;
}

#videoContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 550px;
    background: linear-gradient(to bottom right, red, black);
}

#myVideo {

    position: relative;
    width: 100%;
    height: 100%;
    transform: scaleY(1.3) translateY(20px);
    opacity: 0.6;
}

#videoOverlay {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

#videoOverlayTitle {
    font-size: 64px;
    color: white;
    font-weight: 300;
}

#videoOverlayText {
    font-size: 24px;
    color: #ad9596;
    font-weight: 400;
}

main {
    background-attachment: fixed;
    background-size: cover;
    background-image: url(images/bg.jpg);
    position: relative;
}

#mainFilter {

    background-color: white;
    opacity: 0.9;
    position: absolute;
    width: 100%;
    height: 100%;
}

.cardIntro {
    opacity: #686868;
    padding-top: 40px;
    color: #696969;
    width: 380px;
    position: relative;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

.cardIntoTitle {
    padding: 40px 170px;
    font-size: 36px;
    font-weight: 300;
}

.cardIntroText {
    padding: 0px 150px 40px 150px;
}

.cards {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 1.0;
}

.cards .card:nth-child(odd) {
    margin-left: 30px;
    margin-right: 15px;
}

.cards .card:nth-child(even) {
    margin-left: 15px;
    margin-right: 30px;
}



.card {
    padding-top: 40px;
    color: #666666;
    background-color: #ffffff;
    width: 380px;
    margin-top: 35px;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}


.cards .card img:hover {
    transition: transform 1.0s ease;
    transform: scale(1.8);
}

.cardImageContainer {
    overflow: hidden;
    height: 380px;
}

.icon {
    color: #ce1b28;
    padding: 28px 24px 20px 24px;
    font-size: 80px !important;
}

button:hover {
    background-color: #dde7eb;
    cursor: pointer;
}

.icon:hover {
    color: #81c5e0;
    cursor: pointer;
}

.iconSmall {
    color: white;
    padding: 16px 14px 12px 14px;
    font-size: 20px !important;
    width: 1em;
    text-align: center;
}

#middleSection {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 225px;
    background: linear-gradient(to bottom right, red, black);
}

#middleImage {
    width: 100%;
    transform: translateY(-420px);
    opacity: 0.7;
}

#middleOverlay {
    width: 80%;
    position: absolute;
    text-align: center;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#middleOverlayTitle {
    font-size: 34px;
    font-weight: 300;
}

#middleOverlayText {
    font-size: 14px;
    font-weight: 200;
    line-height: 1.8em;
}

.cardTestimonial {
    padding-top: 0px;
}

.cards .cardTestimonial:nth-child(odd) {
    margin-left: 35px;
    margin-right: 15px;
}

.cards .cardTestimonial:nth-child(even) {
    margin-left: 15px;
    margin-right: 35px;
}

.cards2 {
    justify-content: left;
}

.greyLine {
    border-left: 8px lightgrey solid;
    height: 140px;
    margin: 30px 0px 0px 35px;
}

.testimonial {
    display: flex;
    justify-content: left;
    margin: 30px 35px 0px 35px;
    width: 70%; line-height: 1.7em;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

.facial {
    position: relative;
    max-width: 60px;
    height: 60px;
    border-radius: 100px;
    margin-right: 40px;
}

.signature {
    align-items: center; 
    font-size: 12px; 
    font-weight: bold;
    padding: 35px 35px 30px 35px;
}

footer {
    background-color: #111111; 
    color: white;
    padding: 45px 45px; 
    align-items: flex-start;
}

.greyUnderlined {
    color: #888888;
    padding: 15px 0px 15px 0px;
    width: 85%;
    border-bottom: 1px #888888 solid;
}

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

    body {
        width: 1600px;
    }

    nav {
        grid-template-columns: 79% 7% 7% 7%;
    }

    #myVideo {
        transform: scaleY(1.3) translateY(20px) scale(2);
    }

    .cards .card:nth-child(odd) {
        margin-left: 30px;
        margin-right: 30px;
    }
    
    .cards .card:nth-child(even) {
        margin-left: 30px;
        margin-right: 30px;
    }

    #middleSection {
        height: 425px;
       
    }

    #middleOverlay {
        width: 70%;
    }

    .cards2 {
        justify-content: center;
    }

    footer {
        padding: 100px 300px;
    }
    
}