@import url('https://fonts.googleapis.com/css2?family=Momo+Trust+Display&display=swap'); /* HEADER FONT */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap'); /* MAIN FONT */
@import url('https://fonts.googleapis.com/css2?family=Fuzzy+Bubbles:wght@400;700&display=swap'); /* BLOG FONT */

:root {
    --delay: 0s;
    --bgGradient1: rgba(2, 23, 69, 0.87);
    --bgGradient2: rgba(100, 3, 90, 0.87);
}

body {
    color: white;
    background-image: linear-gradient(135deg, var(--bgGradient1), var(--bgGradient2)), url("/images/background/checkeredbg.png");
    background-repeat: no-repeat, repeat;
    background-attachment: fixed;
    background-size: auto, 29px;
    margin: 0;
    text-align: center;
    text-shadow: 1.25px 1.25px 2px black;
    font-family: "Varela Round", sans-serif;
    animation: bgScroll 3.5s linear infinite;
    overflow-x: hidden;
}

#container {
    display: inline-block;
    margin: 6% auto 10px;
}

div[class^="grid"] {
    display: inline-grid;
    position: relative;
    margin: 5px;
    width: 560px;
    gap: 6px 10px;
    
    /* blog posts */
    &:has(#blogText) {
        width: 720px;
        grid-template-areas:
            ". text"
            ". text";
        grid-template-columns: 1fr 9fr;
    }
}

#header img {margin: 0 10px;}

#newLogo {
    width: 360px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}
.decor {width: 120px;}
.solidpink {
    opacity: 0.9;
    font-size: 21px;
    font-weight: bold;
    font-family: "Momo Trust Display", sans-serif;
    font-style: italic;
}

/* 'ERS */

header {
    position: absolute;
    margin: 10px auto;
    width: 350px;
    top: 0;
    left: 0;
    right: 0;
}
header.fit {width: fit-content;}

h1, h2, h3:not([id^="post"]), h1 + span, #blogText .header {
    font-family: "Momo Trust Display", sans-serif;
}
h1 {font-size: 34px;}
h1:has(+ span) {margin-bottom: 0;}
h1 + span {font-size: 25px;font-weight: bold;}

h2 {font-size: 28px;}
h3 {margin: 10px;font-size: 22px;}

h2:has(+h2) {margin-bottom: 3px;}
h2 + h3 {margin-top: 0;}

h3 span {
    font-family: "Varela Round", sans-serif;
    font-weight: initial;
    font-size: 12px;
}

.heading {
    display: inline-block;
    border: 2px solid white;
    padding: 10px;
}

#logo {
    width: 69%;
    object-fit: contain;
}

footer {
    opacity: 0.9;
    margin: 28px auto 8px;
    font-size: 18px;
}
footer a {color: white;}
footer sup {display: flex;justify-content: center;}
footer span, sup span {margin: 0 8px;}

/* ARTICLES (grid boxes) */

article {
    display: inline-block;
    position: relative;
    background-image: linear-gradient(135deg, rgba(3,23,67,0.5), rgba(103,8,93,0.5));
    border: 2px solid black;
    border-radius: 12px;
    padding: 9px 0;
    width: stretch;
    text-align: left;
    text-shadow: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: border 0.2s;
}
article:hover {border-color: #c3c3c3;}

article h3 {
    background: rgba(255,255,255,0.15);
    margin: 0 0 5px;
    padding-left: 10px;
    font-size: 21px;
    text-align: left;
    &.gloomy {background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,0,0,0.15));}
}
article h3:last-child {margin: 0;}

article p:not(#recentpostlistdiv) {
    padding: 0 6px;
    text-indent: 2em;
}
article q {
    display: block;
    text-align: center;
}

#links {
    text-align: center;
    overflow: auto;
}
#links a {
    display: block;
    background: rgba(0,0,0,0.4);
    margin: 3px 0;
    padding: 7px 0;
    font-size: 19px;
    font-weight: bold;
    &:hover {
        color: black !important;
        background: rgba(255,255,255,0.4);
    }
}

.background {
    background-image: linear-gradient(rgba(var(--hue),var(--dim))), var(--bg) !important;
    background-position: var(--pos) !important;
    background-size: cover !important;
    --hue: 0,0,0;
    --pos: 0% 0%;
    --dim: 0.6;
}

