/*

///////////////////////////////////////// MEDIA QUERRIES //////////////////////////////////////////////

*/

/* TESTIMONIAL CONTAINER */

@media only screen and (max-width: 1010px) {
  .testimonial-container {
    height: 350px;
  }
}

@media only screen and (max-width: 760px) {
  .testimonial-container {
    height: 400px;
  }
}

@media only screen and (max-width: 671px) {
  .testimonial-container {
    height: 450px;
  }
}

@media only screen and (max-width: 520px) {
  .testimonial-container {
    height: 500px;
  }
}

@media only screen and (max-width: 465px) {
  .testimonial-container {
    height: 550px;
  }
}

/* SERVICE CARD */

@media only screen and (max-width: 1100px) {
  .service-card {
    width: 90%;
  }
}

/* ABOUT US */

@media only screen and (max-width: 1053px) {
  #about-us {
    display: none;
  }
}

/* CS-SECTION */

@media only screen and (max-width: 952px) {
  #cs-content ul {
    margin: 0 2%;
  }
}

@media only screen and (max-width: 780px) {
  #cs-content ul {
    margin: 0;
    margin-right: 1%;
    transform: scale(0.8);
  }
}

@media only screen and (max-width: 640px) {
  #cs-content {
    flex-direction: column;
  }
  #cs-content ul {
    transform: scale(1);
    margin: 0;
    margin-top: 25px;
  }
}

/* IMPORTANT */

@media only screen and (max-width: 1150px) {
  #navbar {
    align-items: stretch;
  }

  #navbar-top {
    margin-top: 0;
  }

  #logo {
    margin-top: 15px;
  }

  #navbar ul {
    display: none;
  }

  #navbar ul li {
    padding: 0;
  }

  #button {
    display: inline-block;
  }

  #middle {
    display: block;
  }

  #main {
    width: 100%;
    height: 500px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.3)
      ),
      url(https://images.unsplash.com/flagged/photo-1564767609213-c75ee685263a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=773&q=80)
        no-repeat fixed;
    background-size: cover;
  }

  #main-img {
    display: none;
    border-bottom-left-radius: 20px;
    overflow: hidden;
  }

  #main-content {
    width: 100%;
    /* margin-left: 20%; */
  }

  #main-content p {
    width: 500px;
  }
}

@media only screen and (max-width: 660px) {
  #main {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.3)
      ),
      url(https://images.unsplash.com/photo-1612034834415-72a023db0303?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80)
        no-repeat fixed;
  }
}


/* SERVICES PAGES MEDIA QUERRIES */

@media only screen and (max-width: 1077px) {
  #sidebar {
    display: none;
  }
  #page {
    width: 90%;
    margin: 50px;
  }
}

@media only screen and (max-width: 950px) {
  #top h1,
  #top p {
    margin: 0 10px;
  }
  #top h1 {
    line-height: 40px;
  }
  #top p {
    line-height: 20px;
  }
}

@media only screen and (max-width: 550px) {
  #page {
    margin: 25px;
  }
  article h1,
  article h2 {
    font-size: 1.5rem;
  }
  article {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 400px) {
  article h1,
  article h2 {
    font-size: 1.2rem;
  }
  article {
    font-size: 1rem;
  }
  #top h1 {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width: 560px) {
  #main-content {
    transform: scale(.8);
    margin-left: 0%;
  }
  #footer h1 {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 770px) {
  .service-card {
    width: 100%;
  }
}

@media only screen and (max-width: 660px) {
  .service-card {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .service-content{
    margin-left: 10px;
  }
  .service-card i {
    margin-right: auto;
  }
}

@media only screen and (max-width: 420px) {
  #testimonials h1 {
    font-size: 2rem;
  }
  #cs-section h1 {
    font-size: 2rem;
  }
  #logo h1 {
    font-size: 1.2rem;
  }
}


@media only screen and (max-width: 490px) {
  #footer-content {
    margin-left: 20px;
  }
  #f-links {
    margin-right: 2%;
  }
  #contact i {
    font-size: .8rem;
  }
}

/* @media only screen and (max-width: 400px) {
  #footer-main-content {
    transform: scale(.9);
  }

  #footer-content {
    margin-left: 2px;
  }

  #footer-content h1 {
    margin-left: 10px;
  }

  #f-links {
    margin-right: 0%;
  }
} */

@media only screen and (max-width: 380px) {
  #footer-content h1 {
    font-size: 1.8rem;
  }
  .icon {
    padding: 2px;
  }
}


@media only screen and (max-width: 450px) {
  #main-content {
    width: 400px;
  }
  #main-content h1 {
    font-size: 2rem;
  }
  #main-content p {
    width: 400px;
  }
  .testimonial {
    padding: 25px;
  }
  #footer ul li {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 381px) {
  #footer-main-content {
    transform: scale(.9);
  }
}
