﻿header, main, footer {
    margin: auto;
}
header > div {
    background: url(../Content/Images/DafYomi.jpg) no-repeat;
    width: 218px;
    height: 211px;
    display: inline-block;
    float: right;
    /*margin: 0;*/
}
header h1 {
    text-align: center;
    font-size: 25px;    /*קטן יותר יוצר בעיה בעיצוב הכללי*/
    max-height: 37px;
    font-weight: bold;
}
nav.desktop-nav {
    background: url(../Content/Images/LeftMenu.jpg) no-repeat;
    float: left;
    width: 167px;
    height: 211px;
    margin-left: 22px;
    font-weight: bold;
}
nav ul {
    /*padding: 12px 22px 10px 20px;*/
    padding: 9px 22px 10px 20px;
    font-size: 14px;
}
nav li {
    list-style: none;
}
nav li:not(:last-of-type) {
    border-bottom: 1px solid #e9ecf4;
}
nav li > a {
    display: block;
    padding: 5px 5px 5px 0;
}
nav li:hover {
    /*background: -moz-linear-gradient(top, #e9ecf4 0%, #87312c 100%); /* FF3.6-15 */
    /*background: -webkit-linear-gradient(top, #e9ecf4 0%, #87312c 100%); /* Chrome10-25,Safari5.1-6 */
    /*background: linear-gradient(to down, #e9ecf4 0%, #87312c 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    background-color: #87312c;
}
nav li > a:hover {
    text-decoration: none;
    color: white;
}
select, input[type="text"] {
    background-color: hsla(0,0%,90%,1);
    border: 1px solid #87312c;
    font: normal 13px Arial;
}
button {
    background-color: transparent;
    border: none;
    padding: 0;
}
.search-nav-desktop {
    border-bottom: 1px solid gainsboro;
    min-height: 100px;
}
.search-nav-desktop > div:first-of-type {
    float: right;
}
.search-nav-desktop > div:nth-of-type(2) {
    float: left;
    margin: 10px 5px 0;
}
.search-nav-desktop > div:last-of-type {
    overflow: hidden;
    color: #666666;
}
.search-by-text {
    background: url('../Content/Images/SearchBox.jpg') no-repeat;
    min-width: 215px;
    padding: 1px;
}
#search {
    width: 86px;
}
#btnAdvSearch {
    border-right: 1px solid #c5c2c2;
    padding-right: 4px;
}
.advance-search {
    opacity: .5;
}
.category-selected {
    padding: 7px;
}
label[for='intCategory'] {
    font-style: italic;
    font-size: 1.6em;
    padding-right: 5px;
}
.angucomplete-holder {
    display: inline-block;
}
.angucomplete-holder input {
    height: 19px;
}
.navigator {
    font-size: 12px;
    font-weight: bold;
    color: #666666;
    padding: 4px 6px 3px 0;
}
.navigator + div {
    text-align: left;
    margin: 20px 40px 4px;
    height: 25px;
}
.navigator + div > select {
    width: 120px;
}
#lstCommentsView {
    display: inline-block;
    background-color: hsl(0, 0%, 90%);
    border: 1px solid hsl(3, 51%, 35%);
    width: 120px;
    height: 20px;
    padding-right: 3px;
    padding-top: 1px;
    font: normal 13px Arial;
    text-align: right;
}
#lstCommentsView:hover {
    background-color: rgb(238, 222, 212);
}
#lstCommentsView > div > span {
    float: left;
    font-size: .7em;
    padding: 3px;
}
.chapters-pereks-dafs {
    width: 185px;
    display: inline-block;
}
.chapters-pereks-dafs p {
    line-height: 10px;
}
.wrap-loaders-search {
    display: inline-block;
    width: 20px;
    line-height: 1.9;
    text-align: center;
}
.wrap-loaders-search > img {
    width: 13px;
    margin-right: 3px;
    /*margin-bottom: 31px;*/
}
#lstChapters, #lstPereks {
    width: 147px;
    float: left;
}
#lstChapters option, #lstPereks option {
    /*width: 102px;*/
}
#lstFromDaf, #lstToDaf {
    width: 50px;
}
label[for*="lst"] {
    width: 34px;
    margin: 3px 0;
}
#lstFromDaf option, #lstToDaf option {
    /*width: 22px;*/
}
aside, .marquee {
    text-align: right;
}
aside:first-of-type {
    float: right;
    width: 200px;
    padding-top: 10px;
}
aside:last-of-type {
    float: left;
    width: 218px;
}
aside:last-of-type > div:first-of-type {
    background: url(../Content/Images/favorites.png) no-repeat;
    width: 190px;
    margin: 10px 7px;
    padding: 47px 23px;
}
aside:last-of-type > div:first-of-type > div {
    height: 170px;
}
aside:last-of-type p {
    width: 130px;
}
.rambam-logo {
    width: 110px;
    margin: 10px auto 0;
}
[class*='icon'] {
    width: 16px;
    height: 41px;
    display: none;
}
.right-icon {
    background: url('../Content/Images/IconLeft.gif') no-repeat;
    float: right;
}
.left-icon {
    background: url('../Content/Images/IconRight.gif') no-repeat;
    float: left;
}
article {
    overflow: hidden;
    /*min-height: 60vh;*/
    /*border-right: 1px solid gainsboro;
    border-left: 1px solid gainsboro;*/
}
article > div:last-of-type:not(.view-subjects):not(.left-icon), ng-view > div:last-of-type:not(.view-subjects) {
    direction: rtl;
    margin-right: auto;
    margin-left: auto;
    padding: 10px 40px;
    /*font-size: 10pt;*/
    font-size: 18px;
    line-height: 150%;
}
article > div:last-of-type, ng-view > div:last-of-type {
    max-width: 904px;
    /*padding: 0 20px;*/
}
/*aside:first-of-type, article > div:last-of-type:not(.downloads-wrapper) {*/
aside:first-of-type/*, article > .view-subjects*/ {
    direction: ltr;
}
aside:first-of-type, article > div:last-of-type, ng-view > div:last-of-type {
    /*max-height: 60vh;*/
    overflow-y: auto;
    margin-bottom: 80px;
    padding-right: 5px;
}
aside:first-of-type::-webkit-scrollbar, article > div:last-of-type::-webkit-scrollbar {
    background-color: #F1F1F1;
    width: 6px;
}
aside:first-of-type::-webkit-scrollbar-thumb, article > div:last-of-type::-webkit-scrollbar-thumb {
    background-color: #dddddd;
}
section {
    direction: rtl;
}
section > div {     /*רק לתצוגת נושאים רגילה, לא כמנהל*/
    margin-right: 38px;
}
footer {
    background: url('../Content/Images/FooterBG.jpg') repeat-x;
    width: 100%;
    height: 80px;
    position: fixed;
    bottom: 0;
    font-size: .9em;
}
footer p:first-of-type {
    padding-top: 30px;
    text-align: center;
}
footer a:link, footer a:visited {
    text-decoration: none;
    color: inherit !important;
}
footer a, footer a:active, footer a:visited {
    color: #666666;
}
footer p:last-of-type {
    padding: 8px 5px 0;
    /*font-weight: bold;*/
    color: white;
}
footer p:last-of-type span:first-of-type {
    float: right;
}
footer p:last-of-type span:last-of-type {
    float: left;
}
footer p:last-of-type a {
    color: white;
}

@media screen and (max-width:767px) {   /*640px*/
    aside {
        display: none;
    }
    footer {
        width: 132vw;
        position: relative;
    }
    aside:first-of-type, article > div:last-of-type {
        margin-bottom: 0; 
    }
    .write-response {
        display: none;
    }
}


#contact-us > p label {
    width: 110px;
    font-size: 18px;
}
#contact-us > p:last-of-type label {
    vertical-align: top;
}
#contact-us input {
    height: 25px;
    padding: 5px;
    /*text-align: center;*/
}
#contact-us input:not(.email):not(.subject) {
    width: 130px;
}
#contact-us input, #contact-us textarea {
    border: 1px solid #8b8c8c;
    border-radius: 5px;
    /*box-shadow: 3px 3px 7px #A4ADAF;*/
}
#contact-us .email {
    width: 250px;
}
#contact-us textarea, #contact-us .subject {
    width: 500px;
}
#contact-us textarea {
    height: 200px;
    padding: 0 5px;
    margin-bottom: 20px;
}
#contact-us img:last-of-type {
    display: block;
    margin: 15px auto;
}
