@media only screen and (max-width: 1150px) {
  .tab-caption h5{
    font-size: 17px;
  }
}

@media only screen and (max-width: 1150px) {
  .tab-caption h5{
    font-size: 17px;
  }
}

@media only screen and (max-width: 1000px) {
  #home-top{
    height: 450px;
  }

  .generic-top{
    height: 350px;
  }

  .range-top{
    height: 300px;
  }
}

@media only screen and (max-width: 900px) {
  .logo h1{
    font-size: 28px;
  }
}

@media only screen and (max-width: 840px) {
  .burger-nav {
    font-size: 40px;
    cursor: pointer;
    color: grey;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    display: table-cell;
    text-align: right;
    vertical-align: middle;
  }

  .nav{
    display: table;
    padding-right: 15px;
  }

  nav{
    display:none;
  }

  #services-tabs{
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
  }

  .tab{
    width: 50%;
    flex-basis: 50%;
    -webkit-flex-basis: 50%;
    -ms-flex-preferred-size: 50%;
  }

  .tab-caption h5{
    font-size: 25px;
  }

  .services-title{
    font-size: 24px;
  }

  .carpets-title{
    font-size: 22px;
  }

  .bedrooms-title{
    font-size: 22px;
  }

  .beds-title{
    font-size: 22px;
  }
}

@media only screen and (max-width: 800px) {
  .contact-left{
    width: 100%;
    padding: 0;
  }

  .contact-right{
    width: 100%;
    margin-top: 30px;
  }

  footer{
    text-align: center;
    text-align: -webkit-center;
    text-align: -moz-center;
    text-align: -ms-center;
    text-align: -o-center;
  }

  .columns{
    width: 45%;
    margin-top: 20px;
  }

  .columns:first-of-type{
    width: 55%;
    margin-top: 0;
  }

  footer .left{
    margin-bottom: 10px;
  }

  footer .left, footer .right{
    float: none;
  }
}

@media only screen and (max-width: 700px) {
  .overlay a{
    font-size: 27px;
  }

  .range .left, .range .right{
    width: 100%;
  }

  .range .right{
    border-left: 0;
    border-top: 1px rgb(200,200,200) solid;
    margin-top: 15px;
    padding-top: 15px;
    padding-left: 0;
  }

  .colours{
    width: 24%;
  }
}

@media only screen and (max-width: 640px) {
  .tab:last-of-type{
    max-height: 300px;
  }

  .product-boxes{
    width: 45%;
    flex-basis: 45%;
  }

  .bedrooms-boxes{
    width: 45%;
    flex-basis: 45%;
  }

  .beds-boxes{
    width: 45%;
    flex-basis: 45%;
  }

  .call-to-action-content h3{
    font-size: 22px;
  }

  .cta-btn p {
    font-size: 15px;
  }

  .cta-btn{
    width: 170px;
  }
}

@media only screen and (max-width: 620px) {
  .tab-caption h5{
    font-size: 17px;
  }

  #home-top{
    height: 300px;
  }

  .generic-top{
    height: 250px;
  }

  .range-top{
    height: 250px;
  }

  .columns{
    width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .header-bg{
    display: block;
    padding: 0;
    text-align: -webkit-center;
    text-align: -moz-center;
    text-align: -ms-center;
    text-align: -o-center;
  }

  .logo{
    max-width: none;
    width: fit-content;
    display: block;
    padding: 15px 30px;
    text-align: center;
    text-align: -webkit-left;
    text-align: -moz-left;
    text-align: -ms-left;
    text-align: -o-left;
  }

  .logo img{
    max-width: 100px;
  }

  .burger-nav{
    display: block;
    padding: 10px 30px;
    border-top: grey 1px solid;
  }
}

@media screen and (max-height: 600px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
  .overlay-content{
    top: 15%;
  }

}

@media only screen and (max-width: 540px) {
  .logo{
    text-align: -webkit-center;
    text-align: -moz-center;
    text-align: -ms-center;
    text-align: -o-center;
  }

  .logo img{
    max-width: 120px;
  }

  .logo-text{
    margin-top: 10px;
    margin-left: 0;
  }

  .content h1{
    font-size: 32px;
  }

  .services-title{
    font-size: 21px;
  }

  .carpets-title{
    font-size: 18px;
  }

  .bedrooms-title{
    font-size: 18px;
  }

  .beds-title{
    font-size: 18px;
  }

  .product-boxes-text h3{
    font-size: 19px;
  }

  .product-boxes-text p{
    font-size: 16px;
  }

  .bedrooms-boxes-text h3{
    font-size: 19px;
  }

  .bedrooms-boxes-text p{
    font-size: 16px;
  }

  .beds-boxes-text h3{
    font-size: 19px;
  }

  .beds-boxes-text p{
    font-size: 16px;
  }

  .colours{
    width: 30%;
  }
}

@media only screen and (max-width: 500px) {
  .tab-caption h5{
    font-size: 19px;
  }

  .tab{
    width: 100%;
    flex-basis: 100%;
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    max-height: 500px;
  }

  h2{
    font-size: 20px;
  }

  #contact h2{
    font-size: 24px;
  }

  .range h3{
    font-size: 24px;
  }

  p{
    font-size: 15px;
  }

  p strong{
    font-size: 17px;
  }

  .call-to-action{
    height: auto;
  }

  .call-to-action-content{
    text-align: center;
    text-align: -webkit-center;
  }

  .call-to-action-content h3{
    margin: 0 auto 15px;
  }

  .call-to-action-content h3, .call-to-action-content a{
    display: block;
  }

  .overlay a{
    font-size: 21px;
  }

  .columns:first-of-type{
    width: 65%;
  }
}

@media only screen and (max-width: 450px) {
  .logo{
    padding: 15px
  }

  .burger-nav{
    padding: 10px 15px;
  }

  .product-boxes{
    width: 95%;
    flex: none;
  }

  .bedrooms-boxes{
    width: 95%;
    flex: none;
  }

  .beds-boxes{
    width: 95%;
    flex: none;
  }

  .examples{
    width: 60%;
  }

  .colours{
    width: 45%;
  }
}

@media only screen and (max-width: 400px) {
  .logo h1{
    font-size: 24px;
  }

  .logo h2{
    font-size: 20px;
  }

  #home-top{
    height: 220px;
  }

  .generic-top{
    height: 200px;
  }

  .range-top{
    height: 200px;
  }

  .columns:first-of-type{
    width: 100%;
  }
}

@media only screen and (max-width: 390px) {
  .examples{
    width: 90%;
  }

  #contact .content{
    padding: 30px 0;
  }

  .contact-left{
    height: 350px;
  }

  footer p{
    word-break: break-all;
  }
}
