@media (max-width: 1400px) {
 
  .header .header-button {
    padding: 30px 5px 0;
  }
  
  .logout .user {
    margin-right: 10px;
  }
  
  #TreeHomeNav {
    font-size: 13px;
  }
  
  #TreeHomeNav {
    padding-left: 10px;
    position: relative;
    top: -5px;
  }
  
  #TreeHomeNav .big {
    padding-left: 10px;
    position: absolute;
    top: 7px;
    left: 0;
  }
  
  .treeview-nav:first-child {
    padding-top: 0;
  }
  
  .treeview-nav {
    margin-left: 0 !important;
  }
  
  .welcomeControl p {
    line-height: 20px;
  }
  
}

@media (max-width: 1024px) {

  .spinner-master input[type=checkbox] { 
    display: none; 
  } 
  
  .spinner-master input { 
    display: none; 
  }   
  
  #spinner-form {
    display: none;
  }
  .spinner-master * {
    transition: all 0.3s;
    box-sizing: border-box;
  }
  
  .spinner-master {
    position: fixed;
    z-index: 1010;
    top: 18px;
    right: 15px;
    height: 30px;
    width: 30px;
    float: left;
    display: block !important;
  }
  
  .spinner-master label {
    cursor: pointer;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    margin-bottom: 0;
  }
  
  .spinner-master .spinner {
    position: absolute;
    height: 4px;
    width: 100%;
    padding: 0;
    background: black;
  }
  
  .spinner-master .diagonal.part-1 {
    position: relative;
    float: left;
  }
  
  .spinner-master .horizontal {
    position: relative;
    float: left;
    margin-top: 5px;
  }
  
  .spinner-master .diagonal.part-2 {
    position: relative;
    float: left;
    margin-top: 5px;
  }
  
  .spinner-master.open .spinner-spin > .horizontal { opacity: 0; }
  
  .spinner-master.open .spinner-spin > .diagonal.part-1 {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    margin-top: 10px;
  }
  
  .spinner-master.open .spinner-spin > .diagonal.part-2 {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    margin-top: -13px;
  } 

  .menu-responsive {
    position: fixed;
    width: 300px;
    height: 100%;
    right: -300px;
    left: unset;
    background: #fff;
    z-index: 1005;
    text-align: center;
    opacity: .9;
    padding-top: 50px;
    max-height: 100vh;
    overflow: hidden;
    padding-bottom: 20px;
    overflow-y: auto;
  }
  
  .menu-responsive .treeview-nav {
    width: 100%;
  }
  
  .menu-responsive .logout {
    width: 100%;
    text-align: center;
  }
  
  .menu-responsive .logout .user {
    width: 100%;
  }
  
  .menu-responsive .divButton {
    display: block;
  }
  
  .header {
    z-index: 1000;
  }
  
  .header .divButton .sub a {
    line-height: 30px;
    display: block !important;
  }
  
  .overflowYhidden {
    overflow: hidden;
  }
  
  .overlay-menu {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: black;
    opacity: 0.65;
    display: none;
    z-index: 999; 
  } 
  
  .tbox {
    width: 100%;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 30px);
    -ms-transform: translate(-50%, -50%); /* IE 9 */
    -webkit-transform: translate(-50%, -50%); /* Safari */
    transform: translate(-50%, -50%);
    margin: 0;
    left: 50% !important;
    top: 50% !important;
    z-index: 1020 !important;
  }  
  
  .tbox .tinner {
    width: 100% !important;
    padding-right: 0;
    padding-left: 0;
    height: auto !important;
    max-height: calc(100vh - 0px);
    overflow-y: auto;  
    padding-bottom: 60px;  
  } 
  
  .tbox body {
    overflow: hidden !important;
  }   
  
  .tbox .tcontent {
    padding: 0 15px;
  }
  
  .tbox iframe {
    width: 100%;
  }
  
  .tbox .tcloseButton {
    left: 50% !important;
    -ms-transform: translate(-50%, 0%); /* IE 9 */
    -webkit-transform: translate(-50%, 0%); /* Safari */
    transform: translate(-50%, 0%);  
    width: 90%;
    bottom: 25px !important;  
  }
  
  .header .divButton .sub {
    display: block !important;
    border: 0;
  }
  
  .header .divButton .sub nav-item:first-child {
    display: none !important;
  }
  
  .menu-responsive .divButton:last-child a {
    display: none;
  }
  
  #fullscreen {
    display: none;
  }
  
  .welcomeControl iframe {
    width: 100%;
  }
  
  .welcomeControl #continueStudyBtn {
    width: 100%;
    margin-top: 0;
  }
  
  #carry {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .courses-page .item {
    width: 46%;
    float: left;
    margin: 0 2% 4%;
  }
  
  #image1 img, #image2 img, #image3 img, #image4 img {
   width: auto !important;
   height: 250px; 
  }  
  
}

