/************************************************************************/
/* General / Site wide / Navigation
/************************************************************************/
@font-face {
  font-family: PaleoBora;
  src: url("../fonts/Hebrew/PaleoBoraLight.eot") format("embedded-opentype"), url("../fonts/Hebrew/PaleoBoraLight.ttf") format("truetype");
}
/** BEGIN: new edits by other developer */
.main-video {
  border-radius: 0.5rem;
  box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.8);
  margin: 3rem 1rem;
  width: 20em;
  max-width: 90%;
}

/* allura-regular - latin */
@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/allura-v18-latin-regular.eot"); /* IE9 Compat Modes */
  src: local(""), url("../fonts/allura-v18-latin-regular.eot?#iefix") format("embedded-opentype"), url("../fonts/allura-v18-latin-regular.woff2") format("woff2"), url("../fonts/allura-v18-latin-regular.woff") format("woff"), url("../fonts/allura-v18-latin-regular.ttf") format("truetype"), url("../fonts/allura-v18-latin-regular.svg#Allura") format("svg"); /* Legacy iOS */
}
@media (max-width: 480px) {
  .fz18 {
    font-size: 18px;
  }
}
.leave1 {
  width: 8%;
}

@media (max-width: 768px) {
  .leave1 {
    width: 15px;
  }
}
/** STOP: new edits by other developer */
body {
  background-color: #fff;
  background-image: url(../img/ancient-paper-bg.jpg);
  background-attachment: fixed;
  background-position: 0;
  background-size: auto 100%;
  color: #000;
  padding-bottom: 2rem;
  font-size: 1.5em;
  font-family: sans-serif, "Helvetica Neue", Helvetica, Arial;
}

.paleo {
  font-family: PaleoBora !important;
}

#root-container {
  max-width: 1100px;
}
#root-container .container {
  width: auto;
}

.navbar {
  background-color: #f2f2f2;
  background-image: none;
  border: 0;
  margin-bottom: 0;
}
.navbar .navbar-bg {
  display: none;
}
@media (min-width: 768px) {
  .navbar {
    min-width: 192px;
  }
  .navbar .navbar-container {
    height: 100%;
    overflow: hidden;
  }
  .navbar .navbar-bg {
    display: block;
    background-image: url(../img/navigation-bg.png?ver=5);
    background-position: top;
    background-repeat: no-repeat;
    height: 100%;
  }
}
.navbar .navbar-logo {
  height: 50px;
  padding-top: 9px;
  background-color: #f2f2f2;
  color: white;
  text-align: center;
}
.navbar .navbar-logo img {
  width: 190px;
}
.navbar ul.navbar-nav {
  background-color: #f2f2f2;
}
.navbar ul.navbar-nav li {
  display: list-item;
  /*list-style: disc inside url("../img/bread-tan-15.png");*/
  vertical-align: middle;
}
.navbar img.crown-diamond-icon {
  width: 15px;
  height: 15px;
}

@media (min-width: 768px) {
  .navbar {
    box-shadow: 0px 0px 30px 5px rgba(0, 0, 0, 0.2);
  }
}
@media (min-width: 768px) {
  .content {
    padding-left: 0;
  }
}
footer {
  color: black;
  text-align: center;
  font-weight: bold;
}
footer hr {
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  border-top: 1px solid #878787;
}
footer .old-site {
  font-weight: normal;
  font-style: italic;
}

.be-gone {
  display: none;
}

