/* ===== *
 * Reset *
 * ===== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

blockquote, q {
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a:focus {
    outline: solid;
}

/* ============ *
 * Theme Styles *
 * ============ */

body {
    box-sizing: border-box;
    color:#000;
    background: #202020;
    font-size: 16px;
    font-family: 'Iosevka Etoile Web', serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 10px 0;
    font-weight: 600;
    color:#000;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

h2 {
    padding-bottom: 5px;
    font-size: 32px;
    background: url('../img/bg-hr.png') repeat-x bottom;
}

h2 code {
    font-size: 24px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 21px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin: 10px 0 15px 0;
}

footer p {
    color: #f2f2f2;
}

a {
    text-decoration: none;
    color: #007ee0;
    text-shadow: none;
}

a:visited {
    color: #802acb;
}

.inner a:hover {
    color: #f2f2f2;
    background-color: #007ee0;
}

footer a:hover {
    color: #f2f2f2;
    background-color: #007ee0;
}

a.nohighlight:hover {
    background-color: transparent;
}

a.nohighlight {
    background-color: transparent;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

img {
    position: relative;
    margin: 0 auto;
    max-width: 739px;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
}

pre, code {
    width: 100%;
    color: #111;
    background-color: #fff;

    font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
    font-size: 14px;

    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
}

pre {
    width: 100%;
    padding: 4px;
    box-shadow: 0 0 4px rgba(0,0,0,.1);
    overflow: auto;
}

code {
    padding: 3px;
    margin: 0 3px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
}

pre code {
    display: block;
    box-shadow: none;
}

blockquote {
    color: #666;
    margin-bottom: 20px;
    padding: 0 0 0 20px;
    border-left: 3px solid #bbb;
}

ul, ol, dl {
    margin-bottom: 15px
}

ul li {
    list-style: outside;
    padding-left: 0em;
    margin-left: 1em;
}

ol li {
    list-style: decimal inside;
    padding-left: 0em;
    margin-left: 1em;
}

dl dt {
    font-weight: bold;
}

dl dd {
    padding-left: 20px;
    font-style: italic;
}

dl p {
    padding-left: 20px;
    font-style: italic;
}

hr {
    height: 1px;
    margin-bottom: 5px;
    border: none;
    background: url('../images/bg-hr.png') repeat-x center;
}

table {
    border: 1px solid #383838;
    margin-bottom: 20px;
    text-align: left;
}

th {
    font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 4px;
    background: #383838;
    color: #fff;
}

td {
    padding: 4px;
    border: 1px solid #383838;
}

form {
    background: #f2f2f2;
}

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

.gallery {
    clear: both;
}

figure {
    width: 32%;
    display: inline-block;
    text-align: center;
    margin: 10px 0px 0px 0px;
    clear: text;
    padding: 0;
    vertical-align: top;
}

figure img {
    margin: 0;
    padding: 0;
}

figcaption {
    font-style: italic;
    margin: 0;
    padding: 0;
}

figure.two {
    width: 48.3%;
}

img.zoom {
    transition: transform .2s;
}

img.zoomtwo {
    transition: transform .2s;
}

.no-touch img.zoom:hover {
    transform: scale(2.33);
    z-index: 1;
}

.no-touch img.zoom:active {
    transform: scale(1.0);
    z-index: 1;
}

.no-touch img.zoom:focus {
    transform: scale(1.0);
    z-index: 1;
}

.no-touch img.zoomtwo:hover {
    transform: scale(1.5);
    z-index: 1;
}

.no-touch img.zoomtwo:active {
    transform: scale(1.0);
    z-index: 1;
}

.no-touch img.zoomtwo:focus {
    transform: scale(1.0);
    z-index: 1;
}

/* --- Buttons --- */

.dlbutton {
    background-color: #4cb050;
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    padding: 10px 22px;
    font-size: 20px;
    border-radius: 4px;
    transition-duration: 0.3s;
}

a.dlbutton:visited {
    background-color: #4cb050;
    color: white;
}

a.dlbutton:hover {
    background-color: #60c060;
    color: white;
}

a.dlbutton:visited.hover {
    background-color: #60c060;
    color: white;
}


/* ===== *
 * Fonts *
 * ===== */

@font-face {
	font-family: 'Iosevka Etoile Web';
	font-display: swap;
	font-weight: 400;
	font-stretch: normal;
	font-style: normal;
	src: url('../iosevka-etoile-regular.woff2') format('woff2'), url('../iosevka-etoile-regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Iosevka Etoile Web';
	font-display: swap;
	font-weight: 700;
	font-stretch: normal;
	font-style: normal;
	src: url('../iosevka-etoile-bold.woff2') format('woff2'), url('../iosevka-etoile-bold.ttf') format('truetype');
}

@font-face {
	font-family: 'Iosevka Etoile Web';
	font-display: swap;
	font-weight: 400;
	font-stretch: normal;
	font-style: italic;
	src: url('../iosevka-etoile-italic.woff2') format('woff2'), url('../iosevka-etoile-italic.ttf') format('truetype');
}

@font-face {
	font-family: 'Iosevka Etoile Web';
	font-display: swap;
	font-weight: 700;
	font-stretch: normal;
	font-style: italic;
	src: url('../iosevka-etoile-bolditalic.woff2') format('woff2'), url('../iosevka-etoile-bolditalic.ttf') format('truetype');
}

/* ================= *
 * Full-Width Styles *
 * ================= */

.outer {
    width: 100%;
}

.inner {
    position: relative;
    max-width: 640px;
    padding: 10px 10px;
    margin: 0px auto;
}

.main-nav {
    position: relative;
    max-width: 640px;
    padding: 0px 0px;
    margin: 0 auto;
    font-size: 28px;
    display: block;
    overflow: visible;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
}

.main-nav a {
    font-weight: bold;
    padding: 5px 10px 5px 10px;
    color: #f2f2f2;
}

.main-nav a:visited {
    color: #f2f2f2;
}

.main-nav .active {
    color: #202020;
    background: #f2f2f2;
}

.main-nav a:visited.active {
    color: #202020;
}

.redacted {
    color: black;
    background-color: black;
}

.redacted:hover {
    color: black;
    background-color: white;
}

#logo {
    display: block;
    max-width: 640px;
    margin: auto;
}

#dictdef {
    display: block;
    max-width: 640px;
    margin: auto;
    text-align: center;
    font-style: italic;
}

#author {
    display: block;
    max-width: 640px;
    margin: auto;
    text-align: center;
}