/* BLOG STUFFS */

#blogTitle {
    background: url(/images/background/blogTitle.png) no-repeat left;
    background-size: 450px;
    margin: auto;
    padding: 10px;
    width: 700px;
    text-align: left;
}
#blogText {
    grid-area: text;
    background: rgba(0,0,0,0.5);
    border-radius: 12px 3px 3px 12px;
    height: 500px;
    line-height: 1.5;
    overflow: auto;
}

#blogText h4 {
    border-bottom: 1px dashed rgba(255,255,255,0.4);
    margin: 15px auto -5px;
    padding-left: 10px;
    width: 96%;
    font-size: 18px;
}
#blogText q {
    opacity: 0.7;
    margin: auto;
    width: 90%;
    line-height: 1.3;
    font-size: 14px;
}

#blogNav #links { /* chapter selection box */
    background-image: linear-gradient(135deg, rgba(27,102,45,0.5), rgba(94,103,8,0.5));
    & a {color: #e2f62e;}
}

#postTitleH1, #postDate {font-family: "Fuzzy Bubbles", sans-serif;}
#postTitleH1 {
    margin: 30px 0 5px;
    font-size: 36px;
    letter-spacing: -1.2px;
    & span {
        font-weight: initial;
        font-size: 22px;
    }
}
#postDate {
    margin: 0 0 28px;
    padding-left: 10px;
    font-size: 18px;
    font-weight: normal;
}

h3[id^="post"] {
    border-style: dashed none dashed none !important;
    margin: 0 0 14px;
    padding-left: 0;
    text-align: center;
    font-size: 18px;
}
#postWarning {
    color: #ffa3a3;
    background: rgba(255,116,116,0.15);
    border: 2px dashed #833b3b;
}
#postNotice {
    color: #b2b2b2;
    background: rgba(210,210,210,0.15);
    border: 2px dashed #595959;
}
#postSpoiler {
    color: #fdffa3;
    background: rgba(253,255,116,0.15);
    border: 2px dashed #7d833b;
}

/* BUBBLES */

.bubble, #anBubble {
    display: inline-block;
    color: white !important;
    border: 2px solid #c7c7c7;
    border-style: solid none none solid;
    border-radius: 20px;
    margin: 20px 5px;
    padding: 5px 40px;
    width: fit-content;
    font-size: 18px;
    text-decoration: none !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5) inset, 0 2px 5px rgba(19,17,20,0.6);
    transition: opacity 0.5s ease, width 0.2s ease, text-shadow 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    z-index: 1;
}
.bubble:not(.off):hover, #announcement:hover #anBubble {
    border-color: #e3e3e3;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    box-shadow: 0 0 9px rgba(255,255,255,0.8) inset;
    transform: scale(1.05);
}
.bubble:not(.off) {background: var(--bg) !important;}

div:has(#links) > .bubble {
    margin: 3px 0;
    padding: 3px 0;
    width: stretch;
}

.indicator {
    display: flex;
    position: absolute;
    background: rgba(0,0,0,0.8);
    border: 3px solid black;
    border-radius: 25px;
    width: 30px;
    max-width: 170px;
    min-height: 30px;
    top: -11px;
    right: -11px;
    font-size: 17px;
    line-height: initial;
    word-break: break-all;
    flex-flow: row-reverse wrap;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, width 0.2s, height 0.2s, padding 0.2s;
    z-index: 1;
}
.indicator::after {content: "i";}

.indicator:hover {
    background: rgba(0,0,0,0.9);
    padding: 5px 10px;
    width: auto;
    height: auto;
}
.indicator:hover::after {
    content: var(--indicMsg);
    text-align: right
}

/* LINK BUBBLES */

.linkBubble {
    display: block;
    color: white !important;
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.3)), var(--bg);
    background-position: var(--pos);
    background-size: cover;
    border: 3px solid black;
    border-radius: 16px;
    margin: 5px;
    width: 45%;
    text-align: left;
    text-decoration: none !important;
    transition: border 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 0 white inset, 0 2px 5px rgba(6,5,6,0.6);
    --pos: center;
}
.linkBubble:hover {
    border-color: white;
    box-shadow: 0 0 24px white inset, 0 2px 5px rgba(139,109,151,0.6);
}

