﻿@media screen and (max-width: 960px) {  /*Apple iPhone X*/
    nav.desktop-nav, #dafYomi, aside, .search-nav-desktop, footer,
    [id='mySpinner'] + div, .view-subjects input, .write-response {
        display: none;
    }
    /*body {
        font-family: Heebo, Assistant, Segoe UI, Arial;
    }*/
    body{
        font: normal 16px Heebo;    /*, Assistant;*/
    }
    header {
        margin-bottom: -4vw;
    }
    #logo {
        width: 100vw;
    }
    #menu {
        width: 7.5vw;
        position: relative;
        left: -87vw;
    }
    #close-menu {
        position: relative;
        top: 5vw;
        left: -87vw;
        width: 5.5vw;
    }
    .mobile-nav {
        position: absolute;
        top: 0;
        background-color: white;
        width: 100%;
        font-size: 1.3em;
        z-index: 9999;
    }
    .mobile-nav li > a {
        padding: 10px 5px 10px 0;
    }
    .igrot-harambam {
        padding: 10px;
    }
    .etc {
        font-size: 4em;
    }
    .search-nav-mobile, .sort-by, [placeholder="סנן"] {
        color: #9E1111;
    }
    .etc {
        color: #87312C;
    }
    .search-nav-mobile, .search-nav-mobile + div {
        width: 87.5vw;
        margin: auto;
        margin-bottom: 3vw;
    }
    .search-nav-mobile > div {
        margin-top: 3vw;
    }
    .search-options {
        font-weight: bold;
        color: #710000;
        margin: 0 1vw;
    }
    .glass-brown, .angucomplete-holder input {
        background-image: url(../Content/Mobile/glass-brown.svg);
    }
    .glass-white {
        background-image: url(../Content/Mobile/glass-white.svg);
    }
    .glass-white.hide-glass-image, .glass-brown.hide-glass-image {
        background-image: none;
    }
    [class*='glass-'], .angucomplete-holder input {
        background-repeat: no-repeat;
    }
    input {
        border: 1px solid #9E1111;
    }
    .select-arrow, .angucomplete-holder input, [placeholder='סנן'] {
        border: none;
    }
    input, button {
        outline: none;
        width: 100%;
    }
    ::placeholder {
        color: #9E1111;
        opacity: 1; /* Firefox */
    }
    :-ms-input-placeholder { /* Internet Explorer 10-11 */
        color: #9E1111;
    }
    ::-ms-input-placeholder { /* Microsoft Edge */
        color: #9E1111;
    }
    .text-search > div, .angucomplete-holder input {
        border-radius: 2vw;
    }
    .text-search > div,
    .pages-search > div > div > div:last-of-type,
    [type='radio'] + span,
    [class*='ddl-'] > div,
    .angucomplete-holder,
    .search-nav-mobile + div > div:first-of-type {
        display: flex;
    }
    .text-search > div,
    [class*='ddl-'] > div,
    .search-nav-mobile + div > div {
        align-items: center;
    }
    .text-search > div {
        justify-content: space-evenly;
        padding: 0 2vw;
        font-size: .9em;
    }
    .text-search > div, .angucomplete-holder input,
    .pages-search > div > div, .sort-by,
    [class*='ddl-'] > div, .search-nav-mobile + div > div > input {
        background-color: #ebebeb;
    }
    .text-search label {
        font-weight: normal;
        margin-bottom: 0;
    }
    [type='radio'] {
        display: none
    }
    [type='radio'] + span {
        line-height: 1.2;
    }
    [type='radio'] + span:not(.subjects-selected):before {
        content: url('../Content/Mobile/radio-gray.svg');
    }
    .subjects-selected:before {
        content: url('../Content/Mobile/radio-red.svg');
    }
    button {
        background-color: #9E1111;
        text-align: right;
        color: white;
    }
    .pages-search button {
        background-color: #710000;
    }
    .select-arrow {
        background: url(../Content/Mobile/select-arrow.svg) no-repeat;
    }
    .pages-search > div > div > div:not(:last-of-type),
    [class*='ddl-'] > div {
        width: 100%;
        border-bottom: .005vw solid #d2d2d2;
    }
    /*div:not(.ddl-sort-by)*/
    .pages-search [class*='ddl-']:not(.ddl-selected) {
        position: absolute;
        overflow: auto;
        z-index: 9999;
    }
    [class*='ddl-'] > div, .search-nav-mobile + div > div {
        justify-content: space-between;
    }
    .pages-search > div > div > div:last-of-type > div > div,
    .sort-by > div {
        position: absolute;
    }
    .pages-search > div > div > div:last-of-type > div:first-of-type {
        border-left: .005vw solid #d2d2d2;
    }
    .pages-search > div > button {
        margin-top: 3vw;
        text-align: center;
    }
    [class*='-dafs'] > div:first-of-type {
        border-top: .005vw solid #d2d2d2;
    }
    [class*='ddl-'] > div:after {
        /*content: url('../Content/Mobile/radio-gray.svg');*/
    }
    [class*='ddl-']:not(.ddl-sort-by) > div:after {
        margin-left: 1.1vw;
    }
    .ddl-sort-by > div:after {
        margin-left: .5vw;
    }
    [class*='ddl-'] > div:hover {
        background-color: #9e1111;
        color: white;
    }
    [class*='ddl-'] > div:hover:after {
        /*content: url('../Content/Mobile/radio-white.svg');*/
    }
    [class*='ddl-'] > div.ddl-selected:after {
        /*content: url('../Content/Mobile/radio-red.svg');*/
    }


    #mySpinner {
        position: fixed;
    }
    .view-subjects {
        margin: 0 7vw 5vw;
    }
    .search-title {
        font-weight: bold;
        color: #710000;
    }
    section > div {
        margin: 0 3vw;
    }
    .search-nav-mobile + div > div {
        margin-bottom: 4vw;
    }
    ng-view > div:last-of-type {
        margin-bottom: initial;
    }
    .dafs-nav {
        display: flex;
        justify-content: flex-end !important;
        width: 50%;
    }
    .dafs-nav a {
        padding: 5px;
    }
    .rashi {
        font-size: 12px;
    }
    small {
        font-size: 12px;
    }
}