:root {
    background-color: var(--catalog-paper);
    background-image: url(/rdr/bgPaper.jpg);
    color: black;

    scrollbar-color: var(--catalog-red) black;

    --menu-red: #D80419;
    --logo-red: #CC0000;
    --undead-yellow: #FCE534;
    --undead-green: #C4D148;
    --catalog-paper: #C8A273;
    --catalog-ink: #2E2E2E;
    --catalog-red: #990000;
    --catalog-blue: #003A50;
    --gold: #D89A2E;
    --token: #00AEEF;
    --rockstar-yellow: #E19808;

    font-family: 'Hapna';

    border-image-source: url('/rdr/frame.png');
    border-style: solid;
    border-width: 18px;
    border-image-slice: 12;
}

* {
    box-sizing: border-box
}

@font-face {
    font-family: 'Droid';
    font-style: normal;
    font-weight: 400;
    src: url('/rdr/Droid.woff2') format("woff2");
}

@font-face {
    font-family: 'Redemption';
    font-style: normal;
    font-weight: 400;
    src: url('/rdr/Redemption.ttf') format("truetype");
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'RDR-Lino';
    font-style: normal;
    font-weight: 400;
    src: url('/rdr/RDRLino-Regular.ttf') format("truetype");
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Hapna';
    font-style: normal;
    font-weight: 400;
    src: url('/rdr/Hapna.woff2') format("woff2");
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Helvetica Neue LT';
    font-style: normal;
    font-weight: 400;
    src: url('/rdr/Helvetica\ Neue\ LT.woff2') format("woff2");
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Helvetica Neue LT';
    font-style: normal;
    font-weight: 700;
    src: url('/rdr/Helvetica\ Neue\ LT\ \(Bold\).woff2') format("woff2");
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Catalog-Bold';
    font-style: normal;
    font-weight: 700;
    src: url('/rdr/RDRCatalogueBold-Bold.ttf') format("truetype");
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Catalog-Numbers';
    font-style: normal;
    font-weight: 400;
    src: url('/rdr/RDRCatalogueNumbers-Regular.ttf') format("truetype");
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Arthur';
    src: url('/rdr/MorganHand.ttf');
    /* https://www.reddit.com/r/reddeadredemption2/comments/1bpbwmq/i_made_a_semigood_font_of_arthur_morgans/ */
}

body {
    text-align: center;
}

#return {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 40px;
    width: 60px;
    height: 60px;
    padding: 5px;
    background-image: url('/rdr/panel.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    font-size: 5em;
    font-family: 'RDR-Lino';
    z-index: 10;
    transition: 0.1s;
}

#return:hover {
    transform: translateY(-5px);
}

#return img {
    width: 80%;
    position: absolute;
    right: 6px;
}

.bordered {
    border-image-source: url('/rdr/rough-frame.png');
    border-style: solid;
    border-width: 6px;
    border-image-slice: 80;
}

#container {
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    height: fit-content;
}

#header {
    background-image: url('/rdr/header.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-mask-image: url('/rdr/panel.webp');
    mask-image: url('/rdr/panel.webp');
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

#logo {
    width: 80%;
    margin: 15px;
}

h1 {
    font-family: 'Redemption';
    color: white;
    font-size: 5vw;
    margin: auto;
    width: 100%;
    padding: 0px;
    filter: drop-shadow(3px 3px 5px black);
    text-decoration: underline double white;
}

h2 {
    font-family: 'RDR-Lino';
    color: var(--logo-red);
    font-size: 1.5vw;
    margin: auto;
    padding: 15px;
    margin-right: 5%;
    text-align: right;
    text-shadow:
        5px 5px 0 black,
        -5px 5px 0 black,
        -5px -5px 0 black,
        5px -5px 0 black;
}

h3 {
    color: white;
    font-size: 3em;
    font-weight: 400;
}

h4 {
    font-family: 'Catalog-Bold';
    color: white;
    font-size: 3em;
    margin: auto;
}

.deco {
    font-family: 'Catalog-Numbers';
}

hr {
    border-image-source: url('/rdr/divider.png');
    border-style: solid;
    border-width: 0.8vh;
    border-image-slice: 0 0 100%;
    max-width: 786px;
}

.divider {
    filter: invert(100);
    margin: 30px auto;
    width: 100%;
}

.divider-alt {
    filter: invert(50%) sepia(100%) hue-rotate(-20deg) saturate(100);
    margin: 30px auto;
    width: 100%;
}

.journal-line {
    filter: invert(100);
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
}

.journal-line-alt {
    filter: invert(50%) sepia(100%) hue-rotate(-20deg) saturate(100);
    margin: 30px auto;
    width: 100%;
}