@media (max-width: 768px) {
  
  #leftPane {
    width: 300px !important;
    left: -300px;
    position: fixed;
    z-index: 1020;
    top: 0;
    padding-top: 40px;    
  }   
  
  #leftPane .close-leftpanel {
    width: 11px;
    height: 11px;
    background: url('../images/infobox-close.png') no-repeat;
    background-size: contain;
    position: absolute;
    right: 10px;
    top: 10px;
    display: block;
    border: 0;
  }
  
  .vsplitter {
    display: none;
  } 
  
  .lekce-button {
    background: #4598EE;
    padding: 0 20px;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    color: #fff;
    font-size: 15px;
    /* text-transform: uppercase; */ 
  }   
  
  #rightPane {
    width: 100% !important;
  }   
  
  #carry {
    padding: 20px 15px;
  }           
  
  #divSpeedModal {
    width: 100%;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 30px);
    -ms-transform: translate(-50%, -50%); /* IE 9 */
    -webkit-transform: translate(-50%, -50%); /* Safari */
    transform: translate(-50%, -50%);
    overflow-y: auto;
    margin: 0;
  }
  
  .infobox {
    text-align: center;
  }
  
  .infobox .statistics {
    text-align: center;
  }
  
  .infobox .statistics .item {
    float: none;
    display: inline-block;
  }
  
  .infobox .button-blue {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .badges .items {
    text-align: center;
  }
  
  .sentence-box {
    margin-top: 30px;
  }
  
  #divParametersModal {
    width: 100%;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 30px);
    -ms-transform: translate(-50%, -50%); /* IE 9 */
    -webkit-transform: translate(-50%, -50%); /* Safari */
    transform: translate(-50%, -50%);
    overflow-y: auto;
    margin: 0;
  }
  
  #divModal {
    width: 100%;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 30px);
    -ms-transform: translate(-50%, -50%); /* IE 9 */
    -webkit-transform: translate(-50%, -50%); /* Safari */
    transform: translate(-50%, -50%);
    overflow-y: auto;
    margin: 0;
  }
  
  .modal-two .content {
    width: 100%;
    text-align: center;
    padding: 30px 15px 15px;
  }
  
  .modal-two .buttons {
    padding: 30px 15px 20px;
    text-align: center;
    display: inline-block;
    width: 100%;
  }  
  
  .modal-two .buttons .button-container {
    float: left;
    width: 50%;
    margin: 0;
    text-align: center;
  }
  
  .modal-two .buttons h3 {
    line-height: 20px;
  }
  
  .otherSettingControl .controlTable tbody tr {
    width: 100%;
  }
  
  .otherSettingControl .controlTable .col1 {
    float: left;
    width: 40%;
  }
  
  .otherSettingControl .controlTable .col2 {
    float: left;
    width: 60%;
  }
  
  .changePasswordControl .controlTable .textBox, .otherSettingControl .controlTable .textBox, .systemSettingControl .controlTable .textBox {
    width: 100%;
  }
  
  #audioControls {
   bottom: -25px !important;
   padding-top: 5px;
   overflow-y: auto;
    padding-top: 5px;
    padding-bottom: 30px;
    max-height: 93vh;   
  }
  
  .tabsNavigationControl .tabsContent .tab, .tabsNavigationControl .tabsContent .selectedTab, .tabsNavigationControl .tabsContent .tab:hover {
    padding: 0 10px;
  }  
  
  #image1, #image2, #image3, #image4 {
    text-align: center;
  }
  
  #image1 img, #image2 img, #image3 img, #image4 img {
   width: auto !important;
   height: 200px; 

  }  
  
  .welcomeControl {
    text-align: center;
  } 
  
  .welcomeControl h1 {
    margin-bottom: 0;
  }
  
  .courses-page .items {
    margin-bottom: 0;
  }
         
}

@media (max-width: 520px) {

  #sentenceCounterDiv {
    margin-left: 0;
  }
  
  #divPlayButtons {
    margin-left: 0;
  }
  
  #expander {
    margin-right: 0;
  }
  
  #fullscreen {
    margin-left: 0;
    margin-right: 0;
  }
  
  .infobox .statistics .item {
    width: 120px !important;
    height: 120px !important;
    padding-top: 30px;
    margin: 0px 5px 16px;
    min-width: unset !important;
    min-height: unset !important;
  }  
  
  .statistics .item .value {
    font-size: 32px;
  }
  
  .infobox {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  #continueStudyBtn {
    background-position: 15px center;
    padding: 15px;
    padding-right: 0;
    margin-top: 20px;
  }
  
  .statistics .item {
    width: 120px;
    height: 120px;  
    min-width: unset !important;
    min-height: unset !important;    
  }
  
  .statistics .item .desc {
    line-height: 16px;
  }
  
  #soundDiv {
    width: 100%;
  }
  
  .tabsNavigationControl .tabsContent .tab, .tabsNavigationControl .tabsContent .selectedTab, .tabsNavigationControl .tabsContent .tab:hover {
    padding: 0 5px;
    font-size: 12px;
  } 
  
  .modal-tips header, .modal-tips section, .modal-tips footer {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .courses-page .item .title {
    font-size: 18px;
  }
  
  .courses-page .item .price {
    font-size: 34px;
  }
  
  .courses-page .item .title {
    line-height: 22px;
  }
  
  .courses-page .item .price-desc {
    margin-right: 0;
  }
  
  .welcomeControl h2 {
    margin-top: 20px;
  }
  
}

@media (max-width: 420px) {

  .modal-two .buttons .button-container {
    margin: 10px 0;
    width: 100%;
  }
  
  .courses-page .item {
    width: 48%;
    margin: 0 1% 2%;
  }
  
  .courses-page .item .sep {
    margin: 10px auto 15px;
  }
  
  .courses-page .item .contents {
    margin-bottom: 15px;
  }
  
}

@media (max-width: 360px) {

  .courses-page .item {
    width: 100%;
    margin: 0 0 5%;
  }
}