@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Hairline.ttf);
    font-weight: 100;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Thin.ttf);
    font-weight: 200;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Light.ttf);
    font-weight: 300;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Medium.ttf);
    font-weight: 500;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Semibold.ttf);
    font-weight: 600;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Bold.ttf);
    font-weight: 700;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Heavy.ttf);
    font-weight: 800;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Black.ttf);
    font-weight: 900;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-HairlineItalic.ttf);
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-ThinItalic.ttf);
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-LightItalic.ttf);
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-Italic.ttf);
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-MediumItalic.ttf);
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-SemiboldItalic.ttf);
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-BoldItalic.ttf);
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-HeavyItalic.ttf);
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/static/Lato2OFL/Lato-BlackItalic.ttf);
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/static/Courier Prime/Courier Prime.ttf');
    font-weight: normal;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/static/Courier Prime/Courier Prime Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/static/Courier Prime/Courier Prime Italic.ttf');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/static/Courier Prime/Courier Prime Bold Italic.ttf');
    font-weight: bold;
    font-style: italic;
}

html {
    font-family: Lato, sans-serif;
    font-weight: 400;
    background-image: url('/images/background.png');
    background-position: right bottom;
    background-size: cover;
    background-attachment: fixed;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: calc(100% - 16px);
    margin: 8px;
}

section {
    flex: 1;
}

::-webkit-scrollbar {
    display: none;
}

a {
    color: inherit;
    text-decoration: inherit;
}

footer a {
    text-decoration: underline;
}

section a:hover {
    text-decoration: underline;
}

a img {
    transition: opacity 200ms;
}

a img:hover {
    opacity: 0.75;
}

ul {
    margin: 0;
}

.header {
    height: 50px;
    background: #78A0FF;
    padding: 5px;
    position: relative;
    width: calc(100% - 10px);
    margin-bottom: 5px;
    z-index: 200;
}

.header-logo {
    background-image: url('/images/steam/1381770_logo.png');
    background-size: 144px;
    background-position: 0 -16px;
    width: 144px;
    height: 48px;
    float: left;
    margin: 1px 4px;
}

.header-text {
    float: left;
    font-family: Lato, sans-serif;
    font-weight: normal;
    height: 100%;
    margin: 1px 7px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}

.header-toggle {
    display: none;
    background-image: url('/images/menu.png');
    background-size: 100%;
    background-repeat: no-repeat;
    width: 48px;
    height: 48px;
    padding: 1px;
    right: 16px;
    opacity: 0.8;
    z-index: 300;
}

.header-button {
    font-family: Lato, sans-serif;
    font-weight: 500;
    padding: 1px 10px;
    font-size: 16px;
    line-height: 48px;
    height: 48px;
    float: left;
    display: block;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 200ms, border-bottom-width 200ms;
}

.header-button.disabled {
    background: gray;
}

.header-button:hover {
    background: white;
    border-bottom: 5px solid blue;
}

.header-button.disabled:hover {
    background: darkgray;
    border-bottom: 5px solid silver;
}

.header-button.self-link {
    background: white;
    border-bottom: 5px solid darkblue;
}

@media (max-width: 800px) {
    .header-toggle {
        display: block;
        position: absolute;
    }
    nav {
        display: none;
        position: absolute;
        left: 0px;
        top: 0px;
        width: 100%;
        z-index: 250;
    }
    .header-button {
        float: none;
        height: 58px;
        line-height: 58px;
        background: lightgray;
    }
    .header-button:hover {
        border-bottom: none;
    }
    .header-button.disabled:hover {
        border-bottom: none;
    }
    .header-button.self-link {
        border-bottom: none;
    }
}

#navbg {
    position: fixed;
    inset: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
    z-index: 100;
}

blockquote {
    border: 1px solid black;
    padding: 8px;
    background-color: #EFEFEF;
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 16px;
	margin-right: 16px;
}

details {
    padding-left: 4px;
    padding-right: 4px;
    /* border: 1px solid rgba(0,0,0,0); */
    width: fit-content;
    transition: width 200ms, border 200ms, background 200ms;
}

details > summary {
    cursor: pointer;
    /* border-bottom: 1px solid rgba(0,0,0,0); */
    transition: border-bottom 200ms, margin 200ms;
    margin-bottom: -12px;
    padding-bottom: 12px;
}

details[open] {
    background: #FFFFFF;
    /* border: 1px solid black; */
    border-collapse: collapse;
    margin-bottom: 2px;
}

details[open] > summary {
    /* border-bottom: 1px solid #000000; */
    margin-bottom: 0;
    padding-bottom: 0;
}

details[open].once > summary {
    display: none;
}

footer {
    padding: 10px;
    background-color: rgba(191, 223, 255, 0.75);
}

.steam-widget {
    width: 100%;
    max-width: 646px;
    height: 190px;
}

.character-box {
    display: flex;
    padding: 10px;
    margin: 5px;
    border: 1px solid black;
    background-color: rgba(255,255,255,0.8);
}

.character-logo {
    align-self: center;
    margin-right: 24px;
}

.character-text {
    flex: 1;
}

.character-image {
    align-self: center;
    transform: scaleX(-1.5) scaleY(1.5);
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 8px;
    margin-bottom: 8px;
}

.footer-image {
    position: fixed;
    right: 0;
    bottom: 0;
    transform: translateX(-16px) translateY(-16px);
    z-index: -100;
    opacity: 0.8;
    max-width: 40%;
    max-height: 60%;
}

.comic-box {
    max-width: 720px;
    float: left;
    margin: 8px;
    border: 1px solid black;
    background-color: rgba(255,255,255,0.8);
}

.comic-box img {
    width: 100%;
}

.comic-box-list a {
    width: 32%;
}

.comic-box-list a > img {
    border: 1px solid black;
}

.comic-box-list a > img.noborder {
    border: none;
    padding: 1px;
}

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

.commentBox { 
    background-color: #FFFFFF;
    display: table;
    padding: 8px;
    border: 1px solid black;
    margin: 2px;
    border-radius: 4px;
}

.commentBox.invisible {
    background-color: #DFDFDF;
}

#comment-preview {
    background-color: rgba(255,255,255,0.6);
    border: 1px dotted black;
}

.commentTitle { 
    border-bottom: 1px solid gray;
    margin-bottom: 2px;
}

.commentTextarea { 
    /* max-height: 320px; */
    overflow-y: auto;
    scrollbar-width: none;
}

blockquote {
    border: 1px solid black;
    padding: 8px;
    background-color: #EFEFEF;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 16px;
    margin-right: 16px;
}

blockquote cite {
    font-weight: bold;
    display: block;
    font-size: 1em;
    margin: 0;
    padding: 0;
    border-bottom: none;
}