@import "/rdr/colors.css";

:root {
    background-color: black;
    background-image: url('/rdr/bgOnline.webp');
    color: black;
    scrollbar-color: var(--catalog-red) black;
    font-family: 'Hapna';
}

* {
    box-sizing: border-box
}

#container {
    background-color: var(--catalog-paper);
    background-image: url('/rdr/bgPaper.jpg');

    border-image-source: url('/rdr/frame.png');
    border-style: solid;
    border-width: 18px;
    border-image-slice: 12;

    max-width: 900px;
    margin: auto;
}

#title-page {
    max-width: 600px;
    margin: auto;
    padding: 10px;
}

h1 {
    text-align: center;
    font-size: 5em;
    letter-spacing: 0.1em;
}

h2 {
    text-align: center;
}

h3 {
    text-align: center;
    letter-spacing: 0.2em;
    font-weight: 100;
}

h4 {
    text-align: center;
    font-size: 2em;
    letter-spacing: 0.2em;
}

h5 {
    text-align: left;
    font-size: 1.5em;
    letter-spacing: 0.1em;
}

h6 {
    text-align: left;
    font-size: 1.2em;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: var(--catalog-red);
}

.desc {
    text-align: left;
    font-size: 1.2em;
    margin: auto;
    max-width: 80%;
    text-indent: 2em;
}

.deco {
    font-family: 'Catalog-Numbers';
    text-align: center;
    font-size: 2em;
}

.deco-red {
    font-family: 'Catalog-Numbers';
    text-align: center;
    font-size: 2em;
    color: var(--catalog-red);
}

.divider-black {
    background-image: url("/rdr/divider-black.png");
    background-repeat: repeat-x;
    background-size: auto 2px;
    content: " ";
    height: 2px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 20px auto;
    position: relative;
}

.new-page {
    color: var(--catalog-ink);
    margin: 6em auto;
    border-width: 6px;
    border-style: double;
}

#preface {
    max-width: 800px;
    margin: auto;
    padding: 10px;
}

#preface p {
    text-align: center;
    letter-spacing: 0.1em;
}

.settlements,
.natural-sights,
.points-of-interest,
.rumors {
    padding: 20px;
}

.settlements div,
.natural-sights div,
.points-of-interest div,
.rumors div {
    display: flex;
}

.settlements div p,
.natural-sights div p,
.points-of-interest div p,
.rumors div p {
    text-indent: 2em;
    width: 50%;
}

.settlements div img,
.natural-sights div img,
.points-of-interest div img,
.rumors div img {
    /* -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%; */

    border: var(--catalog-paper) double 10px;

    background-color: var(--catalog-ink);
    margin: 10px;
    width: 50%;
    max-height: 256px;
}

.rumors h5,
.rumors h6,
.natural-sights h6 {
    text-align: right;
}

.natural-sights h5,
.region {
    text-align: center !important;
}

.wildlife,
.plants {
    display: flex;
    flex-direction: row;

    width: 60%;
    margin: 20px auto;
    padding: 20px;

    border-image-source: url('/rdr/frame.png');
    border-style: solid;
    border-width: 6px;
    border-image-slice: 12;
}

.plants {
    width: 40%;
}

.wildlife strong,
.plants strong {
    text-align: center;
}

.wildlife div,
.plants div {
    width: 100%;
    flex-direction: column;
}

.wildlife li,
.plants li {
    padding: 2px;
}

.plants ul {
    list-style-type: none;
    padding: 0;
}

.plants li {
    text-align: center;
}

.legendary {
    color: var(--gold);
    text-shadow: 1px 1px 0 black, -1px 1px 0 black, -1px -1px 0 black, 1px -1px 0 black;
}

#preface li {
    padding: 5px;
}

#preface li a {
    text-decoration: none;
    color: var(--catalog-blue);
}

#preface li a:hover {
    color: var(--catalog-red);
}

/*https://asaaki.github.io/responsive-toc-leaders-in-css/ */

.entry {
    display: grid;
    grid-template-columns: auto max-content;
    grid-template-areas: "chapter page";
    align-items: end;
    gap: 0 .25rem;
    /* customize the gap to your needs */
}

.chapter {
    grid-area: chapter;
    position: relative;
    overflow: hidden;
}

.chapter::after {
    position: absolute;
    padding-left: .25ch;
    /* customise the padding to your needs */
    /* adjust the amount of dots to your needs */
    content: " . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . ";
    text-align: right;
    /* optional, can be removed */
}

.page {
    grid-area: page;
}