@import "/rdr/colors.css";

:root {
    --bg-color: var(--rd-grey);
    --bg-img: url("/rdr/photos/ambarino/1174180_20250901051535_1.webp");

    background-color: var(--bg-color);
    background-image: var(--bg-img);
    background-size: cover;
    background-attachment: fixed;

    font-family: "Hapna";
    font-size: 12pt;
    scrollbar-color: var(--catalog-blue) black;
}

* {
    box-sizing: border-box;
}

body {
    padding: 10px;
}

#container {
    max-width: 900px;
    margin: auto;
}

h1 {
    font-family: "Redemption";
    font-size: 32pt;
    color: white;
    text-shadow: 3px 3px 0 black, -3px 3px 0 black, -3px -3px 0 black, 3px -3px 0 black;
    text-align: center;
    font-weight: normal;
}

h2 {
    font-family: "RDR-Lino";
    font-size: 18pt;
    color: var(--catalog-red);
    text-align: center;
}

h3,
h4,
.series {
    text-align: center;
}

h3 {
    font-family: "RDRUltra";
    font-size: 1.5em;
}

h3 a {
    color: var(--catalog-blue);
    text-decoration: none;
}

h3 a:hover {
    color: var(--catalog-red);
    text-decoration: underline;
    letter-spacing: 0.05em;
}

h4 a {
    color: black;
    text-decoration: none;
}

h4 a:hover {
    color: var(--catalog-red);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.series a {
    color: var(--catalog-red);
    text-decoration: none;
}

.series a:hover {
    color: var(--catalog-blue);
    text-decoration: underline;
    letter-spacing: 0.05em;
}

.red {
    color: var(--logo-red);
}

.intro {
    background-image: url("/rdr/red-grain.png");
    background-size: 100%;
    color: white;
    padding: 20px 40px;
    line-height: 1.5em;
    border-radius: 6px;
}

hr {
    border: none;
    border-top: 6px double var(--logo-red);
    color: var(--logo-red);
    overflow: visible;
    text-align: center;
    height: 5px;
    margin: 2em auto;
}

hr::after {
    background-image: var(--bg-img);
    background-size: cover;
    background-attachment: fixed;
    font-family: "Hapna";
    content: "$$$";
    padding: 0 8px;
    position: relative;
    top: -14px;
}

#toc {
    background-image: url("/rdr/bg.jpg");
    background-size: 100%;
    background-clip: padding-box;
    font-family: 'Catalog-Bold';
    width: 400px;
    margin: 20px auto;
    text-align: center;
    padding: 20px 40px;
    border-image-source: url('/rdr/red-frame.png');
    border-style: solid;
    border-width: 8px;
    border-image-slice: 12;
}

#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;
}

.toc {
    border-top: 3px dashed var(--logo-red);
}

.toc::after {
    background-image: url("/rdr/bg.jpg");
    background-size: 304px;
    background-position: 50% 40%;
    background-attachment: scroll;
    font-family: "Hapna";
    content: "***";
    top: -9px;
}

#index {
    display: flex;
    justify-content: center;
    background-image: url("/rdr/bg.jpg");
    background-size: 100%;
    background-clip: padding-box;
    font-family: 'Hapna';
    color: white;
    max-width: 600px;
    min-width: 340px;
    margin: auto;
    margin-bottom: 5em;
    text-align: left;
    padding: 0;
    border-image-source: url('/rdr/red-frame.png');
    border-style: solid;
    border-width: 8px;
    border-image-slice: 12;
    cursor: default;
}

#index ul {
    text-indent: -20px;
    list-style-type: none;
    line-height: 2em;
    padding: 20px;
    margin-left: 20px;
}

#index ul li:nth-child(2n) {
    color: lightcoral;
}

.fic,
.mod {
    background-image: url("/rdr/bgPaper.jpg");
    /* box-shadow: 5px 5px 15px black; */
    padding: 15px;
    border-radius: 6px;
    max-width: 800px;
    min-width: 360px;
    margin: auto;
    margin-bottom: 4em;
}

.fic blockquote {
    background-image: url("/rdr/bgOnline.webp");
    padding: 15px;
    line-height: 1.76em;
    border-radius: 12px;
    color: white;
}

.mod blockquote {
    background-image: url("/rdr/bgStory.webp");
    padding: 15px;
    line-height: 1.76em;
    border-radius: 12px;
    color: white;
}

th {
    padding: 10px 20px;
    text-align: left;
}

tr:nth-child(5) {
    color: var(--catalog-red) !important;
}

@media screen and (max-width: 880px) {
    .mod, .fic {
        width: 100%;
    }
}

@media screen and (max-width: 420px) {
    #toc, #index {
        width: 100%;
    }

    blockquote {
        margin: 0;
        width: 100%;
    }
}

@media screen and (max-width: 390px) {
    
}