@media (max-height: 530px) {
    .section, .fp-tableCell {
        min-height: 530px !important;
    }
    
    #section0 {
        min-height: 100vh !important;
    }
    
    body, html {
        overflow-y: auto !important;
    }
    
    #menu, .block-mini-cubes, #moveSectionDown, #moveSectionUp, .scroll-down {
        display: none !important;
    }
    
    
    #section3, #section3 .fp-tableCell {
        min-height: 400px !important;
        height: 400px !important;
    }
    
    .block-wiz-cube {
        height: 220px;
        top: 100px;
        transform: translate(-50%, 0%);
    }
    
    .show-cube-face {
        top: 40px !important;
    }
    
}

@media (max-height: 550px) {
    .block-wiz-cube {
        margin-top: -20px;
    }
}

@media (max-height:530px), (max-width:992px) {
    #section1, #section2, #section3 {
        background: url(../images/mooning.png) repeat !important;
    }
}

@media (max-width:992px) {
    body, html {
        overflow-y: auto !important;
    }
    
    #instructor1-hover, #instructor2-hover {
        opacity: 0;
    }
}

@media (max-height:530px) {
    .home-page-services {
        height: 400px;
    }
    
}

@media (min-width:992.1px) {
    .instructor-name {
        letter-spacing: 7px;
    }

    .instructor-surname {
        letter-spacing: 7px;
    }
    
    #instructor1-hover, #instructor2-hover {
        right: 2%;
        opacity: 0;
    }
}

@media (max-width:992px), (max-height:530px) {
    .home-page-instructors-h1 h1 {
        display: block;
    }
}
    
@media (max-width:992px), (max-height:530px) {
    .home-page-instructors {
        width: 100%;
        float: none;
    }
    
    .home-page-instructors-h1 img {
        display: none;
    }

    .home-page-instructors-h1 {
        float: none;
        width: 100%;
        height: auto;
        text-align: center;
    }
    .home-page-instructors-h1 h1 {
        display: block;
        top:0.5em;
        font-size:2.2em;
        position: relative;
        transform: rotate(0deg) translateY(0%);
        -o-transform: rotate(0deg) translateY(0%);
        -moz-transform: rotate(0deg) translateY(0%);
        -ms-transform: rotate(0deg) translateY(0%);
        -webkit-transform: rotate(0deg) translateY(0%);
        z-index: 1;
    }
    
    .two2instructors {
        width: 100%;
    }
    
    .home-page-instructor img {
        width: 100%;
        height: auto;
    }
    
    .home-page-instructor {
        transition: 1s;
        -ms-transition: 1s;
        -moz-transition: 1s;
        -webkit-transition: 1s;
        -o-transition: 1s;
        float: left;
        height: auto;
        position: relative;
        width: 50%;
        z-index: 2;
        left: 7.5px;
        margin-right: 0px;
        transform: translateX(0%);
    }
    
}

@media (max-height:530px) and (max-width: 750px) and (min-width: 550px) and (orientation: landscape) {
    #instructor1 {
        top: 0%;
    }
    
    #instructor1-hover, #instructor2-hover {
        right: 10%;
    }
}

@media (max-height: 380px) {
    .navbar-inverse .navbar-nav>li>a {
        font-size: 1.4em;
        margin: 0px;
    }
}

@media (orientation: portrait), (min-width: 640px) {
    .navbar-inverse .navbar-nav>li>a {
        font-size: 2.0em;
        margin: 15px;
    }

    .navbar {
        display: none;
        position: absolute;
        z-index: 70;
        border: 0;
    }

    .navbar-nav {
        padding-bottom: 2%;
        padding-top: 2%;
    }
}


@media (min-height: 530px) {
    .navbar-inverse .navbar-nav>li>a {
        font-size: 2.0em;
        margin: 30px;
    }
}

@media (min-height: 630px) {
    .navbar-nav {
        padding-bottom: 6%;
        padding-top: 6%;
    }
}

@media (min-height: 730px) {
    .navbar-nav {
        padding-bottom: 9%;
        padding-top: 9%;
    }
}

@media (min-height: 930px) {
    .navbar-nav {
        padding-bottom: 15%;
        padding-top: 15%;
    }
}

@media (min-height: 1130px) {
    .navbar-nav {
        padding-bottom: 20%;
        padding-top: 20%;
    }
}


@media (max-width:992px), (orientation: portrait) {
    #section0 {
        background: url(../fitness.jpg) no-repeat 50% 50% !important;
        -moz-background-size: cover !important;
        -webkit-background-size: cover !important;
        -o-background-size: cover !important;
        background-size: cover !important;
    }
    
    video {
        display: none;
    }
}