a {
  color: #337ab7;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

@media (max-width: 767px) {
  .cover-image {
    margin-top: 0.8em;
    text-align: center;
  }
}
@media (min-width: 768px) {
  .cover-image {
    text-align: right;
  }
}
.cover-image .portrait {
  width: 12rem;
}
.cover-image .portrait-wide {
  width: 19rem;
}
.cover-image .small-portrait {
  width: 8rem;
}
.cover-image .landscape {
  width: 19rem;
}
.cover-image .border {
  border: 1px solid #d5d5d5;
}

h1 {
  color: #707070;
  font-size: 3rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  color: #707070;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.banner {
  margin-bottom: 20px;
  padding: 13px 0;
  text-align: center;
}
.banner img {
  box-shadow: 2px 1px 3px 1px rgba(0, 0, 0, 0.4);
  width: 90%;
}

.content {
  box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  padding: 3px;
  background: white;
}
.content .head {
  font-size: 1.7rem;
  background-color: #f2f2f2;
  background-image: url(../img/leaf_icon_transparent.png);
  background-position: 5px;
  background-repeat: no-repeat;
  background-size: 15px auto;
  padding: 5px 15px 5px 27px;
}
.content .desc {
  padding: 1em;
  font-size: 1em;
}
.content .foot {
  padding: 0 15px 15px 15px;
  font-style: italic;
  font-size: 0.9em;
}

p {
  margin-bottom: 2rem;
}

/************************************************************************/
/* Home Page
/************************************************************************/
#mainpage article {
  text-align: center;
}
#mainpage .soul-book img {
  border-radius: 0.5rem;
  box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.8);
  margin: 3rem 1rem;
  width: 20em;
  max-width: 90%;
}
#mainpage .freeborn-or-slave img {
  border-radius: 0.5rem;
  box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.8);
  margin: 3rem 1rem;
  width: 20em;
  max-width: 90%;
}
#mainpage .megannim-the-shields img {
  border-radius: 0.5rem;
  box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.8);
  margin: 3rem 1rem;
  width: 20em;
  max-width: 90%;
}
#mainpage .leaves-of-dan img {
  margin: 3rem 1rem;
  width: 25em;
  max-width: 90%;
}
#mainpage article.textlink {
  margin: 2rem;
}
#mainpage article.textlink div {
  border-radius: 2rem;
  box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.8);
  padding: 0.5rem;
}
#mainpage article.textlink a {
  color: #fff;
}
#mainpage article.textlink .large {
  background-color: #246917;
  font-size: 3rem;
  width: 90%;
  margin: 0 auto;
}
#mainpage article.textlink .medium {
  background-color: #337ab7;
  font-size: 2rem;
  width: 80%;
  margin: 0 auto;
}
#mainpage .banners {
  text-align: center;
  margin-bottom: 1rem;
}
#mainpage .banners img {
  margin: 1rem;
  box-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 0.2);
  max-width: 90%;
}
#mainpage .banners img.weekly-study-notes {
  box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.4);
  margin-top: 2rem;
  margin-bottom: 2rem;
}
#mainpage .banners img.spirit-of-impartiality {
  width: 25em;
  box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.2);
}

/************************************************************************/
/* Torah and Documents Page
/************************************************************************/
.sevenscrolls {
  margin-top: 2rem;
}
.sevenscrolls .sevenscrolls-banner {
  text-align: center;
}
.sevenscrolls .sevenscrolls-banner img {
  width: 90%;
  margin-bottom: 1rem;
}
.sevenscrolls .sevenscrolls-head {
  font-size: 1.7rem;
  background-color: #f2f2f2;
  background-size: 15px auto;
  padding: 5px;
  text-align: center;
}
.sevenscrolls .sevenscrolls-head img.leaf {
  width: 15px;
  height: auto;
  margin: 0 5px;
}
.sevenscrolls .sevenscrolls-body {
  text-align: center;
}
.sevenscrolls .sevenscrolls-body a:hover {
  text-decoration: none;
}
.sevenscrolls .sevenscrolls-body .scroll {
  margin-right: 5px;
}
.sevenscrolls .sevenscrolls-body img {
  width: 21rem;
  padding: 5px;
  margin-bottom: 1rem;
  border: 1px solid black;
  border-radius: 4px;
}

.cover-image .alphabayit {
  width: 100%;
  max-width: 290px;
}
.cover-image .torah-project {
  width: 100%;
  max-width: 300px;
}

#scroll-page h1 {
  font-size: 2rem;
  margin-top: 0;
  font-weight: bold;
}
#scroll-page h2 {
  font-size: 1.7rem;
  font-weight: bold;
}
#scroll-page .scroll-header {
  margin-top: 1.5rem;
  width: 100%;
}
#scroll-page .sayings {
  font-size: 1.6rem;
  font-weight: bold;
}
#scroll-page .content .desc {
  font-style: italic;
}
#scroll-page .leaves-of-dan .desc {
  font-style: normal;
}

#ten-sayings-page h3 {
  font-size: 3rem;
  color: black;
  font-weight: bold;
}

/************************************************************************/
/* Ancient Hebrew
/************************************************************************/
.cover-image .pillarart {
  width: 100%;
  max-width: 300px;
}

