/* Ipad landscape */

@media only screen and (width: 1024px) and (device-aspect-ratio: 3/4) {
  #menusite {
    overflow: visible;
  }
  #menusite .level:hover {
    box-shadow: none;
  }
  #menusite .group .sections li:hover,
  #menusite .group .classes li:hover {
    box-shadow: inset 0px 1px 1px 0px rgba(255, 255, 255, 0.2);
  }
}
/* Ipad Pro 12.9 */

@media only screen and (width: 1366px) and (device-aspect-ratio: 3/4) {
  #menusite {
    overflow: visible;
  }
  #menusite .level:hover {
    box-shadow: none;
  }
  #menusite .group .sections li:hover,
  #menusite .group .classes li:hover {
    box-shadow: inset 0px 1px 1px 0px rgba(255, 255, 255, 0.2);
  }
}
@media only screen and (max-width: 1100px) {
  body #header .payoff {
    display: none;
  }
}
@media only screen and (max-width: 970px) {
  body {
    padding-top: 0;
  }
  .responsive {
    position: relative;
    min-width: 0;
    max-width: 100%;
    margin: 0 0 10px;
    overflow-x: hidden;
  }
  .responsive #header p.question,
  .responsive #main > .corner.topleft,
  .responsive #main > .corner.bottomleft {
    display: none;
  }
  .responsive #wrapper {
    overflow: hidden;
  }
  .responsive #main {
    background-image: none;
    min-height: 800px;
  }
  .responsive #book {
    margin: 0 -10px 0 0;
  }
  .responsive #header {
    margin: 0 15px;
  }
  .responsive #header .logo {
    padding: 15px 10px 12px 0;
  }
  .responsive #header .logo > img {
    height: 40px;
  }
  .responsive #header .payoff {
    padding: 18px 0 7px;
    font-size: 13px;
  }
  .responsive #header .payoff a {
    font-size: 13px;
    line-height: 18px;
  }
  .responsive #article {
    padding: 25px 25px 60px 25px;
    overflow: hidden;
  }
  .responsive .menubreadcrumbs {
    padding: 20px 15px 15px 15px;
  }
  .responsive .menubreadcrumbs + #article {
    padding-top: 0;
  }
  .responsive #article div.small.exercises > div > a + * {
    margin: 10px 0 0;
    margin: 1rem 0 0;
  }
  .responsive #article div.small.interact > div > div {
    width: 100%;
  }
  .responsive #article div.small.interact > div > div + div {
    margin-top: 10px;
  }
  .responsive #menuslider {
    top: 0;
    right: -21px;
    width: 60px;
    height: 75px;
    display: block;
    position: absolute;
  }
  .responsive #menuslider > span {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 35px;
    height: 35px;
    display: block;
  }
  .responsive #menuslider > span + span {
    display: none;
    position: absolute;
    top: 47px;
    right: 19px;
    width: 30px;
    height: 15px;
    background-image: none;
    font-size: 10px;
    letter-spacing: 1px;
    font-family: 'Poppins', 'Droid Arabic Kufi', sans-serif;
    font-weight: 600;
  }
  .responsive .menuisopened #menuslider {
    width: 100%;
  }
  .responsive #menunextsection {
    margin: 0;
  }
  .responsive #menunextsection > div {
    padding: 25px 15px;
  }
  .responsive #menusite {
    right: 0px;
    top: 10px;
    width: 244px;
    z-index: 2;
    display: block;
    overflow: visible;
    transform: translate3d(104%, 0, 0);
    -webkit-transform: translate3d(104%, 0, 0);
  }
  .responsive #footer {
    margin: 10px;
  }
  .responsive #menusite .level:hover {
    box-shadow: none;
  }
  .responsive #menusite .group .sections li:hover,
  .responsive #menusite .group .classes li:hover {
    box-shadow: inset 0px 1px 1px 0px rgba(255, 255, 255, 0.2);
  }
  .responsive #menusite .back a:hover {
    background: linear-gradient(to bottom, #ebebeb 0%, white 100%);
  }
  .responsive .button.arrow {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .responsive .button.arrow > span > span {
    white-space: normal;
  }
  .responsive #header .languages {
    position: absolute;
    right: 48px;
    margin-top: 18px;
    height: 45px;
  }
  .responsive #header .languages ul {
    top: 4px;
    padding: 8px 7px 9px 5px;
    right: -8px;
  }
  .responsive #header .languages li {
    line-height: 18px;
  }
  .responsive #header .languages li > * {
    padding-right: 19px;
  }
  .responsive #header .languages li:first-child:after {
    top: 9px;
  }
  .responsive #header .languages li,
  .responsive #header .languages li span {
    font-size: 13px;
  }
  .responsive.arabic #menuslider > span + span {
    letter-spacing: 0.5px;
  }
}
@media only screen and (max-width: 750px) {
  html {
    font-size: 9px;
  }
  #menusubnodes .clickable.HasChildren span {
    width: 22px;
    height: 26px;
    float: right;
    top: 16px;
    right: 10px;
    position: absolute;
    background-position: -200px -142px;
  }
  .responsive h1 {
    font-size: 30px;
    font-size: 3rem;
    line-height: 38px;
    line-height: 3.8rem;
    margin: 0 0 20px;
    margin: 0 0 2rem;
    letter-spacing: normal;
  }
  .responsive #article {
    padding-left: 15px;
    padding-right: 15px;
  }
  .responsive #article h3 {
    font-size: 19px;
    font-size: 1.9rem;
  }
  .responsive #menubreadcrumbs {
    padding: 15px 15px 15px 15px;
  }
  .responsive #article .icon > * {
    line-height: 2.2rem;
  }
  .responsive #article h2 {
    padding-left: 6px;
    margin-left: -15px;
    font-size: 23px;
    font-size: 2.3rem;
  }
  .responsive #article h2.noline {
    padding-left: 0;
    margin-left: 0;
  }
  .responsive #article div.small > * > * > * > div {
    padding-right: 5px;
  }
  .responsive #menusubnodes li > div > div > div {
    padding: 15px;
  }
  .responsive .button.arrow > span + span {
    top: 14px;
    right: 15px;
  }
  .responsive .iframe > iframe + div + div + div {
    background-position: -447px 8px;
  }
  .responsive .iframe > iframe + div + div + div + div {
    background-position: right -236px;
  }
  .responsive .MathJax_Display .math {
    margin-left: 20px;
    margin-left: 2rem;
  }
  .responsive .fb-like-box {
    display: none !important;
  }
}
@media only screen and (max-width: 500px) {
  .responsive #article .mediapushes > div {
    width: 50%;
  }
  .responsive #article .tabs {
    margin-bottom: 25px;
    border: none;
  }
  .responsive #article .tabs + ui-view > .tabs {
    margin-top: -10px;
  }
  .responsive #article .tabs li {
    width: 25%;
    border: 1px solid #d0cccc;
    border-right: none;
    display: flex;
    align-items: center;
    height: 39px;
  }
  .responsive #article .tabs li:first-child {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
  }
  .responsive #article .tabs li:last-child {
    border-right: 1px solid #d0cccc;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
  }
  .responsive #article .tabs li button {
    width: 100%;
    height: 100%;
    border: none;
    padding-bottom: 1px !important;
    font-size: 11.5px;
    line-height: 12px;
    font-family: 'Poppins', 'Droid Arabic Kufi', sans-serif;
    font-weight: 600;
    padding: 0 8px 0;
    background: linear-gradient(#ebebeb, #fcfcfc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  .responsive #article .tabs li button.current {
    background: #fbfbfb;
    margin-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li {
    height: 78px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button {
    font-size: 11.5px;
    line-height: 13px;
    padding-top: 38px;
    position: relative;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button:before {
    content: '';
    position: absolute;
    height: 45px;
    width: 50px;
    top: 0;
    left: calc(50% - 25px);
    background-image: url("/images/sprite-tabs.svg?1");
    background-repeat: no-repeat;
    background-size: 1000px 110px;
    background-position-y: 0;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.current:before {
    background-position-y: -60px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.section:before {
    background-position-x: -17px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.prerequisites:before {
    background-position-x: -101px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.indepth:before {
    background-position-x: -185px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.assignments:before {
    background-position-x: -269px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.application:before {
    background-position-x: -353px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.concepts:before {
    background-position-x: -437px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.theory:before {
    background-position-x: -521px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.lessons:before {
    background-position-x: -605px;
  }
  .responsive #article div[data-init-ng="booksApp"] > .tabs li button.signlanguage:before {
    background-position-x: -685px;
  }
}
@media only screen and (max-width: 360px) {
  .responsive #header .payoff {
    width: 85px;
    padding-top: 9px;
  }
  .responsive #header .languages {
    right: 43px;
  }
}
@media only screen and (max-width: 330px) {
  .responsive {
    min-width: 280px;
    margin: 0;
  }
  .responsive #article div.small.exercises > div > div > a {
    width: 100%;
    padding: 11px 5px 8px 10px;
    padding: 1.1rem 0.5rem 0.8rem 1rem;
  }
  .responsive #article div.small.exercises > div > div > a + * {
    margin: 0;
    border-top: 1px solid #e3e3e3;
  }
  .responsive .button.arrow > span + span {
    right: 5px;
  }
  .responsive .button.arrow {
    padding-left: 40px;
    padding-left: 4rem;
    padding-right: 40px;
    padding-right: 4rem;
  }
  .responsive .MathJax_Display .math {
    margin-left: 0;
  }
  .responsive .scrollable.shadow .MathJax {
    pading: 0 10px;
    padding: 0 1rem;
  }
}
@media only screen and (min-width: 1180px) and (min-height: 650px) {
  html {
    font-size: 12px;
  }
  #article {
    max-width: 58rem;
  }
  .menubreadcrumbs {
    max-width: 58rem;
  }
  #menunextsection > div > .contents {
    max-width: 58rem;
  }
}
@media only screen and (min-width: 1800px) {
  html {
    font-size: 14px;
  }
  .winnt .button.arrow,
  winxp .button.arrow {
    font-size: 1.8rem;
  }
}
@media only screen and (min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1) {
  #main > .corner,
  #main > .corner.topleft,
  #main > .corner.topright,
  #main > .corner.bottomleft {
    background-image: url("/images/sprite@2x.png");
  }
  main {
    background-image: url(/images/bg_binder@2x.png);
  }
}
