:root {
    --font-size: 15px;
}

html {
    font-size: var(--font-size);
    overflow: hidden;
    position: fixed;
    top:0; bottom:0; left:0; right: 0;
}

* {
    text-size-adjust:none;
    margin: 0; padding: 0;
}

body {
    margin: 0; padding: 0;
    background: #333;
    width: 100%;
    height: 100%;
    min-width: 300px;
    min-height: 300px;
    font-family: Lato, sans-serif;
    overflow-x:hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Sansation;
    padding: 0.25rem 0.5rem;
    font-weight: normal;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

em,strong,i,b {
    font-size: 1em;
}
sup, sub {
    font-size: 0.75em;
    position: relative;
}
sup {
    vertical-align: top;
    top: -0.25em;
}
sub{
    vertical-align: bottom;
    top: 0.25em;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    top: 0;
    background: #222;
    height: 3rem;
    flex-shrink:0;
    color: #FFF;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    border-bottom:solid 1px #666;
    z-index: 5;
}

nav {
    height: 2rem;
    display: flex;
    overflow-y: auto;
    flex-shrink:0;
    overflow: hidden;
    height: 100%;
    flex-grow: 1;
    justify-content: flex-end;
}

/*
@media(max-width:1024px) {
    nav {
        display: none;
    }
}
*/
nav > a {
    color: #eee;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
    height: 100%;
    line-height: 2rem;
}

nav > a:hover {
    background: #efefef;
    color: #111;
}

main {
    clear: both;
    flex-grow: 1;
    background: #ddd;
    /*
    padding-top: 1rem;
    padding-bottom: 8rem;
    */
    padding-bottom: 1rem;
}
textarea {
    display: block;
    width: 100%;
}
.application {
    background:#555;
    padding: 0;
}

.article-section {
    margin: 0 auto;
    background: #ddd;
}

.article-header {
    background: #333;
    color: #efefef;
    border-bottom: solid 1px #666;
}
.article-header h1 {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0.5rem 6rem;
}

main > section > *:not(.article-header){
    padding: 0.5rem 6rem;
    max-width:60rem;
    margin: 0 auto;
}


.article-section > p {
    font-size: 1rem;
    line-height: 1.5rem;
}
.article-section h2,
.article-section h3,
.article-section h4,
.article-section h5,
.article-section h6
{
    padding: 0;
}
.article-section ul, .article-section ol {
    margin-left: 1.5rem;
}
blockquote {
    padding: 0 2rem;
    font-style: italic;
}

.article-section > section > * {
    margin-bottom: 1rem;
}

/*
p:first-of-type {
    padding-top: 2rem !important;
}
p:last-of-type {
    padding-bottom: 8rem !important;
}
*/
footer {
    height: 6rem;
    background: #222;
    color: #efefef;
    flex-shrink:0;
    border-top: solid 1px #444;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.footer-nav {
    max-height: 3rem;
    list-style-type: none;
    display: inline-flex;
    flex-wrap: wrap;
    align-content: flex-start;
    /*
    flex-direction: column;
    margin: 0.5rem 4rem;
    */
    flex-direction: row;
    margin: 0.125rem auto;
}
.footer-nav__item {
    margin: 0 0.5rem;
}
.footer-nav__link {
    color: #aaa;
    font-size: 0.8rem;
    text-decoration: none;
}
.footer-nav__link:hover {
    color: #fff;
    text-decoration: underline;
}

.software-credit:first-of-type {
    margin-top: 2rem;
}

.software-credit {
    position: relative;
    background: #e8e8e8;
    box-shadow: 0 0.125rem 0.125rem rgba(0,0,0,0.2);
    padding: 0 !important;
}

.software-credit__title {
    background: #efefef;
    box-shadow: 0 0.125rem 0.125rem rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    padding: 0.25rem 0.5rem !important;
}

.software-credit__image {
    object-fit: scale-down;
    width: 100%;
    height: 100%;
}
.software-credit__panel {
    display: flex;
    height: 16rem;
}
.software-credit__panelitem {
    flex-grow: 1;
    width: 50%;
    padding: 1rem;
}
.software-credit__fontsample {
    font-size: 10rem;
    text-align: center;
}
.software-credit__fontsample--lato {
    font-family: Lato;
}
.software-credit__fontsample--sansation {
    font-family: Sansation;
}
.software-credit__infotitle::after {
	content: ":";
}

.software-credit__infodesc {
	margin-left: 1rem;
}
.license-text {
	word-wrap: nowrap;
	overflow: auto;
    background: #efefef;
    padding: 1rem;
    max-height: 25rem;
    box-shadow: inset 0 0.125rem 0.25rem rgba(0,0,0,0.3);
}
.license-text, .license-text * {
    font-size: 0.66rem;
}

.main-title {
    position: relative;
    background: #efefef;
    box-shadow: 0 0.125rem 0.125rem rgba(0,0,0,0.2);
    z-index: 1;
    max-width: unset !important;
    padding: 0.25rem 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.main-title__column {
    max-width: 60rem;
    margin: 0 auto;
}
.header__logo {
    max-height: 2rem;
}
.header__title {
    font-size: 1.5rem;
}
.header__home-link {
    display: flex;
    text-decoration: none;
    color: #efefef;
}

footer small {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    border-bottom: solid 1px #444;
    padding: 0.5rem;
    font-family: Sansation;
}

footer small a {
    color: #FFF;
    font-size: 0.8rem;
}

.hammer-btn {
    width: 3rem;
    height: 3rem;
    margin: 0rem 0.5rem;
    cursor: pointer;
    display: none;
    background: transparent;
    border-style:none;
}
.hammer-btn.shown {
    display: block;
}
.hammer-btn span {
    display: block;
    height: 2px;
    border-radius: 0.125rem;
    background: #fff;
    margin: 8px;
    opacity: 1.0;
    transition: all 0.25s ease-in-out;
    box-shadow: 1px 1px 1px #000;
}

.error {}
.error--404 {}
.error__image {
    height:33vw;
}
.error__img {
    object-fit: scale-down;
    width: 100%;
    height: 100%;
}
.error__content {
   text-align: center;
   font-style: italic;
}

@media(max-width:800px) {
    main > section > *:not(.article-header){
        padding: 0.5rem 1rem;
    }
    .software-credit {
        margin: 0.5rem !important;
    }
}