.signs-of-light img {
  width: 100%;
  max-width: 740px;
  padding: 1rem;
  margin: 1rem 0 2rem;
  box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.7);
}

/************************************************************************/
/* Origins and Insights
/************************************************************************/
#tribes td, #tribes th {
  padding: 0.4rem;
}
#tribes td.paleo {
  font-size: 1.4em;
  text-align: center;
  letter-spacing: 0.2em;
}

/************************************************************************/
/* Luach and Oylah
/************************************************************************/
ul.moonlist, ol.moonlist {
  margin: 0;
  padding-left: 0;
}
ul.moonlist li, ol.moonlist li {
  list-style: none;
}
ul.moonlist li img, ol.moonlist li img {
  width: 1em;
  margin-right: 3px;
}

.luach-article .intro {
  margin-bottom: 1rem;
}
.luach-article .download-as-pdf {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.luach-article .days table {
  display: none;
  border-collapse: collapse;
  /* for the main view */
}
.luach-article .days table tr.uline {
  border: thin solid;
}
.luach-article .days table td {
  vertical-align: middle;
  padding: 2px;
}
.luach-article .days table td.rashdate {
  text-align: center;
  border-right: thin solid;
}
.luach-article .days table td.date {
  text-align: center;
}
.luach-article .days table th {
  text-align: center;
}
.luach-article .days table .moon-title {
  font-style: italic;
  padding-left: 8px;
  padding-right: 8px;
}
.luach-article .days table th.moon-title {
  text-wrap: nowrap;
  text-align: left;
  font-weight: normal;
}
.luach-article .days .yeartype {
  font-style: italic;
  font-weight: bold;
  padding-left: 4px;
  color: #393C40;
}
.luach-article .days .hide-by-default {
  display: none;
}
.luach-article .days .show-by-default {
  display: block;
}
.luach-article .days tr.show-by-default {
  display: table-row;
}
.luach-article .days .highlight-month {
  background-color: #93D443;
}
@media (min-width: 525px) {
  .luach-article .days .full-table {
    display: table;
  }
  .luach-article .days .month-toggles {
    margin-bottom: 1rem;
    display: block;
    text-align: right;
  }
  .luach-article .days .month-toggles a {
    font-weight: bold;
  }
}
@media (max-width: 524px) {
  .luach-article .days .phone-table-heading {
    margin-bottom: 1rem;
  }
  .luach-article .days .phone-table, .luach-article .days .phone-table-heading {
    display: table;
  }
  .luach-article .days .phone-table td, .luach-article .days .phone-table-heading td {
    border: thin solid;
  }
  .luach-article .days .phone-table th.heading, .luach-article .days .phone-table-heading th.heading {
    padding-bottom: 1rem;
  }
  .luach-article .days .phone-table td, .luach-article .days .phone-table th, .luach-article .days .phone-table-heading td, .luach-article .days .phone-table-heading th {
    text-align: center;
  }
  .luach-article .days .phone-table td.rashdate, .luach-article .days .phone-table-heading td.rashdate {
    font-weight: normal;
    padding-left: 5px;
  }
  .luach-article .days .phone-table td.shabbets, .luach-article .days .phone-table-heading td.shabbets {
    font-style: italic;
    text-align: center;
  }
  .luach-article .days .phone-table th.moon-title, .luach-article .days .phone-table-heading th.moon-title {
    text-wrap: wrap;
    text-align: center;
    padding-top: 5px;
    padding-left: 5px;
    padding-bottom: 3px;
  }
  .luach-article .days .phone-table th.moon-title span, .luach-article .days .phone-table-heading th.moon-title span {
    text-wrap: nowrap;
  }
  .luach-article .days .phone-table th.moon-title span.moon-name, .luach-article .days .phone-table-heading th.moon-title span.moon-name {
    font-style: normal;
  }
  .luach-article .days .month-toggles {
    display: none;
  }
}

#luachupdate {
  text-align: center;
}
#luachupdate div.message {
  padding-top: 1rem;
}
#luachupdate input[type=submit] {
  margin: 0 0 1rem 0;
}
#luachupdate .password input[type=text] {
  width: 100%;
  margin: 0.5rem 0;
}

