/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

html, body {
  min-width: 510px;         /* 2 x sidebar fullwidth + main-content padding */
  height: 100%;
}

pre {
  color: black;
  background-color: whitesmoke;
  padding: 10px;
  overflow: auto;
}

.quote {
  color: black;
  background-color: whitesmoke;
  padding: 10px;
  overflow: auto;
}

h1 {
  color: black;
}

h2 {
  color: black;
  overflow:auto;
  font-style: normal;
  padding: 5px 0px;
}

/* Enable image scaling */
img {
  max-width: 100%;
}

h2.top {
  margin-top: 0px;
}

#columns {
  padding-left: 220px;      /* sidebar width + sidebar padding */
  padding-right: 25px;     /* main-content padding*/
  padding-top: 20px;
  min-height: 100%;
  margin-bottom: 170px;
  position: relative;
}

hr {
  border-style: solid;
  border-bottom-width: 1px;
  color: #a0d0fb;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  margin-top: 1em;
  margin-bottom: 1em;
}

.funnel .menu {
  padding-right: 25px;     /* main-content padding*/
}

#mozilla-tab {
  padding-right: 25px;     /* main-content padding*/
}

#site-header h1 a span {
  top: 25px;
  left: 25px;
}

#site-header {
  padding-left: 25px;
}

#columns .column {
  position: relative;
  float: left;
}

#main-content-column {
  width: 100%;
  padding-right: 25px;
}

.check, .cross {
 text-align: center;
}

#sidebar {
  width: 170px;        /* sidebar usable width (fullwidth - padding) */
  right: 275px;        /* sidebar fullwidth + main-content padding */
  padding-left: 55px;
  padding-right: 25px;
  margin-left: -100%;
}

.api_reference h3, .api_reference  h4,
.api_reference  h5, .api_reference  h6 {
  overflow: auto;
 }

#cse-search-box {
  float: right;
  margin: 1em;
  display:inline;
}

#cse-search-results {
  margin: 1em;
}

#toc {
  width: 180px;
  float: right;
  font-size: 0.9em;
  overflow: hidden;
  margin-top: 0;
  margin-left: 25px;
  margin-bottom: 1em;
}

#toc a {
  font-family: Georgia, serif;
  font-weight: normal;
  font-style: italic;
}

.title {
  height: 30px;
  margin-bottom: 10px;
}

.sidebar-section, #toc {
  border-style: solid;
  border-color: #a0d0fb;
  border-width: 1px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  background: #F0F8FF;
  margin-bottom: 1.0em;
}

.aside {
  color: gray;
  float: right;
  padding-left: 1em;
  margin-left: 1em;
  margin-right: 0;
  width: 25%;
  border-left: 1px solid gray;
}

#toc a {
  display: block;
  }

#toc a[class = H2] {
  font-size: 1.1em;
  font-weight: bold;
  margin-left: 0.5em;
}

#toc a[class = H3] {
  margin-left: 0.5em;
  font-weight: bold;
}

#toc a[class = H4] {
  margin-left: 1.5em;
  font-family: "andale mono", monospace;
  font-style: normal;
}

#toc a[class = H5] {
  margin-left: 2.5em;
  font-weight: bold;
}

#toc a[class = H6] {
  margin-left: 3em;
  font-family: "andale mono", monospace;
  font-style: normal;
}

.warning {
  margin-left: auto;
  margin-right: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  display: block;
  padding: 1em;
  border: solid 2px black;
  background-color: #FBEDED;
  border: 1px solid #AC6262;
  overflow: auto;
}

.logo {
  margin-left: 5px;
  float: left;
}

.meta-header {
  font-weight: bold;
}

.sidebar-section .modules {
  padding-left: 25px;
}

.package-entry .modules
.package-detail .modules {
  margin: 0em;
  padding-left: 0;
}

.module {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  padding-left: 0em;
  padding-right: 0em;
  margin-right: 1.0em;
}

.package-detail .authors, .package-detail .dependencies,
.package-detail .version, .package-detail .license {
  font-family: Monaco, Lucida Console, monospace;
  font-size: 0.8em;
  white-space: pre;
}

#main-content h1 {
  font-size: 2.2em;
}

