/**
 * SPDX-License-Identifier: MIT
 *
 * File:    pod2html.css
 * Author:  Jiří Kučera, <sanczes AT gmail.com>
 * Date:    2020-03-18 22:38:36 +0100
 * Project: pod2html.css
 * Version: 0.01
 * Brief:   CSS for styling pod2html generated output.
 */

/*
 * Root
 */

html {
  height: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}

/*
 * Reboot
 */

html {
  margin: 0;
  padding: 0;
  border: 0;
  background-color: #fff;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  color: #000;
}

body, div,
h1, h2, h3, h4,
p, i, b, a,
code, pre,
dl, dt, dd, ul, li {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

b {
  font-weight: bolder;
}

a {
  background-color: transparent;
}

code, pre {
  font-family: monospace, monospace;
  font-size: 1rem;
}

/*
 * Base
 */

html, body {
  font-family:
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif;
  font-size: 16px;
  line-height: 1.41;
}

/*
 * Layout
 */

body {
  margin: 8rem 320px 1rem 280px;
  padding-left: 2rem;
  padding-right: 2rem;
  min-height: 100%;
  overflow: auto;
  word-wrap: break-word;
}

#index {
  position: fixed;
  top: 6rem;
  left: 0px;
  width: 280px;
  height: calc(100% - 7rem);
  margin: 0 1rem 1rem;
  line-height: 1;
}

/*
 * Content
 */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 1.5rem 0 0;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0.5rem 0 0.5rem;
}

code, pre {
  font-family:
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.85rem;
  background-color: hsl(203, 30%, 95%);
  border: 1px solid hsl(140, 51%, 51%);
}

code {
  padding: 0 0.2rem 0;
  border-radius: 3px;
}

pre {
  margin: 1rem 2rem 1rem 2rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  width: 55rem;
}

pre code {
  padding: 0;
  border: none;
}

dl {
  margin: 0.5rem 2rem 0.5rem;
}

dt, i {
  font-style: italic;
}

dd {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 2rem;
}

ul ul {
  margin: 0;
}

li + li {
  margin-top: 0.25rem;
}

a {
  color: hsl(0, 51%, 51%);
  text-decoration: none;
}

a:hover {
  color: hsl(210, 51%, 51%);
}

:target:before {
  content: "";
  display: block;
  height: 8rem;
  margin: -8rem 0 0;
}

/*
 * Header
 */

.header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 5rem;
  background-color: hsl(140, 51%, 51%);
  color: #fff;
  font-size: 3.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 5rem;
}

/*
 * Left side menu
 */

#index {
  padding: 1rem 0 1rem;
  border: 1px solid hsl(140, 51%, 51%);
  border-radius: 4px;
  background-color: hsl(140, 97%, 97%);
  overflow: auto;
}

ul#index, ul#index ul {
  padding-left: 0;
  list-style: none;
}

ul#index li + li {
  margin-top: 0;
}

#index a {
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  color: hsl(0, 51%, 51%);
  display: block;
}

ul#index li li a {
  padding-left: 2rem;
}

ul#index li li li a {
  padding-left: 3rem;
}

#index a:hover {
  background-color: hsl(210, 92%, 92%);
  border-right: 3px solid hsl(210, 51%, 51%);
  color: hsl(210, 51%, 51%);
}

/*
 * Footer
 */

.footer {
  margin-top: 5rem;
  width: calc(100% + 320px + 1rem);
  height: 5rem;
  border-radius: 5px;
  background-color: #3e3e3e;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
  line-height: 5rem;
}
