/* 霧小蒜の小窩 | https://ciallovo.top */
:root {
    --fff: rgb(255, 255, 255);
    --black: rgb(32, 32, 32);
    --white_10: rgba(239, 239, 239, 0.06);
    --white_20: rgba(239, 239, 239, 0.13);
    --white_50: rgba(239, 239, 239, 0.31);
    --white_90: rgba(239, 239, 239, 0.56);
    --white_ef: rgba(239, 239, 239, 0.94);
    --white: rgb(239, 239, 239);
    --blue: rgb(1, 33, 49);
    --blue_10: rgba(1, 33, 49, 0.06);
    --blue_20: rgba(1, 33, 49, 0.13);
    --blue_80: rgba(1, 33, 49, 0.5);
    --blue_light: rgb(1, 33, 65);
    --brown: rgb(229, 208, 174);
    --brown_dark: rgb(154, 114, 50);
    --select: rgba(239, 239, 239, 0.13);
}

@media (prefers-color-scheme: dark) {
    :root {
        --fff: rgb(255, 255, 255);
        --black: rgb(32, 32, 32);
        --white_10: rgba(239, 239, 239, 0.06);
        --white_20: rgba(239, 239, 239, 0.13);
        --white_50: rgba(239, 239, 239, 0.31);
        --white_90: rgba(239, 239, 239, 0.56);
        --white_ef: rgba(239, 239, 239, 0.94);
        --white: rgb(239, 239, 239);
        --blue: rgb(1, 33, 49);
        --blue_10: rgba(1, 33, 49, 0.06);
        --blue_20: rgba(1, 33, 49, 0.13);
        --blue_80: rgba(1, 33, 49, 0.5);
        --blue_light: rgb(1, 49, 65);
        --brown: rgb(229, 208, 174);
        --brown_dark: rgb(154, 114, 50);
        --select: rgba(239, 239, 239, 0.13);
    }
}

body.light {
    --fff: rgb(32, 32, 32);
    --black: rgb(255, 253, 252);
    --white_10: rgba(32, 32, 32, 0.06);
    --white_20: rgba(32, 32, 32, 0.13);
    --white_50: rgba(32, 32, 32, 0.31);
    --white_90: rgba(32, 32, 32, 0.56);
    --white_ef: rgba(32, 32, 32, 0.94);
    --white: rgb(32, 32, 32);
    --blue: rgb(255, 253, 250);
    --blue_10: rgba(32, 32, 32, 0.06);
    --blue_20: rgba(255, 250, 242, 0.13);
    --blue_80: rgba(255, 250, 242, 0.5);
    --blue_light: rgb(255, 253, 250);
    --brown: rgb(154, 114, 50);
    --brown_dark: rgb(229, 208, 174);
    --select: rgba(229, 208, 174, 0.56);

    background: rgb(255, 253, 250);
}

.theme-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    clip-path: circle(0px at 0 0);
    -webkit-clip-path: circle(0px at 0 0);
    -webkit-transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

*::selection {
    background: var(--select);
    color: var(--blue_light);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--blue) transparent;
}

html,
body {
    min-height: 100%;
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(142, 142, 142, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(142, 142, 142, 0.7);
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(142, 142, 142, 0.4) transparent;
}

html {
    scroll-behavior: smooth;
    position: relative;
}

@font-face {
    font-family: "CEFFontsCJK";
    src: url("/assets/fonts/CEFFontsCJK.woff2");
    font-display: swap;
}

body {
    font-family: "CEFFontsCJK", sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    color: var(--white);
    margin: 0;
    background: url('/assets/pic/background.jpeg') center center/cover no-repeat fixed;
    padding: 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(to right, var(--blue_10) 1px, transparent 1px),
        linear-gradient(to bottom, var(--blue_10) 1px, transparent 1px);
    background-size: 24px 24px;
    background-repeat: repeat;
    background-attachment: scroll;
}

button {
    font-family: "CEFFontsCJK", sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline;
    margin: 0;
    line-height: 1.6em;
    font-size: 0.8em;
    border: none;
    background: none;
    color: var(--brown);
    text-decoration: none;
    cursor: pointer;
    outline: none;
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-animation: show 0.1s;
    animation: show 0.1s;
}

img {
    width: calc(100% - 10px);
    height: auto;
    border-radius: 5px;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 99;
}

@media (min-width: 769px) {
    img {
        max-width: 40%;
    }
}

a {
    text-decoration: none;
}

hr {
    color: var(--white_10);
}

footer {
    text-align: center;
    color: rgb(68, 128, 99);
    margin-top: auto;
    margin-bottom: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-animation: show-footer 1s;
    animation: show-footer 1s;
}

footer a {
    color: var(--brown);
    text-decoration: none;
    margin: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

footer p {
    color: var(--white);
    text-decoration: none;
    margin: 0;
    overflow-wrap: break-word;
}

footer hr {
    border: 0;
    height: 1px;
    background-color: var(--white_20);
    margin-left: 20%;
    margin-right: 20%;
}

@keyframes show-footer {
    0% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    60% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes show-footer {
    0% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    60% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--white_90);
}

.gotop {
    border: none;
    display: none;
    text-align: center;
    position: fixed;
    bottom: 3em;
    right: 2em;
    font-size: 1.3em;
    border-radius: 50px;
    background-color: var(--blue_20);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: var(--white);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 1000;
}

@media (max-width: 768px) {
    footer {
        font-size: 0.8em;
    }

    .gotop {
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes delay {
    0% {
        opacity: 0;
    }

    99% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes delay {
    0% {
        opacity: 0;
    }

    99% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.jswarning {
    visibility: visible;
    text-align: center;
    overflow-wrap: break-word;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-animation: delay 5s;
    animation: delay 5s;
}

@media screen and (max-width: 170px) {
    .jswarning {
        font-size: 0.8em;
    }
}

.widthminwarning {
    visibility: hidden;
    text-align: center;
    overflow-wrap: break-word;
    pointer-events: none;
    font-size: 0;
    margin: 0;
}

@media screen and (max-width: 170px) {
    .widthminwarning {
        padding-top: 15px;
        visibility: visible;
        pointer-events: auto;
        font-size: 0.8em;
    }
}

.widthmaxwarning {
    visibility: hidden;
    text-align: center;
    overflow-wrap: break-word;
    pointer-events: none;
    font-size: 0;
    margin: 0;
}

@media screen and (min-height: 1200px) and (min-width: 1800px) {
    .widthmaxwarning {
        padding-top: 15px;
        visibility: visible;
        pointer-events: auto;
        font-size: 0.8em;
    }
}