@import "/rdr/colors.css";

:root {
    background-color: var(--catalog-paper);
    background-image: url('/rdr/bgPaper.jpg');
    color: black;

    scrollbar-color: var(--catalog-red) black;

    font-family: 'Hapna';

    border-image-source: url('/rdr/frame.png');
    border-style: solid;
    border-width: 18px;
    border-image-slice: 12;
}

* {
    box-sizing: border-box
}

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;
}

.alert {
    background-color: var(--catalog-red);
    color: white;
    box-shadow: 5px -5px 5px #00000050;
    border-color: var(--menu-red);
    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;
    border-image-outset: 10px;
    margin: auto;
    padding: 10px;
    width: 40%;
    min-width: 360px;
    position: fixed;
    left: 2%;
    bottom: 2%;
    right: 2%;
    z-index: 20;
}

.alert p {
    margin: 0 auto;
}

.closebtn {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-left: 15px;
    float: right;
    line-height: 20px;
    cursor: pointer;
    transition: 0.1s;
}

.closebtn:hover {
    color: black;
}

.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: 100%;
    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%;
    width: 80%;
    margin: auto;
}

#logo {
    width: 80%;
    margin: 15px;
}

h1 {
    font-family: 'Redemption';
    color: white;
    font-size: 5vw;
    font-weight: normal;
    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;
    font-weight: normal;
    margin: auto;
    padding: 15px;
    margin-right: 5%;
    text-align: right;
    text-shadow:
        3px 3px 0 black,
        -3px 3px 0 black,
        -3px -3px 0 black,
        3px -3px 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-color: black;
    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: 600px;
    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.05s;
}

#toc a:hover {
    letter-spacing: 0.1em;
}

.character {
    color: #120e0a;
    padding: 15px;
    margin: 30px auto;
    width: 330px;
    height: 200px;
    border: var(--catalog-paper) double 10px;
}

.ar {
    background-image: url('/rdr/bgStory.webp');
}

.jn {
    background-image: url('/rdr/bgOnline.webp');
}

.section {
    background-image: url('/rdr/bgStory.webp');
    width: 650px;
    padding: 15px;
    margin: 30px auto;
    /* border: var(--catalog-ink) double 8px; */
}

.header-decoration {
    display: inline-block;
    background-image: url('/rdr/menu_header_1a.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.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%;
}

.no-label {
    position: relative;
    width: fit-content;
    display: block;
    height: 75px;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    margin-top: 40px;
    background-image: url('/rdr/hud_location_bg.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.no-label p {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    color: white;
    font-size: 2.8em;
}

.name {
    font-size: 3em;
    text-align: center;
    margin: auto;
}

.arthur {
    font-family: 'MorganHand';
}

.john {
    font-family: 'MarstonHand';
    margin: 10px;
}

#ar-jn {
    display: flex;
    margin: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-self: center;
}

.newtab {
    text-decoration: underline;
    font-size: 1.5em;
    margin: auto;
    margin-bottom: 30px;
    width: fit-content;
    transition: 0.1s;
}

.newtab:hover {
    letter-spacing: 0.05em;
}

.newtab a {
    color: var(--catalog-red);
}

.newtab a:hover {
    color: var(--catalog-blue);
}

#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 {
    display: block;
    width: 100%;
    margin: auto;
    max-width: 800px;
}

.doodle {
    display: inline-block;
    max-width: 400px;
    z-index: -5;
}

/* .doodle-TL {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0%, -85%);
    z-index: -5;
    max-width: 400px;
}

.doodle-TR {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(0, -200px);
    z-index: -5;
    max-width: 400px;
}

.doodle-BL {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(200px, -100px);
    z-index: -5;
    max-width: 400px;
}

.doodle-BR {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(-100px, 100px);
    z-index: -5;
    max-width: 400px;
} */

.wide {
    max-width: 1024px;
}

/* .invert-journal {
    filter: invert(100);
} */

.gallery {
    position: relative;
    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: 1%;
    width: 48%;
    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%;
    background-color: var(--catalog-ink);
}

.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;
    }

    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;
    }

    .doodle {
        width: 80%;
    }
}

@media screen and (max-width: 920px) {
    #header {
        width: 100%;
    }

    h2 {
        color: white;
        font-size: 4vw;
        padding: 15px;
        margin: auto;
        text-align: center;
        text-shadow: none;
    }

    #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%;
    }
}

@media screen and (max-width: 1300px) {
    .responsive {
        width: 100%;
    }

    .doodle-TL,
    .doodle-TR,
    .doodle-BL,
    .doodle-BR {
        display: inline-block;
        position: static;
        transform: translate(0, 0);
    }
}

/* #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;
} */