/*Width*/

@media only screen and (max-width: 1293px) {

    body {
        font-size: 18px;
    }
    .row { padding: 0 2%; }


    /*Reserv*/
    .select-row img:nth-of-type(1),
    .select-row img:nth-of-type(2),
    .select-row img:nth-of-type(3) {
        height: 42px;
    }

    .select-row img:nth-of-type(4) {
        margin-top: 4px;
        height: 34px;
    }

    /*Conn*/
    .section-conn p {
        margin: 20px auto 20px auto;
    }

    .section-conn iframe {
        padding: 5px;
    }
}

@media only screen and (max-width: 1100px) {

     #close {
        padding-top: 10px;
    }

    /*NAV*/
    .main-nav li:nth-child(-n+8) {
        display: inline-block;
        margin-right: 15px;
    }

    .select-row img:nth-of-type(1),
    .select-row img:nth-of-type(2),
    .select-row img:nth-of-type(3) {
        height: 37px;
    }

    .select-row img:nth-of-type(4) {
        margin-top: 4px;
        height: 32px;
    }
}

@media only screen and (max-width: 1040px) {

    .section-reg{
        font-size: 22px;
    }

    /*NAV*/
    nav {
        background-color: rgba(242, 242, 242, 0.8);
        max-height: 9999px;
    }

    .main-logo {
        display: none;
    }

    .main-logo-mobile {
        display: inline-block;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 250px;
        top: 34px;
    }
    
    .intro-nav {
        display: none;
        position: absolute;
        left: 250px;
        top: 34px;
    }

    .mobile-nav-dp {
        display: block;
    }

    .main-nav li:nth-child(-n+8) {
        display: block;
        padding-top: 14px;
        margin-left: 2px;
    }

    .main-nav li:last-child {
        padding-top: 14px;
    }

    .main-nav li:first-of-type {
        padding-top: 7px;
    }

    .main-nav li a:link,
    .main-nav li a:visited {
        display: block;
    }

    .nav-row {
        display: block;
        max-height: 68px;
    }

    .main-nav li:hover::after {
        display: none;
    }
    
    /*ads*/
    .section-ads .span-1-of-2 {
        width: 100%;
        margin: 30px 0;
    }
    
    .scroll-img {
        display: none;
    }

    /*Home*/
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
        background-image: none;
    }

    .bottom-logo {
        display: none;
    }

    .mobile-nav-icon {
        display: inline-block;
    }

    /*Intro*/
    
        .intro-nav li:nth-child(-n+5) {
        display:block;
        padding-top: 14px;
        margin-left: 2px;
    }

    .intro-nav li:last-child {
        padding-top: 14px;
    }

    .intro-nav li:first-of-type {
        padding-top: 7px;
    }

    .intro-nav li a:link,
    .intro-nav li a:visited {
        display: block;
    }

    .intro-nav li:hover::after {
        display: none;
    }

    /*trainers*/
    .section-trainers .span-1-of-3 {
        width: 100%;
        margin-left: 0;
    }
    
    .section-trainers .header-box {
        width: 100%;
    }

    .avatar-container {
        width: 100%;
    }

    .btn-reserve {
        width: 100%;
    }
    
    
    /*trainings*/
    
    .section-trainers .span-1-of-2 {
        width: 100%;
        margin-left: 0;
        padding-bottom: 20px;
    }
    
    .section-trainers .header-box-trt {
        font-size: 80%;
        width: 100%;
    }
    
    .section-trainers h4 {
        font-size: 200%;
    }

    /*reserv*/
    .select-row img:nth-of-type(4) {
        width: 14%;
    }

    /*Conn*/
    .section-conn .span-1-of-2 {
        width: 100%;
    }
    .section-conn .span-1-of-4 {
        width: 100%;
        margin: 0;
    }

    /*supp*/
    .section-supp .span-1-of-4 {
        width: 50%;
        margin: 30px auto;
    }

    .section-supp .row {
        margin-bottom: 0
    }

    .section-supp .row:last-of-type {
        margin-bottom: 0;
    }

    /*Reg*/
    .section-reg .span-1-of-3 {
        width: 100%;
        margin-left: 0;
    }

    /*login*/
    .section-login .span-1-of-3 {
        width: 100%;
        margin-left: 0;
    }

    /*login-reg*/
    .section-reg label:after,
    .section-login label:after {
        width: 35%;
        margin: 2px auto 15px auto;
    }
    
    /*account*/
    .section-account .span-1-of-3 {
        width: 100%;
        margin-left: 0;
    }
    
    .section-account .pass {
        width: 50%;
        font-size: 110%;
    }
}

@media only screen and (max-width: 767px) {

    /*Reserv*/
    .section-reserv .span-1-of-5,
    .section-reserv .span-1-of-2 {
        width: 100%;
        margin-left: 0;
    }

    .section-reserv span {
        margin-right:  150px;
    }

    .section-reserv .span-2-of-2 p {
        font-size: 125%;
    }

    .section-reserv .span-1-of-5 p {
        padding-left: 100px;
    }

    .select-row img:nth-of-type(1),
    .select-row img:nth-of-type(2),
    .select-row img:nth-of-type(3) {
        height: 40px;
    }

    .select-row img:nth-of-type(4) {
        margin-top: 2px;
        width: 9%;
    }

    /*policy*/
    .section-policy .span-1-of-3:nth-of-type(1),
    .section-policy .span-1-of-3:nth-of-type(3) {
        width: 0;
    }

    .section-policy .span-1-of-3:nth-of-type(2) {
        width: 100%;
    }
    
    /*account*/
    .section-account .pass span {
        margin-bottom: 7px;
    }
}

@media only screen and (max-width:600px) {

    /*NAV*/

    .main-nav {
        left: 235px;
    }

    /*Reserv*/
    .select-row img:nth-of-type(4) {
        width: 12%;
    }

    /*supp*/
    .section-supp .span-1-of-4 {
        width: 100%;
        margin: 50px auto;
    }
}

@media only screen and (max-width:569px) {
    /*building*/
    .section-building .header-box {
        width: 100%;
    }
    
    .section-building .span-1-of-8 {
        width: 6%;
    }
    
    .section-building .span-3-of-4 {
        width: 84.8%;
    }
    
    .section-building .span-1-of-8:last-of-type {
        float: right;
    }
    
    .js-gal-b-right,
    .js-gal-b-left {
        margin-top: 45px;
    }
}

@media only screen and (max-width:480px) {

    .section-trainers .span-1-of-3 {
        margin-bottom: 30px;
    }
    
    /*Reserv*/
    
    
    .section-reserv .span-1-of-3 {
        width: 33%;
        margin-bottom: 10px;
    }
    
    .section-account .pass{
        width: 100%;        
    }
    
    .select-row img:nth-of-type(1),
    .select-row img:nth-of-type(2),
    .select-row img:nth-of-type(3) {
        padding: 0 10px;
    }

    .select-row img:nth-of-type(4) {
        margin-top: 3px;
        width: 15%;
    }
}

/*height*/

@media only screen and (max-height: 695px) {
    .arrow-down {
        top: 73vh;
    }
}

@media only screen and (max-height: 575px) {
    .arrow-down {
        top: 70vh;
    }
}

@media only screen and (max-height: 475px) {
    .arrow-down {
        top: 67vh;
    }
}

@media only screen and (max-height: 400px) {
    .arrow-down {
        display: none;
    }
}