article.spirit-of-impartiality {
  margin-top: 1rem;
  padding: 1rem 2rem;
}
article.spirit-of-impartiality .pseudo-heading {
  padding-left: 4rem;
  padding-right: 1rem;
}
article.spirit-of-impartiality .italic {
  font-style: italic;
}
article.spirit-of-impartiality .bold {
  font-weight: bold;
}
article.spirit-of-impartiality .large {
  font-size: 5rem;
}
article.spirit-of-impartiality .medium {
  font-size: 4rem;
}

.poster {
  text-align: center;
}
.poster img {
  width: 100%;
  max-width: 600px;
}
.poster img.animals {
  width: 27em;
}
.poster p {
  margin-bottom: 1em;
}

/************************************************************************/
/* About the Midrash
/************************************************************************/
.hoeveryone {
  font-weight: bold;
}

.midrash-address {
  margin-bottom: 1rem;
}

.midrash-address h5 {
  color: blue;
  font-weight: bold;
  margin: 0;
}

.order-form-button {
  margin-top: 2rem;
  text-align: center;
}
.order-form-button a {
  font-weight: bold;
  font-size: 2rem;
  padding: 3px;
  border-radius: 0.4rem;
  box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.75);
}

.all-rights-reserved {
  margin: auto;
  background-color: #7fd3eb;
  border: 1px solid black;
  padding: 1rem 2rem;
  font-size: 0.8em;
  max-width: 500px;
  width: 95%;
  box-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 0.2);
}
.all-rights-reserved a {
  color: red;
}

/************************************************************************/
/* Community Page
/************************************************************************/
.wheels-preview {
  text-align: center;
}
.wheels-preview img {
  width: 75%;
}

/************************************************************************/
/* Leaves of Dan Page
/************************************************************************/
#leaves-of-dan .photo {
  text-align: center;
}
#leaves-of-dan .photo img {
  box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.75);
}
@media (min-width: 768px) {
  #leaves-of-dan .photo img {
    width: 100%;
  }
}
@media (max-width: 767px) {
  #leaves-of-dan .photo img {
    max-height: 30rem;
    max-width: 100%;
    margin: 1.5rem 0;
  }
}

/************************************************************************/
/* Order form or study notes enrolment page
/************************************************************************/
.order-form .error {
  color: red;
}
.order-form .field-header {
  color: #5f5f5f;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 1em;
}
.order-form .field-input {
  margin-bottom: 1rem;
  color: #5f5f5f;
}
.order-form .field-input select, .order-form .field-input input {
  max-width: 100%;
}
.order-form .field-input label {
  font-weight: normal;
}
.order-form .field-input input[type=text], .order-form .field-input textarea {
  width: 100%;
  max-width: 500px;
}
.order-form .field-input input[type=checkbox], .order-form .field-input input[type=radio] {
  margin-left: 1rem;
  margin-right: 0.5rem;
}
.order-form .field-input input[name=postalcode] {
  max-width: 100px;
}
.order-form .field-input ul {
  list-style: none;
  padding-left: 0;
}
.order-form .field-input .scrolls label {
  white-space: nowrap;
}
.order-form .field-input .scrolls h4 {
  display: block;
  font-size: 1em;
  font-weight: bold;
  margin: 1em 0;
}
.order-form .field-input .scrolls h4 .view-link {
  font-weight: normal;
}
@media (max-width: 400px) {
  .order-form .field-input .view-link {
    display: block;
  }
  .order-form .field-input .scrolls label {
    display: block;
  }
  .order-form .field-input h4 {
    margin-top: 0;
  }
}

/************************************************************************/
/* FAQ Page
/************************************************************************/
#faqpage article {
  box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  padding: 3px;
  background: white;
}
#faqpage article em {
  display: block;
  background-color: #f2f2f2;
  background-image: url(../img/leaf_icon_transparent.png);
  background-position: 5px;
  background-repeat: no-repeat;
  background-size: 15px auto;
  padding: 5px 15px 5px 27px;
  margin-bottom: 15px;
  font-style: italic;
  font-weight: bold;
}
#faqpage article strong {
  display: block;
  font-style: italic;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  color: red;
  padding: 1rem;
}
#faqpage article p {
  padding: 0px 15px;
  font-size: 1em;
}

