/* ==========================================================================
   St-Takla.org - Learn Languages - "marker" lesson layout
   --------------------------------------------------------------------------
   Merge of marker2.css and marker_arabic.css, which were used by the handful
   of text-based (rather than picture-based) lessons. The two files were the
   same layout with a few right-to-left tweaks, so the RTL differences now sit
   under .st-rtl and the rest is shared.

   Load this AFTER lang-audio.css.
   ========================================================================== */

.st-lesson .subheadings {
  font-weight: bold;
}

.st-lesson .marker {
  text-decoration: underline;
}

.st-rtl .marker {
  color: #ff0000;
  text-decoration: none;
}

.st-lesson .translation {
  font-style: italic;
}

.st-lesson .hover {
  color: #152588;
}

.st-rtl .hover {
  font-size: large;
  color: #152588;
  direction: rtl;
}

.st-lesson a.hover:hover {
  color: #9900ff;
}

.st-lesson .grammar {
  border-bottom: #000000 1px dashed;
}

.st-lesson .hover_punctuation {
  padding: 0 2px;
  margin: 0 1px;
  font-weight: normal;
  border-bottom: #444444 1px solid;
  text-decoration: none;
}

.st-lesson .headers {
  padding: 2px;
  overflow: hidden;
  width: 100%;
  border: #333333 1px solid;
}

.st-lesson .tabledisplay {
  overflow: hidden;
  width: 100%;
  border: #0033cc 1px dotted;
}

.st-lesson #topbar {
  position: relative;
  top: 2px;
  left: auto;
  width: 740px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 3px;
}

.st-lesson .popUpStyle {
  background-color: #ffffee;
  text-align: left;
}

.st-rtl .popUpStyle {
  text-align: center;
}

/*
 * Originally "position:absolute; left:180px; width:561px" - the content
 * column of a two-pane template whose 180px sidebar these lessons never had.
 * The result was a narrow block pinned to the left of the window with a wide
 * empty gap to its right. There is no sidebar to make room for, so let it be
 * an ordinary centred block at every width.
 */
.st-lesson #content {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px 0;
}

.st-lesson .basictable {
  width: 100%;
  border-left: #ffffff 30px solid;
}

.st-lesson a:active {
  color: #ff0000;
}

.st-lesson #sidebar {
  margin-bottom: 5px;
  padding: 1px 0 0 0;
  border-right: 1px dotted;
  border-bottom: 1px dotted;
  background-color: #ffffff;
}

.st-rtl #sidebar {
  padding-left: 2px;
}

.st-lesson #sidebar p {
  margin-top: 0;
  padding-left: 5px;
}

.st-rtl #sidebar p {
  padding-left: 10px;
}

.st-lesson #sidebar p.section {
  font-weight: bold;
}

.st-lesson #sidebar a {
  font-size: 95%;
}

.st-lesson #sidebar strong {
  font-size: 90%;
}

.st-lesson #sidebar ul {
  margin: 0 0 0;
  padding: 0 1px 0 7px;
  list-style-type: none;
}

.st-rtl #sidebar ul {
  padding: 0 10px 0 10px;
}

.st-lesson #sidebar ul ul {
  padding: 0 0 0 2em;
  list-style-type: square;
}

.st-lesson #menuheaders {
  margin: 0 0 0 5px;
  padding: 8px 0 8px 5px;
  font-size: 115%;
}

.st-lesson .tablespaceabove {
  margin-top: 14px;
}

.st-lesson .hr2 {
  height: 20px;
  border-top: #cccccc 2px solid;
  border-right: #cccccc 2px solid;
}

.st-lesson .hr3 {
  height: 20px;
  border-top: #cccccc 2px solid;
  border-left: #cccccc 2px solid;
}

.st-lesson .innertable {
  width: 550px;
  max-width: 100%;
  padding-left: 10px;
}

.st-lesson .maintab {
  margin-bottom: 0;
  padding: 0 0 10px 10px;
  border-left: #cccccc 2px solid;
  border-right: #cccccc 2px solid;
  border-bottom: #cccccc 2px solid;
}

.st-lesson .maintab_top {
  padding: 10px;
  border: #cccccc 2px solid;
}

.st-lesson h3 {
  margin-bottom: 2px;
  padding-bottom: 0;
  border-bottom: #cccccc 2px solid;
}

.st-lesson .set_aside,
.st-lesson .set_aside_margin {
  width: 100%;
  padding: 10px;
  border: #999999 1px solid;
}

.st-lesson .set_aside {
  margin: 0;
}

.st-lesson .set_aside_margin {
  margin: 10px 0;
}

.st-lesson .set_aside_minimal,
.st-lesson .set_aside_minimal_margin {
  width: 100%;
  padding: 4px;
  border: #999999 1px solid;
}

.st-lesson .set_aside_minimal {
  margin: 0;
}

.st-lesson .set_aside_minimal_margin {
  margin: 10px 0;
}

.st-lesson .side_note {
  width: 100%;
  margin: 15px 0;
  padding: 5px;
  background: #f3f3f3;
}

.st-lesson .supplementary {
  width: 100%;
  padding: 5px;
  border: rgb(240, 231, 192) 1px dashed;
  background-color: rgb(255, 247, 208);
}

.st-lesson fieldset {
  margin-top: 1px;
  border: #cccccc 2px solid;
}

.st-lesson legend {
  padding: 5px;
}

/* The absolutely-positioned two-column layout above collapses badly on a
   phone; fall back to normal flow. */
@media (max-width: 800px) {
  .st-lesson #content {
    padding-left: 8px;
    padding-right: 8px;
  }

  .st-lesson #topbar {
    left: 0;
    width: auto;
  }

  .st-lesson .innertable {
    width: auto;
    padding-left: 4px;
  }
}