#toc {
    background-image: url('/rdr/bgOnline.webp');
    font-family: 'Catalog-Bold';
    color: white;
    border: var(--catalog-ink) double 8px;
    width: 50%;
    margin: auto;
    padding: 10px;
}

#toc hr {
    border-width: 2px;
    width: 200px;
    filter: invert(100%);
}

#toc p {
    font-size: 2em;
    margin: 5px auto;
    width: fit-content;
}

#toc a {
    color: white;
    text-decoration: none;
    font-size: 2em;
    margin: 5px auto;
    width: fit-content;
    transition: 0.1s;
}

#toc a:hover {
    letter-spacing: 0.1em;
}

.character {
    color: #120e0a;
    padding: 15px;
    margin: 30px auto;
    width: 330px;
    border: var(--catalog-ink) double 8px;
}

.ar {
    background-image: url('/rdr/bgStory.webp');
    height: 200px;
}

.jn {
    background-image: url('/rdr/bgOnline.webp');
    height: 200px;
}

.section {
    background-image: url('/rdr/bgStory.webp');
    width: 650px;
    padding: 15px;
    margin: 30px auto;
    border: var(--catalog-ink) double 8px;
}

.profile {
    margin: auto;
    filter: drop-shadow(3px 3px 5px black);
}

.state {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    -webkit-mask-image: url('/rdr/hud_location_bg.webp');
    mask-image: url('/rdr/hud_location_bg.webp');
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.area {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    margin-top: 40px;
    -webkit-mask-image: url('/rdr/hud_location_bg.webp');
    mask-image: url('/rdr/hud_location_bg.webp');
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.name {
    font-size: 3em;
    text-align: center;
    margin: auto;
}

.arthur {
    font-family: 'Arthur';
}

.john {
    font-family: 'John';
    margin: 10px;
}

#ar-jn {
    display: flex;
    margin: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-self: center;
}

#gal-ar {
    width: 50%;
    order: 1;
    z-index: 2;
}

#ar-jn-divide {
    display: none;
    margin: auto;
    order: 2;
}

#gal-jn {
    width: 50%;
    order: 3;
    z-index: 1;
}

.drawing-large {
    width: 100%;
}

.invert-journal {
    filter: invert(100);
}

.gallery {
    margin: auto;
    height: fit-content;
    width: 100%;
    text-align: center;
    /* border-color: #d80419;
    border-image-repeat: round;
    border-image-slice: 10 10 10 10 fill;
    border-image-source: url('/rdr/red-frame.png');
    border-style: solid;
    border-width: 10px; */
}

.responsive {
    display: inline-block;
    margin: auto;
    padding: 12px;
    width: 100%;
    max-width: 800px;
}

.gallery-image {
    transition: .2s;
}

.gallery-image img {
    margin: auto;
    width: 100%;
    -webkit-mask-image: url('/rdr/rough-frame-invert.webp');
    mask-image: url('/rdr/rough-frame-invert.webp');
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.gallery-image:hover {
    transform: scale(1.02) rotate(1deg);
    /* filter: drop-shadow(2px 2px 2px var(--catalog-ink)); */
}

.gallery-image img:hover {
    mask-image: none;
    -webkit-mask-image: none;
}

@media screen and (max-width: 750px) {
    :root {
        border-width: 12px;
    }

    #container {
        margin: 8px auto;
        padding: 8px;
        width: 95%;
    }

    #logo {
        width: 80%;
        margin: 10px;
    }

#toc {
    width: 300px;
}

    h1 {
        font-size: 8vw;
    }

    h2 {
        color: white;
        font-size: 4vw;
        padding: 15px;
        margin: auto;
        text-align: center;
        text-shadow: none;
    }

    h3 {
        font-size: 3em;
    }

    .responsive {
        padding: 6px;
    }

    .section {
        width: 90%;
        padding: 10px;
        margin: 20px auto;
    }

    .state {
        width: 100%;
    }

    .area {
        width: 100%;
        margin: 20px auto;
        margin-top: 40px;
    }
}

@media screen and (max-width: 920px) {
    #ar-jn {
        flex-wrap: wrap;
        flex-direction: column;
    }

    #ar-jn-divide {
        display: block;
    }

    #gal-ar {
        margin: auto;
        width: 100%;
    }

    #gal-jn {
        margin: auto;
        width: 100%;
    }

    .section {
        width: 90%;
    }
}

/* #ar-jn {
    background-color: black;
}

#gal-ar {
    background-color: red;
}

#gal-jn {
    background-color: blue;
}

.gallery {
    background-color: grey;
}

.responsive {
    background-color: purple;
}

.gallery-image {
    background-color: fuchsia;
} */