/*
 * Site styles, ported from the Gatsby site.
 *
 * Part 1 is src/layouts/styles.global.css, unchanged.
 * Part 2 merges the per-component CSS modules into one global stylesheet.
 * Gatsby scoped each module's class names automatically; here the classes
 * that would collide are prefixed instead (nav-*, mp-*, tanach-*, nach-*,
 * teamim-*).
 */

/* GLOBAL STYLES */

* {
  font-family: 'Muli', sans-serif;
}

h1, h2, h3, h4, h5 {
  font-family: 'Thasadith', sans-serif;
  font-weight: 700;
}

.tsblue {
  background-color: #009FC1 !important;
}

.tsblue-text {
  color: #009FC1 !important;
}

.tsblue-form input:focus {
  border-bottom: 1px solid #009FC1 !important;
  box-shadow: 0 1px 0 0 #009FC1 !important;
}

.body {
  min-height: 81vh;
}

.full-height {
  height: 100%;
}

.full-width {
  width: 100%;
}

.pointer {
  cursor: pointer;
}

.rtl {
  direction: rtl;
}

.bold {
  font-weight: bold;
}

.clickable {
  cursor: pointer;
}

.no-click {
  cursor: default;
}

.no-padding {
  padding: 0;
}

.no-margin {
  margin: 0;
}

.msred {
  background-color: #950010 !important;
}

.msred-text {
  color: #950010 !important;
}

.msred-form input:focus {
  border-bottom: 1px solid #950010 !important;
  box-shadow: 0 1px 0 0 #950010 !important;
}

.hsorange {
  background-color: #EE5A24 !important;
}

.hsorange-text {
  color: #EE5A24 !important;
}

.hsorange-form input:focus {
  border-bottom: 1px solid #EE5A24 !important;
  box-shadow: 0 1px 0 0 #EE5A24 !important;
}

.psgreen {
  background-color: #127E36 !important;
}

.psgreen-text {
  color: #127E36 !important;
}

.psgreen-form input:focus {
  border-bottom: 1px solid #127E36 !important;
  box-shadow: 0 1px 0 0 #127E36 !important;
}

.psplusgreen {
  background-color: #00806f !important;
}

.psplusgreen-text {
  color: #00806f !important;
}

.psplusgreen-form input:focus {
  border-bottom: 1px solid #00806f !important;
  box-shadow: 0 1px 0 0 #00806f !important;
}

.talmudyellow {
  background-color: #F4D037 !important;
}

.talmudyellow-text {
  color: #F4D037 !important;
}

.talmudyellow-form input:focus {
  border-bottom: 1px solid #F4D037 !important;
  box-shadow: 0 1px 0 0 #F4D037 !important;
}
/* END GLOBAL STYLES */

/* ---- Part 2: component styles ---- */

/* Navigation (Navigation.module.css).
   The "active" modifier is named "is-active" so it cannot collide with
   Materialize's own .active rules. */
.tsnav {
  box-shadow: unset;
  min-height: 60px;
  height: 10vh;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}

.tsnav a {
  color: black;
}

/* Larger than mobile width */
@media screen and (min-width:993px) {
  .nav-list {
    margin-right: 5vw;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: right;
  }

  .nav-image {
    height: 75px;
    width: auto;
    margin-left: 5vw;
    margin-top: 5vh;
  }
}

/* Smaller than desktop width */
@media screen and (max-width:992px) {
  .tsnav.is-active {
    height: 100vh;
    width: 100vw;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .nav-image-link {
    margin-left: 5%;
    width: 10%;
  }

  .nav-image {
    height: 50px;
  }

  .nav-list:not(.is-active) {
    display: none;
  }

  .nav-list.is-active {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 100%;
  }

  .nav-list li {
    padding: 0;
  }

  .mobile-activator {
    width: 10%;
    margin-right: 5%;
    text-align: right;
    cursor: pointer;
  }
}

/* Footer (Footer.module.css) */
footer {
  padding: 1%;
  background-color: #253551;
}

.footer-wrapper {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
}

.social-icons {
  padding: 0;
  margin: 0 0 0 5px;
  height: 32px;
  width: 32px;
}

.social-icons img {
  height: 32px;
  width: 32px;
}

.footer-link {
  color: white;
  border-bottom: 1px solid white;
}

/* The multi-line sponsor on Parasha Study's sefer pages. The Gatsby site put these
   <h4>s inside another <h4>, which is not valid HTML: the server-rendered page
   was parsed flat, but React rebuilt it nested in the browser, so the outer
   heading's bottom margin ended up below the last line. This restores that
   space. */
.sponsor-last {
  margin-bottom: 0.912rem;
}

/* Credit for the Hebrew and English texts (a condition of using Sefaria's texts) */
.sefaria-credit {
  font-size: 0.9rem;
}

/* Links in the perek, daf and masechet grids
   (PerekItem.module.css, DafItem.module.css) */
.perek-link,
.daf-link {
  color: black;
}

/* Teacher page (Teacher.module.css) */
.teacher-title {
  margin: 0;
}

/* Media players (AudioPlayer.module.css, VideoPlayer.module.css,
   MediaPlayer.module.css) */
.audio-tabs-container,
.video-tabs-container {
  border-top: 1px solid #ddd;
}

.speed-selector {
  display: unset;
}

.mp-tab-li {
  cursor: pointer;
}

.mp-active-tab {
  font-weight: 600;
  font-size: 16px !important;
  border-bottom: 3px solid #00806f !important;
  transition: font-size .5s ease !important;
  background-color: rgba(0, 128, 111, 0.1);
  cursor: default;
}

.mp-tab-content {
  height: 100%;
  width: 100%;
}

/* Teamim (reader) tabs on Tanach Study (TeamimItem.module.css) */
.teamim-active-reader {
  background-color: rgba(0,159,193,0.1);
  outline: none;
  font-weight: 600;
  font-size: 16px !important;
  border-bottom: 3px solid rgba(0,159,193,0.8) !important;
  transition: background-color 1.5s ease !important, font-size .5s ease !important;
}

.teamim-tabs-container {
  border-top: 1px solid #ddd;
}

/* Part tabs (Tanach.module.css, NachPerek.module.css) */
.part-tab {
  padding: 0 12px !important;
}

/* The Torah text tabs. The Gatsby site set the background and bottom border
   inline from the program's color; --program-rgb carries that color. The bottom
   border has no color of its own, so it takes the tab's text color. */
.tanach-active-part {
  background-color: rgba(var(--program-rgb), 0.1);
  border-bottom: 3px solid;
  outline: none;
  font-weight: 600;
  font-size: 16px !important;
  transition: background-color 1.5s ease !important, font-size .5s ease !important;
}

.nach-active-part {
  background-color: rgba(0,159,193,0.1);
  outline: none;
  font-weight: 600;
  font-size: 16px !important;
  border-bottom: 3px solid rgba(0,159,193,0.8) !important;
  transition: background-color 1.5s ease !important, font-size .5s ease !important;
}

/* Elements hidden by the page scripts (site.js) */
[hidden] {
  display: none !important;
}
