/* ALIENS RPG - MkDocs Material custom theme, v0.5 */

:root {
  --aliens-blue: #3399ff;
  --aliens-blue-visited: #aa88ff;
  --aliens-border: #555;
  --aliens-page-width: 698px;
  --aliens-shell: 1180px;

  --md-default-bg-color: #000;
  --md-default-fg-color: #fff;
  --md-default-fg-color--light: #ccc;
  --md-default-fg-color--lighter: #999;
  --md-default-fg-color--lightest: #333;
  --md-primary-fg-color: #000;
  --md-primary-bg-color: #fff;
  --md-accent-fg-color: #3399ff;
  --md-typeset-a-color: #3399ff;
}

/* Base */
html,
body,
.md-container,
.md-main,
.md-main__inner,
.md-content,
.md-sidebar,
.md-nav {
  background: #000;
}

body,
input,
button,
textarea,
select {
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: #fff;
}

.md-grid {
  max-width: var(--aliens-shell);
}

.md-content {
  min-width: 0;
  max-width: none;
  flex-grow: 1;
  margin-right: 0 !important;
}

.md-content__inner {
  box-sizing: border-box;
  margin-bottom: 2rem;
  padding-top: 0.8rem;
}

/* Typography */
.md-typeset {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: justify;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.md-typeset h1 {
  margin: 0.5rem 0 0.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #333;
  font-size: 18px;
}

.md-typeset h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 15px;
}

.md-typeset h3 {
  margin: 1rem 0 0.35rem;
  font-size: 13px;
}

.md-typeset h4 {
  font-size: 12px;
}

.md-typeset a,
.md-nav__link,
.md-header a {
  color: var(--aliens-blue);
}

.md-typeset a:visited {
  color: var(--aliens-blue-visited);
}

.md-typeset a:hover,
.md-nav__link:hover,
.md-nav__link--active {
  color: #66b5ff;
  text-decoration: underline;
}

/* Old ALIENS banner / rollover */
.aliens-hero {
  margin: 0 0 0.8rem;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid #777;
  background: #000;
}

.aliens-hero__logo,
.aliens-hero__preview {
  display: block;
  margin: 0;
}

.aliens-hero__preview {
  transition: opacity 90ms linear;
}

.aliens-hero__preview.is-changing {
  opacity: 0.65;
}

/* Material header */
.md-header {
  min-height: 2.3rem;
  background: #0b0c0f;
  border-bottom: 1px solid #333;
  box-shadow: none;
}

.md-header__inner {
  min-height: 2.3rem;
}

.md-header__button {
  margin: 0.15rem;
  padding: 0.35rem;
}

.md-header__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.md-search__form {
  height: 2rem;
  background: #080808;
  border: 1px solid #222;
  border-radius: 0;
}

.md-search__input {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* Navigation */
.md-nav {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

.md-nav__title {
  color: #fff;
  background: #000 !important;
  box-shadow: none !important;
  font-weight: 700;
}

.md-nav__item .md-nav__link {
  margin-top: 0.22rem;
}

.md-nav__item--section > .md-nav__link,
.md-nav__item--nested > .md-nav__link {
  color: #fff;
  font-weight: 700;
}

.md-sidebar--primary .md-nav > .md-nav__list > .md-nav__item--nested > .md-nav__link {
  margin-top: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.md-sidebar--primary .md-nav__item--nested > nav.md-nav {
  margin-left: 0.55rem;
}

.md-sidebar--primary .md-nav__item--nested > nav.md-nav .md-nav__link {
  margin-top: 0.18rem;
}

/* No right-side TOC */
.md-sidebar--secondary,
.md-sidebar--secondary[data-md-type="toc"] {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 0 !important;
}

/* Tables and legacy content */
.md-typeset table:not([bgcolor]) {
  color: #fff;
  background: #000;
  border-collapse: collapse;
}

.md-typeset table:not([bgcolor]) th,
.md-typeset table:not([bgcolor]) td {
  border-color: #333;
}

.md-typeset table[width] {
  width: auto !important;
  max-width: 100% !important;
}

.md-typeset td,
.md-typeset th {
  vertical-align: top;
}

.md-typeset div[class="8"],
.md-typeset .\38 {
  margin-left: 10pt;
  text-align: justify;
}

.md-typeset .small {
  margin-left: 10pt;
  font-size: 10px;
}

.md-typeset img {
  max-width: 100%;
  height: auto;
}

.md-typeset img[border="0"] {
  border: 0;
}

.md-typeset iframe {
  max-width: 100%;
  border: 0;
}

.md-typeset hr {
  margin: 0.9rem 0;
  border: 0;
  border-top: 1px solid #555;
}

.md-typeset code,
.md-typeset pre {
  color: #e6e6e6;
  background: #0d0d0d;
  border-radius: 0;
}

.md-typeset .headerlink {
  color: #555;
}

/* Transparent image helper */
.image-white {
  display: inline-block;
  max-width: 100%;
  padding: 4px;
  background: #fff;
}

.image-white img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Optional image alignment */
.md-typeset img.align-right {
  float: right;
  height: auto;
  margin: 0 0 1rem 1.5rem;
}

/* Footer */
.md-footer,
.md-footer-meta {
  background: #000;
}

.md-footer {
  border-top: 1px solid #333;
}

/* Desktop: Material permanent-sidebar breakpoint */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 13.5rem;
  }

  .md-content__inner {
    width: var(--aliens-page-width);
    max-width: var(--aliens-page-width);
    margin-left: 0;
    margin-right: 0;
  }

  .aliens-hero {
    display: grid;
    grid-template-columns: 482px 216px;
    width: var(--aliens-page-width);
    max-width: var(--aliens-page-width);
    height: 164px;
  }

  .md-typeset .aliens-hero__logo {
    width: 482px;
    min-width: 482px;
    max-width: 482px;
    height: 98px;
    min-height: 98px;
    max-height: 98px;
    object-fit: contain;
    object-position: left top;
  }

  .md-typeset .aliens-hero__preview {
    width: 216px;
    min-width: 216px;
    max-width: 216px;
    height: 164px;
    min-height: 164px;
    max-height: 164px;
    object-fit: fill;
  }
}

/* Mobile/tablet: do not force desktop sizes */
@media screen and (max-width: 76.234375em) {

  .md-content {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
  }

  .md-content__inner {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .md-typeset {
    width: auto;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: break-word;
  }

  /* Rollover has no real value on touch devices: keep only the logo. */
  .aliens-hero {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .md-typeset .aliens-hero__logo {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 482px;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: left top;
  }

  .md-typeset .aliens-hero__preview {
    display: none;
  }

  .md-typeset img {
    max-width: 100% !important;
    height: auto !important;
  }

  .md-typeset__scrollwrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .md-typeset img.align-right {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0.8rem 0;
  }
}

@media screen and (max-width: 30em) {
  .md-content__inner {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}