@media (max-width:992px) {
    #menu, .laptops-select-lang {
        display: none;
    }
}

@media (max-width: 992px) {
    #moveSectionUp, #moveSectionDown, .scroll-down {
        display: none !important;
    }
    
    .menu-wiz-logo {
        display: none;
    }
}

@media (max-width: 991.99px) {
    .home-page-service {
        height: 80vh;
    }
    
    .home-page-service-tab img {
        height:60%;
        padding: 1px;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
    }

    .home-page-service-tab span {
        display: none;
    }
    
    .home-menu-item a, .home-menu-item a:focus, .home-menu-item a:visited {
        font-size: 1.5em;
    }
}

@media (max-width: 992px) {
    .block-mini-cubes {
        display: none;
    }    
    
    #home-page-service-tab-content h2 {
        text-align: center;
    }
    
    #home-page-service-tab-content p {
        text-align: center;
    }
    
    #home-page-service-tab-content a {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    
    .primary-info {
        font-size: 0.95em; 
    }
    
    #home-page-service-tab-content {
        font-size: 0.95em; 
    }
    
    #home-page-service-tab-content h2 {
        font-size: 1.2em; 
    }
}

@media (max-width: 767.99px), (max-height: 640px) {
    /* CUBE */
    
    .blvck-in-cube i {
        color: #fff;
        margin: 10px;
        margin-top: 15px;
        font-size: 35px;
    }
    
    .working-hours {
        font-size: 35px;
    }

    .phone-number {
        top: 10px;
        color: #fff;
        font-size: 24px;
        letter-spacing:1px;
    }
    
    .block-wiz-cube {
        width: 220px;
        height: 220px;
    }
    
    .cubes-right {
        left: 400px;
        margin-top: -60px;
    }
    
    .cubes-left {
        right: 400px;
        margin-top: -60px;
    }
    
    .block-wiz-cube {
        width: 320px;
        height: 320px;
    }
    
    .face {
      position: absolute;
      width: 320px;
      height: 320px;
      opacity: 1;
      box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
      line-height: 30px;
      text-align: center;
      font-size: 23px;

    }

    .cubespinner { 
      -webkit-transform-origin: 160px 160px 0;
      -moz-transform-origin: 160px 160px 0;
      -ms-transform-origin: 160px 160px 0;
      transform-origin: 160px 160px 0;
    }
    
    .cubespinner .face1 {
      -webkit-transform: translateZ(160px);
      -moz-transform: translateZ(160px);
      -ms-transform: translateZ(160px);
      transform: translateZ(160px);
      background: #000;
    }
    
    .cubespinner .face2 {
      -webkit-transform: rotateY(90deg) translateZ(160px);
      -moz-transform: rotateY(90deg) translateZ(160px);
      -ms-transform: rotateY(90deg) translateZ(160px);
      transform: rotateY(90deg) translateZ(160px);
      background: #141414;
    }
    
    .cubespinner .face3 {
      -webkit-transform: rotateY(90deg) rotateX(90deg) translateZ(160px);
      -moz-transform: rotateY(90deg) rotateX(90deg) translateZ(160px);
      -ms-transform: rotateY(90deg) rotateX(90deg) translateZ(160px);
      transform: rotateY(90deg) rotateX(90deg) translateZ(160px);
      background: #101010;
    }
    
    .cubespinner .face4 {
      -webkit-transform: rotateY(180deg) rotateZ(90deg) translateZ(160px);
      -moz-transform: rotateY(180deg) rotateZ(90deg) translateZ(160px);
      -ms-transform: rotateY(180deg) rotateZ(90deg) translateZ(160px);
      transform: rotateY(180deg) rotateZ(90deg) translateZ(160px);
      background: #000;
    }
    
    .cubespinner .face5 {
      -webkit-transform: rotateY(-90deg) rotateZ(90deg) translateZ(160px);
      -moz-transform: rotateY(-90deg) rotateZ(90deg) translateZ(160px);
      -ms-transform: rotateY(-90deg) rotateZ(90deg) translateZ(160px);
      transform: rotateY(-90deg) rotateZ(90deg) translateZ(160px);
      background: #141414;
    }
    
    .cubespinner .face6 {
      -webkit-transform: rotateX(-90deg) translateZ(160px);
      -moz-transform: rotateX(-90deg) translateZ(160px);
      -ms-transform: rotateX(-90deg) translateZ(160px);
      transform: rotateX(-90deg) translateZ(160px);
      background: #101010;
    }
}