.linkBubble p {
    margin: 5px 0;
    padding: 0 8px 5px;
    font-size: 16px;
}

.linkBubble h3 {
    background: rgba(0,0,0,0.5);
    border-radius: 13px 13px 0 0;
    margin: 0;
    padding: 5px 8px;
    font-size: 24px;
}

.linkBubble span {
    opacity: 0;
    margin-left: 5px;
    font-size: 18px;
    font-family: "Varela Round", sans-serif;
    transition: opacity 0.2s;
}
.linkBubble:hover span, span.urgent, span.float {opacity: 1;}
.linkBubble span.urgent {color: #ff40a9;}
.linkBubble span.float {float: right;margin-top: 5px;}

/* LINKS */

a {color: #f62e84;text-decoration: none;}
a:hover {color: #ff8bbd;text-decoration-line: underline;}

.linkChar {
    position: relative;
    margin: var(--top) auto;
    width: 100%;
    top: var(--top);
    object-fit: contain;
    transition: filter 0.2s, transform 0.2s;
    filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.6));
}
.linkChar:hover {
    transform: scale(1.015);
    filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 6px white) brightness(110%);
}

a:has(.linkChar) {
    position: absolute;
    width: var(--width);
}
a:has(.linkChar) span {
    opacity: 0;
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
    transition: opacity 0.2s, bottom 0.2s;
    z-index: 1;
}
a:has(.linkChar):hover span {
    opacity: 1;
    bottom: -10px;
}

#logo, .gridBox img, .gamelogo, a:has(.art) {
    filter: drop-shadow(4px 4px 4px rgba(0,0,0,0.6));
}

/* IMAGES */

.decor {filter: drop-shadow(2px 2px rgba(0,0,0,0.6));}

.bgimg {
    opacity: 0;
    position: fixed;
    width: auto;
    height: auto;
    top: 100px;
    left: 100px;
    pointer-events: none;
    animation: fadeloop 5s ease infinite;
    animation-delay: var(--delay);
    z-index: -1;
}

.hangingDecor {
    opacity: 0.3;
    background: var(--img) repeat-x;
    background-size: 25%;
    position: fixed;
    width: 100%;
    height: 30%;
    top: 0;
    left: 0;
    animation: fellOff 1s ease;
    z-index: -1;
}

/* MISC. RULES */

hr {
    border: 0;
    border-bottom: 2px dashed rgba(0,0,0,0.6);
    margin: 17px auto;
    width: 90%;
}
hr.short {
    border: 0;
    border-bottom: 2px dashed rgba(255,255,255,0.5);
    margin: 10px auto;
    width: 75%;
}

.hotpink {
    color: transparent;
    background-image: linear-gradient(90deg, #c790fe, #fe5c96);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: none;
    filter: drop-shadow(1.25px 1.25px 1px black);
}
.solidpink, #blogText::after {color: #ea70bc;}

.fadedText {
    opacity: 0.7;
    margin-top: 8px;
    font-size: 14px;
    text-shadow: none;
    pointer-events: none;
}

.off {
    opacity: 0.5;
    cursor: not-allowed;
}

marquee {
    grid-area: marquee;
    background: rgba(0,0,0,0.3);
    margin: 0;
    padding: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.scrolling div, .scrolling b {
    animation: scrollingText 15s linear infinite;
}

/* ANIMATIONS */

@keyframes bgScroll {
    100% {background-position: 0, 58px 58px;}
}

@keyframes scrollingText {
    0% {transform: translateX(100%);}
    100% {transform: translateX(-100%)}
}

@keyframes fadeloop {
    0% {opacity: 0}
    50% {opacity: 0.3}
    100% {opacity: 0}
}

@keyframes hover {
    0%, 100% {transform: translate(0, 0);}
    50% {transform: translate(0, var(--reach));}
}

@keyframes fellOff {
    from {transform: translateY(-50px);}
    to {}
}

@keyframes portalSpin {
    100% {transform: rotate(360deg);}
}

@media (prefers-reduced-motion: reduce) {
    body, .linkChar, .charHover, .hangingLeaves, #shrinePortal {
        animation: none !important;
    }
}