#main-content h2 {
  font-size: 1.7em;
  color: black;
}

.image-center {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.image-right {
  margin-left: 1.0em;
  float:right;
}

.experimental {
  background-color: #FFFAAE;
  color: black;
  padding: 1px 10px;
}

.sidebar-section h2 {
  padding-left: 10px;
  background-color: #3b69b1;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.4em;
  color: white;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  -webkit-border-radius-topleft: 5px;
  -webkit-border-radius-topright: 5px;
  -khtml-border-radius-topleft: 5px;
  -khtml-border-radius-topright: 5px;
  border-radius-topleft: 5px;
  border-radius-topright: 5px;
}

.sidebar-section h3 {
  padding-left: 5px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.2em;
  color: #003595;
}

.sidebar-section h2, .sidebar-section h3 {
  padding-top: 5px;
  padding-bottom: 5px;
  margin: 0px;
}

.sidebar-section a h2:hover {
  color: #003595;
  background: white;
  text-decoration: none;
}

.sidebar-section a h3:hover {
  background: white;
  text-decoration: none;
}

.sidebar-section a:hover {
  text-decoration: none;
}

.sidebar-subsection-contents {
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
}

#sidebar li.sidebar-subsection {
  border-style: solid;
  border-top-width: 1px;
  border-color: #a0d0fb;
}

#sidebar ul li:first-child {
   border-top: none;
}

#sidebar li {
  margin-left: 0;
  padding-bottom: 0;
  list-style-type: none;
}
.sidebar-subsection-contents ul{
  margin-bottom: 0em;
}

.sidebar-subsection-contents a {
  display: block;
  text-decoration: none;
  padding: 1px 10px;
}

.modules a {
  display: block;
}

.sidebar-subsection-contents a:hover {
  background-color: white;
  border: solid 1px #a0d0fb;
  padding: 0px 9px;
}


.sidebar-subsection-contents h4 a {
  font-weight: normal;
  padding: 1px 5px;
}

.sidebar-subsection-contents h4 a:hover {
  font-weight: normal;
  padding: 0px 4px;
}

#third-party-module-subsection {
  display: none;
}

table.catalog, table.catalog tr, table.catalog td {
  border: none;
}

table.catalog td {
  padding: 1em;
}

table.catalog>tbody tr:first-child td {
  padding-top: 0em;
}

table.catalog>tbody tr:last-child td {
  padding-bottom: 0em;
}

a.stability-note {
  padding: 0.2em 0.5em;
  width: 8em;
  text-align: center;
  text-decoration: none;
  color: white;
  display: block;
  float: right;
  background-color: #E65252;
  border: 1px solid #BA0202;
}

a.stability-stable {
  background-color: #46DF86;
  border: 1px solid green;
  color: black;
}

a.stability-unstable, a.stability-experimental {
  background-color: #FFFAAE;
  border: 1px solid #D7DF01;
  color: black;
}

ul.tree {
  float: left;
  border: 1px solid lightgray;
  padding: 1em 0em;
  margin-right: 1em;
}

ul.tree li {
  list-style-type: none;
  font-weight: normal;
}

ul.tree li.highlight-tree-node, ul.tree li.highlight-tree-node li {
  color: red;
}

ul.tree ul  {
  list-style-type: none;
  background: url("../media/icons/vline.png") repeat-y;
  margin: 0;
  padding: 0;
  margin-left: 10px;
}

ul.tree ul li {
  margin: 0;
  padding: 0 12px;
  line-height: 20px;
  background: url("../media/icons/node.png") no-repeat;
  font-weight: normal;
}

ul.tree ul li:last-child {
  background: #fff url("../media/icons/lastnode.png") no-repeat;
}

ul#module-index,
h2[id="Module Compatibility"] ~ ul {
  border-color: #a0d0fb;
  border: solid 1px #a0d0fb;
  padding: 1em;
  list-style-type: none;
  -moz-column-count: 3;
  -moz-column-gap: 1em;
  -webkit-column-count: 3;
  -webkit-column-gap: 1em;
  column-count: 3;
  column-gap: 1em;
}

span.unsupported-on-mobile strong,
h2[id="Module Compatibility"] ~ ul strong {
  font-weight: normal;
  text-decoration: line-through;
}