@media (max-width: 992px) {
    
    .navbar {
        display: block;
        float: right;
        background: rgba(93,93,93,0.90);
        border-bottom: 0px solid black;
        width: 100%;
        position: fixed !important;
    }
    
    .navbar-nav>li>a {
        text-align: right;
    }
    
    .home-page-logo {
        padding-top: 40px;
        width:40%;
    }
    
    
}

@media (max-width: 767.99px) {
    /* CUBE */
    
    .show-cube-face {
        top: 80px;
    }
    
    #show-face2, #show-face3, #show-face4 {
        margin-left: 1.6%;
        margin-right: 1.6%;
        width: 30%;
    }
    
    .blvck-in-cube i {
        color: #fff;
        margin: 10px;
        margin-top: 15px;
        font-size: 35px;
    }
    
    .working-hours {
        font-size: 35px;
    }

    .phone-number {
        top: 10px;
        color: #fff;
        font-size: 24px;
        letter-spacing:1px;
    }
    
    .block-wiz-cube {
        width: 220px;
        height: 220px;
    }
    
    .face {
      position: absolute;
      width: 220px;
      height: 220px;
      opacity: 1;
      box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
      line-height: 30px;
      text-align: center;
      font-size: 18px;

    }

    .cubespinner { 
      -webkit-transform-origin: 110px 110px 0;
      -moz-transform-origin: 110px 110px 0;
      -ms-transform-origin: 110px 110px 0;
      transform-origin: 110px 110px 0;
    }
    
    .cubespinner .face1 {
      -webkit-transform: translateZ(110px);
      -moz-transform: translateZ(110px);
      -ms-transform: translateZ(110px);
      transform: translateZ(110px);
      background: #000;
    }
    
    .cubespinner .face2 {
      -webkit-transform: rotateY(90deg) translateZ(110px);
      -moz-transform: rotateY(90deg) translateZ(110px);
      -ms-transform: rotateY(90deg) translateZ(110px);
      transform: rotateY(90deg) translateZ(110px);
      background: #141414;
    }
    
    .cubespinner .face3 {
      -webkit-transform: rotateY(90deg) rotateX(90deg) translateZ(110px);
      -moz-transform: rotateY(90deg) rotateX(90deg) translateZ(110px);
      -ms-transform: rotateY(90deg) rotateX(90deg) translateZ(110px);
      transform: rotateY(90deg) rotateX(90deg) translateZ(110px);
      background: #101010;
    }
    
    .cubespinner .face4 {
      -webkit-transform: rotateY(180deg) rotateZ(90deg) translateZ(110px);
      -moz-transform: rotateY(180deg) rotateZ(90deg) translateZ(110px);
      -ms-transform: rotateY(180deg) rotateZ(90deg) translateZ(110px);
      transform: rotateY(180deg) rotateZ(90deg) translateZ(110px);
      background: #000;
    }
    
    .cubespinner .face5 {
      -webkit-transform: rotateY(-90deg) rotateZ(90deg) translateZ(110px);
      -moz-transform: rotateY(-90deg) rotateZ(90deg) translateZ(110px);
      -ms-transform: rotateY(-90deg) rotateZ(90deg) translateZ(110px);
      transform: rotateY(-90deg) rotateZ(90deg) translateZ(110px);
      background: #141414;
    }
    
    .cubespinner .face6 {
      -webkit-transform: rotateX(-90deg) translateZ(110px);
      -moz-transform: rotateX(-90deg) translateZ(110px);
      -ms-transform: rotateX(-90deg) translateZ(110px);
      transform: rotateX(-90deg) translateZ(110px);
      background: #101010;
    }
}

@media (max-height: 768px) and (max-width: 840px) and (min-width: 992.1px) {
    .home-page-instructor img {
        height: 80%;
        position: relative;
        transform: translateY(15%);
    }
    
    .home-page-instructors-h1 {
        position: relative;
        left: 20px;
    }
}

@media (min-width: 640.1px) and (orientation: portrait) {
    .section, .fp-tableCell {
        min-height: 100vh;
    }
    
    #section3, #section3 .fp-tableCell {
        min-height: 420px !important;
        height: 420px !important;
        overflow: visible !important;
    }
    
    .show-cube-face {
        top: 40px !important;
    }
    
    #menu{
        display: none;
    }
}

