/* Big tablets to 1200px (widths smaller than the 1140px row) */

@media only screen and (max-width: 1200px) {
    
    .hero-text-box {
        width: 100%;
        padding: 0 2%;
    }
    
    .row { padding: 0 2%; }
    .main-nav { display: block; }
    
}

/* Small tablets to big tablets: 768 to 1023px */

@media only screen and (max-width: 1023px) {
    
    body { font-size: 18px; }
    section { padding: 60px 0; }
    
    .long-copy {
        width: 80%;
        margin-left: 10%;
    }
    
    .method-box { margin-top: 10px; }
    .method-box:last-child { margin-bottom: 10px; }
    
    .icon-small { 
        width: 17px;
        margin-right: 5px;
    }
    
    .fee-box {
        width: 100%;
        margin-left: 0%;    
    }
    
    .fee-price { font-size: 250%; }
    .contact-form { width: 90%; }
    .main-nav { display: block; }
    
}

@media only screen and (max-width: 944px) {
    
    .main-nav { font-size: 90%; }
    .logo { height: 32px; }
    
}

@media only screen and (max-width: 829px) {
    
    .main-nav { font-size: 80%; }
    .logo { height: 28px; }
    
}

@media only screen and (max-width: 791px) { 
/*    .main-nav { font-size: 85%; }*/
    .logo-black { height: 27px; }
}

/* Small phones to small tablets: from 481 to 767px */

@media only screen and (max-width: 767px) {
    body { font-size: 16px; }
    section { padding: 30px 0;}
    
    .row,
    .hero-text-box { padding: 0 4%; }
    
    .col { 
        width: 100%;
        margin: 0 0 4% 0;
    }
    
    .logo { height: 30px }
	  .logo-black { height: 30px; }
    
    .row { position: relative; }
    
    .main-nav { 
        display: none;
        position: absolute;
        right: 13%;
        float: left;
        margin-top: 35px;
        margin-left: 25px;
    }
    
    .mobile-nav-icon { display: inline-block; }
    .main-nav li { display: block; }
    
    .main-nav li a:link,
    .main-nav li a:visited {
        display: block;
        border: 0;
        padding: 10px 0;
        font-size: 100%;
    }
    
    .sticky .main-nav { 
        margin-top: 10px;
        position: static;
    }
    
    .sticky .main-nav li a:link,
    .sticky .main-nav li a:visited { padding: 10px 0; }
    
    .sticky .mobile-nav-icon { margin-top: 10px; }
    .sticky .mobile-nav-icon i { color: #555; }
    h1 { font-size: 180%; }
    h2 { font-size: 150%; }
    
    .long-copy {
        width: 100%;
        margin-left: 0;
    }
    
    .method-box:first-child { text-align: center; }

    .form-box {
        position: relative;
        height: auto;
        padding: 30px 0;
        width: 100%;
    }
    
    .fee-box,
    .fee-details-box {
        width: 50%;
        margin-left: 25%
    }
    
    .fee-price { font-size: 300%; }
    
    .teaching-method,
    .about-me-text { margin-bottom: 0; }
    
    .long-copy {
        padding-left: 3%;
        padding-right: 3%;
        margin-bottom: 3%;
    }
    
    .taka-sensei-picture { width: 94%; }
    
    .section-features h2 { margin-bottom: 20px; }

}

@media only screen and (max-width: 767px)
    and (orientation: landscape) {
        .hero-text-box { 
            font-size: 80%;
            top: 60%;
        }
}
    
@media only screen and (max-width: 549px) {

    .fee-box,
    .fee-details-box {
        width: 70%;
        margin-left: 15%;
    }
    
}

/* Small phones: from 0 to 480px */

@media only screen and (max-width: 480px) {
    
    section { padding: 25px 0; }
    .contact-form { width: 100% }
    .main-nav { margin-top: 5px; }
    
    .main-nav li a:link,
    .main-nav li a:visited { font-size: 14px; }
    
    .mobile-nav-icon { margin-top: 10px; }
    .logo { height: 25px; }
	
		.slide-width { width: 75%; }
    
}

/* ----------- iPhone 6+ ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3) { 
      header { background-attachment: scroll; } 
      .section-testimonials { background-attachment: scroll; }
}

/* Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) {
      
    .hero-text-box { 
        font-size: 90%;
        top: 55% 
    }
      
}

/* ----------- iPhone 6 ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) { 
      
      header { background-attachment: scroll; }
      .section-testimonials { background-attachment: scroll; }
      .main-nav li a:link,  
      .main-nav li a:visited { font-size: 95%; }
      
      .hero-text-box { font-size: 90%; }
      .logo { height: 22px; }
      
}

/* Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 
       
    .logo { height: 25px; }
      
    .main-nav li a:link,
    .main-nav li a:visited { font-size: 95%; }
      
    .hero-text-box { 
        font-size: 78%;
        top: 55%   
    }
      
}

/* ----------- Galaxy / Nexus (Landscape) ------------- */

/* Portrait */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: portrait) {
      
      .main-nav li a:link,
      .main-nav li a:visited { font-size: 80%; }
      
}

@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {
      
    .hero-text-box { 
        top: 57%;
        font-size: 75%;
    }
      
}

/* ----------- iPhone 5 and 5S ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2) {
    
      header { background-attachment: scroll; }
      .section-testimonials { background-attachment: scroll; }
      .logo { height: 19px; }
      
      .main-nav li a:link,
      .main-nav li a:visited { font-size: 80%; }
      
      .hero-text-box { font-size: 75%; }
      
      .fee-box,
      .fee-details-box {
          width: 90%;
          margin-left: 5%;
    }
      
}

/* Portrait */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) 
    and (orientation: portrait) {
        .logo { height: 17px; }
}

/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {
      
    .hero-text-box { font-size: 68%; }
    .logo { height: 25px; }
      
}