body, html {
    height: 100%;
    margin: 0;
    font-size: 17px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    line-height: 1.8em;
    color: #665;
}

/* Nav bar */
header {
    display: flex;
    justify-content: space-between;
}

  nav ul {
      display: flex;

  } 

  nav ul li a {
      color: black;
      text-decoration: none;
      width: 100%;
      padding: 0em 2em;
      background-color: white;
  }

  nav ul li a:hover {
      color: #7682ad;
  }

  /* Logo */

  .logo {
      margin-left: 10px;
      height: 70px;
  }

  /* Positioning of images */

.image1, .image2, .image3, .image4 {
    position: relative;
    opacity: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Large background images */

.image4{
    background-image: url('../img/office.png');
    min-height: 80%;
}

.image1 {
    background-image: url('../img/shake.png');
    min-height: 80%;
}

.image2 {
    background-image: url('../img/sign.png');
    min-height: 400px;
}

.image3 {
    background-image: url('../img/contact.png');
    min-height: 400px;
}

/* All sections text */

.section {
    text-align:center;
    padding: 50px 80px;
}

/* Light section for About us */

.section-light{
    background-color: #f4f4f4;
    color: #666;
}

/* Read more in light section */

#more {display: none;}

#myBtn {
    color: cornflowerblue;
}

/* Dark section for Our services and Contact us */

.section-dark {
    background-color: #282e43;
    color:#ddd;
}

/* White text on black span over images */

.rtext {
    position: absolute;
    top: 15%;
    width: 100%;
    text-align: center;
    font-size: 27px;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.ptext {
    position: absolute;
    top: 35%;
    width: 100%;
    text-align: center;
    font-size: 27px;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.qtext {
    position: absolute;
    top: 55%;
    width: 100%;
    text-align: center;
    font-size: 27px;
    letter-spacing: 8px;
    text-transform: uppercase;
}

/* Black background span of text over images */

.qtext .border, .ptext .border, .rtext .border {
    background-color: #111;
    color: #fff;
    padding: 5px;
}

/* The footer */

footer .footer-content {
    background-color: #282e43;
    color:#ddd;
    height: 45px;
    display: flex;
}

/* Social media icons div */

.socials {
    flex: 1;
    text-align: right;
    padding:5px 5px;
}

/* Social media links */

.socials a {
    padding-right: 15px;
}

/* Social media icons */

.socials i {
    color: white;
    font-size: 35px;
}

.socials a:hover {
    opacity: 0.7;
}

/* MCS copyright div */

.copy {
    margin-left: 0.5em;
}


/* Media queries */
  
@media (max-width:992px) {
    .image4{
        background-image: url('../img/office2.png');
        min-height: 80%;
    }
    
    .image1 {
        background-image: url('../img/shake2.png');
        min-height: 80%;
    } 
    
    .image2 {
        background-image: url('../img/sign2.png');
        min-height: 400px;
    }
    
    .image3 {
        background-image: url('../img/contact2.png');
        min-height: 400px;
    }

    .image1, .image4 {
        min-height: 90%;
        background-attachment: scroll;
    } 

    .image3 {
        min-height: 390px;
        background-attachment: scroll; 
    }

    .image2 {
        min-height: 370px;
        background-attachment: scroll; 
    }

     .ptext .border, .ptext .border, .rtext .border {
        padding: 5px;
    }

    .ptext {
        top: 42%;
        font-size: 27px;
        letter-spacing: 6px;
    }

    .rtext {
        top: 18%;
        font-size: 27px;
        letter-spacing: 6px;
    }

    .qtext {
        top:70%;
        font-size: 27px;
        letter-spacing: 5px; 
    } 

}
@media (max-width:768px) {
    .image4{
        background-image: url('../img/office2.png');
        min-height: 100%;
    }

    
    .image2 {
        background-image: url('../img/sign2.png');
        min-height: 400px;
    }
    
    .image3 {
        background-image: url('../img/contact2.png');
        min-height: 400px;
    }

    .image1, .image4 {
        min-height: 350px;
        background-attachment: scroll;
    }

    .image3 {
        min-height: 390px;
        background-attachment: scroll;
    }

    .image2 {
        min-height: 370px;
        background-attachment: scroll;
    }

    .ptext .border, .ptext .border, .rtext .border {
        padding: 5px;
    } 

     .ptext {
        top: 35%;
        font-size: 20px;
        letter-spacing: 6px;
    } 

    .rtext {
        top: 8%;
        font-size: 20px;
        letter-spacing: 6px;
    }

    .qtext {
        top:70%;
        font-size: 20px;
        letter-spacing: 5px; 
    }

}
@media (max-width:523px){
      
        .aboutus {
        display: none;
    }

    .ptext .border, .qtext .border, .rtext .border {
        padding: 7px;
    }

    .ptext {
        top: 38%;
        font-size: 16px;
        letter-spacing: 6px;
    }

    .rtext {
        top: 15%;
        font-size: 16px;
        letter-spacing: 6px;
    }

    .qtext {
        top: 73%;
        font-size: 16px;
        letter-spacing: 6px;
    }


} 
@media (max-width:380px){

.ptext .border, .qtext .border, .rtext .border {
    padding: 7.5px;
}

.ptext {
    top: 36%;
    font-size: 14px;
    letter-spacing: 6px;
}

.rtext {
    top: 12%;
    font-size: 14px;
    letter-spacing: 6px;
}

.qtext {
    top: 73%;
    font-size: 14px;
    letter-spacing: 6px;
}


} @media (max-width:375px){

    .section {
        text-align: center;
        padding: 50px 10px;
    }

}