@media (min-width: 740.1px) and (orientation: portrait) {
    .section, .fp-tableCell {
        min-height: 100vh;
    }
    
    #section3, #section3 .fp-tableCell {
        min-height: 520px !important;
        height: 520px !important;
        overflow: visible !important;
    }
}

@media (min-width: 800.1px) and (orientation: portrait) {
    .section, .fp-tableCell {
        min-height: 100vh;
    }
    
    #section3, #section3 .fp-tableCell {
        min-height: 620px !important;
        height: 620px !important;
        overflow: visible !important;
    }
}



@media (max-width: 640px) and (orientation: portrait) {
    
    .section, .fp-tableCell {
        min-height: 100vh;
    }
    
    #section3, #section3 .fp-tableCell {
        min-height: 320px !important;
        height: 320px !important;
        overflow: visible !important;
    }
    
    .block-wiz-cube {
        height: 220px;
        top: 20px;
        transform: translate(-50%, 0%);
    }
    
    .show-cube-face {
        top: -40px !important;
    }
    
    #menu {
        display: none;
    }
}

@media (max-width: 340px) {
    .home-page-instructors-h1 {
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

@media (min-width: 480px) {
    .home-brand-logo img {
        width: 36%;
    }
    
    .instructor-name {
        font-size: 2.0em;
    }

    .instructor-surname { 
        font-size: 2.0em;
    }

}

@media (min-width: 768px) and (max-width: 992px) {
    .home-page-instructors {
        width: 70%;
        margin: 0 auto;
        float: none;
    }
}

@media (min-width: 992.1px) {
    #instructor2.active img {
        margin-left: 15px; 
    }
    
    #instructor1.active {
        margin-top: -15px; 
    }
    
}

@media (min-width: 992.1px) {
    
    #instructor2 img {
        transition: ease-in 0.4s;
        -ms-transition: ease-in 0.4s;
        -moz-transition: ease-in 0.4s;
        -webkit-transition:ease-in 0.4s;
        -o-transition: ease-in 0.4s;
    }

    .home-page-service-tab:hover {
        background: rgba(202, 1, 1, 0.4);
    }
    
    .home-brand-logo {
        display: none;
    }
    
    #menu li {
        width:21%;
        margin: 10px;
        margin-left: 2.0%;
        margin-right: 2.0%;
    }
    
    .home-page-instructors {
        height: calc(100vh - 70px);
        height: -o-calc(100vh - 70px);
        height: -moz-calc(100vh - 70px);
        height: -webkit-calc(100vh - 70px);
        height: -ms-calc(100vh - 70px);
    }
}

@media (max-width: 900px) {
    #menu li a { 
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    #home-page-service-tab-content {
        padding: 0.5em !important;
    }
    
    .home-page-services {
        width: 95% !important;
        padding: 0.5em !important;
    }
    
    .home-page-services-right {
        padding: 0 !important;        
    }
}

@media (min-width: 964px) {
    
    #menu li {
        width:20%;
        margin: 10px;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }
}

@media(min-width: 992.1px) {
    .show-cube-face {
        top: 10%;
    }
}

@media (min-width: 992px) {
    .show-cube-face {
        width: 60%;
    }
    
    
    .block-wiz-cube {
        position: absolute;
    }
}

@media (min-width: 1200px) {
    #home-page-service-tab-content {
        font-size: 1.6em;
    }
    
    .show-cube-face {
        width: 55%;
        top:10%;
    }
    
    #menu li {
        width:16%;
        margin: 10px;
        margin-left: 4.5%;
        margin-right: 4.5%;
    }
    
    .scroll-down {
        font-size: 1.8em;
    }
    
    .menu-wiz-logo {
        position: relative;
        left:50%;
        transform: translateX(-50%);
        -o-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        width: 80%;
        height: 12.8vw;
    }
}

@media (min-width: 1300px) {
    .show-cube-face {
        width: 50%;
    }
    
    #menu li {
        width:14%;
        margin: 10px;
        margin-left: 5.5%;
        margin-right: 5.5%;
    }
}

@media (min-width: 1500px) {
    .show-cube-face {
        width: 45%;
    }
    
    #menu li {
        width:12%; 
        margin: 10px;
        margin-left: 6.5%;
        margin-right: 6.5%;
    }
}

@media (min-width: 1650px) { 
    .show-cube-face {
        width: 35%;
        top:14.5%;
    }
}

@media (min-width: 1850px) {
    #menu li {
        width: 10%;
        margin: 10px;
        margin-left: 7.5%;
        margin-right: 7.5%;
    }
}