#header_wrap {
    color: #fff;
    background: #202020;
    background: -moz-linear-gradient(top, #383838, #202020);
    background: -webkit-linear-gradient(top, #383838, #202020);
    background: -ms-linear-gradient(top, #383838, #202020);
    background: -o-linear-gradient(top, #383838, #202020);
    background: linear-gradient(top, #383838, #202020);
}

#header_wrap a {
    color: #5df;
}

#header_wrap .inner {
    padding: 10px 10px 10px 10px;
}

#main_content_wrap {
    background: #f2f2f2;
    border-top: 0px solid #111;
    border-bottom: 1px solid #111;
}

#main_content {
    padding-top: 20px;
}

#footer_wrap {
    background: #202020;
}

#footer_wrap a {
    color: #5df;
}

/* =================== *
 * Small Device Styles *
 * =================== */

@media screen and (min-width: 500px) and (max-width: 610px) {
    .main-nav {
        font-size: 21px;
    }
}

@media screen and (max-width: 500px) {
    .main-nav {
        font-size: 17px;
    }

    .main-nav a {
        padding: 2px 5px 2px 5px;
    }

    body {
        font-size: 16px;
    }

    #downloads {
        display: none;
    }

    .inner {
        min-width: 320px;
        max-width: 480px;
    }

    #project_title {
        font-size: 32px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 21px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 14px;
    }

    h6 {
        font-size: 12px;
    }

    code, pre {
        min-width: 320px;
        max-width: 480px;
        font-size: 11px;
    }

    img {
        width: 100%;
        max-width: 100%;
    }

    figure {
        width: 100%;
        max-width: 100%;
        padding: 5px;
    }

    figure.two {
        width: 100%;
        max-width: 100%;
        padding: 5px;
    }
}

/* ==================== *
 * GitHub ribbon styles *
 * ==================== */

/*!
 * "Fork me on GitHub" CSS ribbon v0.2.3 | MIT License
 * https://github.com/simonwhitaker/github-fork-ribbon-css
 */

.github-fork-ribbon {
  width: 12.1em;
  height: 12.1em;
  position: absolute;
  overflow: hidden;
  top: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  font-size: 13px;
  text-decoration: none;
  text-indent: -999999px;
}

.github-fork-ribbon.fixed {
  position: fixed;
}

.github-fork-ribbon:hover, .github-fork-ribbon:active {
  background-color: rgba(0, 0, 0, 0.0);
}

.github-fork-ribbon:before, .github-fork-ribbon:after {
  /* The right and left classes determine the side we attach our banner to */
  position: absolute;
  display: block;
  width: 15.38em;
  height: 1.54em;

  top: 3.23em;
  right: -3.23em;

  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;

  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.github-fork-ribbon:before {
  content: "";

  /* Add a bit of padding to give some substance outside the "stitching" */
  padding: .38em 0;

  /* Set the base colour */
  background-color: #a00;

  /* Set a gradient: transparent black at the top to almost-transparent black at the bottom */
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.15)));
  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
  background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
  background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
  background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));

  /* Add a drop shadow */
  -webkit-box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);

  pointer-events: auto;
}

.github-fork-ribbon:after {
  /* Set the text from the data-ribbon attribute */
  content: attr(data-ribbon);

  /* Set the text properties */
  color: #fff;
  font: 700 1em "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.54em;
  text-decoration: none;
  text-shadow: 0 -.08em rgba(0, 0, 0, 0.5);
  text-align: center;
  text-indent: 0;

  /* Set the layout properties */
  padding: .15em 0;
  margin: .15em 0;

  /* Add "stitching" effect */
  border-width: .08em 0;
  border-style: dotted;
  border-color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.github-fork-ribbon.left-top, .github-fork-ribbon.left-bottom {
  right: auto;
  left: 0;
}

.github-fork-ribbon.left-bottom, .github-fork-ribbon.right-bottom {
  top: auto;
  bottom: 0;
}

.github-fork-ribbon.left-top:before, .github-fork-ribbon.left-top:after, .github-fork-ribbon.left-bottom:before, .github-fork-ribbon.left-bottom:after {
  right: auto;
  left: -3.23em;
}

.github-fork-ribbon.left-bottom:before, .github-fork-ribbon.left-bottom:after, .github-fork-ribbon.right-bottom:before, .github-fork-ribbon.right-bottom:after {
  top: auto;
  bottom: 3.23em;
}

.github-fork-ribbon.left-top:before, .github-fork-ribbon.left-top:after, .github-fork-ribbon.right-bottom:before, .github-fork-ribbon.right-bottom:after {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