/************************************************************************/
/* Torat HaQavah - Cube Page
/************************************************************************/
#cubepage {
  text-align: center;
  /*************** ANIMATIONS ***************/
  /*************** CUBE ***************/
}
#cubepage .cube-size-options {
  font-size: 1.5em;
}
#cubepage .cube-size-options .selected {
  text-decoration: underline;
}
#cubepage .intro {
  font-size: 1.5em;
}
@keyframes cube-spin {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}
#cubepage .cube-wrap {
  perspective: 800px;
  perspective-origin: 50% 100px;
  height: 600px;
  margin-top: 100px;
}
#cubepage .cube-animated {
  animation-name: cube-spin;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
}
#cubepage .cube-static, #cubepage .cube-animated {
  position: relative;
  width: 400px;
  margin: 0 auto;
  transform-style: preserve-3d;
}
#cubepage .cube-static div, #cubepage .cube-animated div {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 30px rgba(125, 125, 125, 0.8);
  font-size: 20px;
  text-align: center;
  line-height: 380px;
}
#cubepage .cube-static div.back-pane, #cubepage .cube-animated div.back-pane {
  transform: translateZ(-200px) rotateY(180deg);
}
#cubepage .cube-static div.right-pane, #cubepage .cube-animated div.right-pane {
  transform: rotateY(-270deg) translateX(200px);
  transform-origin: top right;
}
#cubepage .cube-static div.left-pane, #cubepage .cube-animated div.left-pane {
  transform: rotateY(270deg) translateX(-200px);
  transform-origin: center left;
}
#cubepage .cube-static div.top-pane, #cubepage .cube-animated div.top-pane {
  transform: rotateX(-90deg) translateY(-200px);
  transform-origin: top center;
}
#cubepage .cube-static div.bottom-pane, #cubepage .cube-animated div.bottom-pane {
  transform: rotateX(90deg) translateY(200px);
  transform-origin: bottom center;
}
#cubepage .cube-static div.front-pane, #cubepage .cube-animated div.front-pane {
  transform: translateZ(200px);
}

/************************************************************************/
/* Font page
/************************************************************************/
table.font-table tr {
  border-top: 1px dashed black;
}
table.font-table tr:last-child {
  border-bottom: 1px dashed black;
}
table.font-table td.font-name {
  font-weight: bold;
}
table.font-table td.font-name strong {
  font-size: 1.2em;
}
table.font-table td.font-name em {
  color: #0000ff;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid #ff0000;
  padding: 1rem;
  opacity: 0.8;
}
@media (max-width: 499px) {
  table.font-table td {
    display: block;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
@media (min-width: 500px) {
  table.font-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  table.font-table td.font-preview {
    text-align: right;
  }
}

/************************************************************************/
/* Weekly study notes page
/************************************************************************/
#weekly-study-notes h3 {
  font-size: 2rem;
  color: black;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1rem;
}
#weekly-study-notes li {
  margin-bottom: 1rem;
}
#weekly-study-notes .program-offering {
  padding-bottom: 0;
}
#weekly-study-notes .address em {
  font-size: 0.7em;
}
#weekly-study-notes .cover-image img {
  width: 100%;
  max-width: 290px;
}

/************************************************************************/
/* Donations page
/************************************************************************/
.paypal-donations {
  margin-bottom: 2rem;
}
.paypal-donations .paypal-donatebutton {
  margin-left: 2rem;
  height: 1.5em;
}
.paypal-donations .paypal-logo {
  margin-left: 1rem;
  height: 1.5em;
}
@media (max-width: 500px) {
  .paypal-donations td {
    padding-top: 1rem;
    display: block;
  }
}

.donation-image {
  text-align: right;
}
@media (max-width: 992px) {
  .donation-image {
    display: none;
  }
}

/************************************************************************/
/* Welcome all page and banner
/************************************************************************/
#welcomeall {
  text-align: center;
  margin-bottom: 0.8em;
}
@media (max-width: 478px) {
  #welcomeall img {
    width: 100%;
  }
}

#welcomeall-page {
  padding-top: 1em;
}
#welcomeall-page p.heading {
  font-size: 1.2em;
}
#welcomeall-page .quoted {
  background-color: #f7f7f7;
  border: 1px solid #696969;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.2);
}
#welcomeall-page .quoted p:last-child {
  margin-bottom: 0;
}