/* https://google-webfonts-helper.herokuapp.com/fonts */
/* roboto-regular - latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v29-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''), url('../fonts/roboto-v29-latin-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */ url('../fonts/roboto-v29-latin-regular.woff2') format('woff2'),
        /* Super Modern Browsers */ url('../fonts/roboto-v29-latin-regular.woff') format('woff'),
        /* Modern Browsers */ url('../fonts/roboto-v29-latin-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */ url('../fonts/roboto-v29-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* russo-one-regular - latin */
@font-face {
    font-family: 'Russo One';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/russo-one-v13-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''), url('../fonts/russo-one-v13-latin-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */ url('../fonts/russo-one-v13-latin-regular.woff2') format('woff2'),
        /* Super Modern Browsers */ url('../fonts/russo-one-v13-latin-regular.woff') format('woff'),
        /* Modern Browsers */ url('../fonts/russo-one-v13-latin-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */ url('../fonts/russo-one-v13-latin-regular.svg#RussoOne') format('svg'); /* Legacy iOS */
}

body {
    background: url('../images/bg-body.png');
    color: white;
    font-family: 'Roboto', sans-serif;
    position: relative;
    min-height: 100vh;
    margin: 0;
}

header {
    width: 100%;
    text-align: center;
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 100%;
}

main {
    padding: 1em;
    text-align: center;
    padding-bottom: 2.5em;
}

footer {
    position: absolute;
    bottom: 0;
    height: 2em;
    color: grey;
    text-align: center;
    width: 100%;
}

header div#avgaslogo {
    grid-area: 1/1 / span 1 / span 1;
    height: 12em;
    display: block;
    background: url('../images/avgas-header.png') center no-repeat;
    background-size: contain;
}

header span#mainmenu {
    grid-area: 2/1 / span 1 / span 1;
    padding: 1em;
    font-family: 'Russo One', sans-serif;
    font-size: 1.3em;
}

h1 {
    font-family: 'Russo One', sans-serif;
    font-weight: normal;
}
h2 {
    font-family: 'Russo One', sans-serif;
    font-weight: normal;
}
h3 {
    font-family: 'Russo One', sans-serif;
    font-weight: normal;
}

header span#mainmenu a {
    border-top: 2px solid;
    border-bottom: 2px solid;
    padding: 4px;
    margin: 4px;
    color: white;
    text-decoration: none;
    transition-property: outline-width;
    transition-duration: 0.2s;
    background-color: black;
    background-position: center;
    background-repeat: no-repeat;
    text-shadow: 0 0 0.4em black, 0 0 0.4em black, 0 0 0.4em black, 0 0 0.4em black;
    border-color: #e8e737;
    outline-color: #e8e737;
}

header span#mainmenu a:hover {
    outline: 4px solid #e8e737;
}

main > div.singlecol {
    max-width: 50em;
    width: 100%;
    display: inline-block;
}

main > div.widecol {
    max-width: 60em;
    width: 100%;
    display: inline-block;
}

main > div.twocol {
    max-width: 60em;
    width: 100%;
    display: inline-block;
}

main > div.twocol > div {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 50% 50%;
}

div.twocol div.col1 {
    grid-area: 1/1 / span 1 / span 1;
    margin: 0.5em;
}
div.twocol div.col2 {
    grid-area: 1/2 / span 1 / span 1;
    margin: 0.5em;
}

div.untitled {
    background: black;
    border-radius: 1em;
    border: 2px solid grey;
    padding: 0.5em;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 100%;
    margin-bottom: 1em;
}

div.titled {
    background: black;
    border-radius: 1em;
    border: 2px solid grey;
    padding: 0.5em;
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 100%;
    margin-bottom: 1em;
}

div.titled span.title {
    background: grey;
    color: black;
    font-family: 'Russo One', sans-serif;
    font-size: 1.3em;
    grid-area: 1/1 / span 1 / span 1;
}

span.subtitle {
    background: #222;
    width: 100%;
    display: block;
    color: white;
    font-family: 'Russo One', sans-serif;
    font-size: 1.3em;
    grid-area: 1/1 / span 1 / span 1;
}

div.titled div.content {
    padding-top: 0.5em;
    grid-area: 2/1 / span 1 / span 1;
}

div.untitled div.content {
    padding-top: 0.5em;
    grid-area: 1/1 / span 1 / span 1;
}

a {
    color: lightblue;
}

a:visited {
    color: lightblue;
}

.title a {
    color: black;
    text-decoration-color: lightblue;
}

.title a:visited {
    color: black;
    text-decoration-color: lightblue;
}

div.logolink {
    display: inline-block;
    width: 13em;
    border-radius: 1em;
    border: 2px solid grey;
    padding: 0.5em;
    vertical-align: top;
    margin-bottom: 0.5em;
}

div.logolink > a > img {
    width: 100%;
    height: 10em;
    object-fit: contain;
    filter: grayscale();
    transition-property: filter, transform;
    transition-duration: 0.2s;
}

div.logolink > a:hover > img {
    filter: none;
    transform: scale(1.1);
}

table.library {
    display: inline-table;
    border-spacing: 1em 0.2em;
}

table.library.authored {
    text-align: left;
}

.CodeMirror-scroll {
    text-align: left;
}

.editor-preview {
    text-align: left;
}

.editor-toolbar {
    background: white;
}

.leftAlign {
    text-align: left;
}

.password-rule {
    text-align: left;
}

.password-rule-ok {
    text-decoration: line-through;
    color: green;
    list-style-type: '\2713';
}

.password-rule-fail {
    color: red;
    list-style-type: '\2717';
}
