@font-face {
    font-family: Papercuts;
    src: url("papercuts-2.ttf");
}

@font-face {
    font-family: Silkscreen;
    src: url("silkscreen.ttf");
}

@font-face {
    font-family: Dotgothic;
    src: url("dotgothic.ttf");
}
@font-face {
    font-family: Genshin;
    src: url("genshin1.ttf");
}
@font-face {
    font-family: Deathnote;
    src: url("deathnote.ttf");
}
 {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-image: url("aero.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Papercuts;
    color: #597a89;
    cursor: url("cursor.png"), auto;
    overflow-x: hidden;
}

.layout {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
    margin-top: 5vh;
    position: relative;
    width: 92vw;
    height: 88vh;
    min-height: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    z-index: 1;
}

.layout::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.55);
    border: 3px dotted #c4c9d7;
    border-radius: 10px;
    z-index: -1;
    pointer-events: none;
}

.window-slot {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
}

.main-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.window-bar {
    width: 100%;
    height: 40px;
    flex-shrink: 0;
    background: #d3f0faff;
    border-top: 3px solid #97abe3ff;
    border-left: 5px solid #97abe3ff;
    border-right: 3px solid #97abe3ff;
    border-bottom: 1px solid #97abe3ff;
    box-shadow: 5px 0 0 #89CFF0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
}

.window-title {
    font-family: Papercuts;
    color: #1780b0ff;
    font-size: 16px;
}

.window-buttons {
    display: flex;
    height: 100%;
}

.window-buttons button {
    width: 38px;
    height: 100%;
    border: none;
    border-left: 1px solid #c4c9d7;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #597a89;
    cursor: url("cursor.png"), pointer;
}

.window-buttons button:hover {
    background: #89CFF0;
}

.main-box {
    width: 100%;
    flex: 1;
    background: white;
    box-shadow: 5px 5px 0 #c0cdf2ff;
    border-top: none;
    border-bottom: 3px solid #97abe3ff;
    border-right: 3px solid #97abe3ff;
    border-left: 5px solid #97abe3ff;
    padding: 25px;
    box-sizing: border-box;
    font-family: Papercuts;
    color: #798cc2ff;
    font-size: 20px;
    overflow-y: auto;
}

.main-box h1 {
    color: #006FA6;
    margin-top: 0;
}

.main-box h2 {
    color: #006FA6;
}

.main-box a {
    color: #006FA6;
    text-decoration: none;
}

.main-box a:hover {
    text-decoration: underline;
}
.genshin-page {
    font-family: Genshin, sans-serif;
}

.genshin-page h1 {
    font-family: Genshin, sans-serif;
}

.genshin-page p {
    font-family: Genshin, sans-serif;
}
.deathnote-page {
    font-family: Deathnote, sans-serif;
}

.deathnote-page h1 {
    font-family: Deathnote, sans-serif;
}

.deathnote-page p {
    font-family: Deathnote, sans-serif;
}
.chiikawa-image {
    width: 400px;
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
}

.chiikawa-small,
.chiikawa-big {
    width: 250px;
    height: 250px;
    max-width: 45%;
    object-fit: cover;
    border-radius: 8px;
    margin: 5px;
}

.scroll-box {
    width: 300px;
    max-width: 100%;
    height: 120px;
    overflow-y: auto;
    background: white;
    border: 3px solid #89CFF0;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.scroll-item {
    padding: 5px 0;
}

.nav-box {
    background: #d3f0faff;
    width: 220px;
    min-width: 220px;
    height: 100%;
    flex-shrink: 0;
    border-top: 3px solid #97abe3ff;
    border-bottom: 3px solid #97abe3ff;
    border-right: 3px solid #97abe3ff;
    border-left: 5px solid #97abe3ff;
    box-shadow: 5px 5px 0 #89CFF0;
    padding: 15px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.menu-category {
    display: flex;
    flex-direction: column;
}

.menu-category strong {
    font-family: Dotgothic, sans-serif;
    font-weight: bold;
    color: #505DB5;
    padding: 8px 20px;
    border-bottom: 1px solid #071C8F;
    background: transparent;
}

.nav-box button {
    width: 100%;
    padding: 8px 20px;
    border: none;
    border-bottom: 1px solid #071C8F;
    border-radius: 0;
    background: #FFFFFF;
    color: #505DB5;
    font-family: Dotgothic, sans-serif;
    font-size: 15px;
    cursor: url("cursor.png"), pointer;
    text-align: left;
    box-shadow: inset 0 1px 0 #E4E9FF;
    transition:
        text-indent 0.15s ease,
        border-color 0.15s ease;
}

.nav-box button:hover {
    background: #FFFFFF;
    text-indent: 4px;
    border-bottom-color: #717EEB;
}

.nav-box button:active {
    text-indent: 2px;
}

.menu-category:last-child button:last-child {
    border-bottom: none;
}

.main-window.hidden {
    visibility: hidden;
}

.main-window.small-window {
    position: fixed;
    width: 350px;
    height: auto;
    z-index: 1000;
}

.main-window.small-window .window-bar {
    width: 350px;
    cursor: move;
}

.main-window.small-window .main-box {
    width: 350px;
    height: 250px;
    flex: none;
}

.social-bar {
    width: 92vw;
    margin: 20px auto 50px auto;
    padding: 15px;
    box-sizing: border-box;
    background: #d7edf5;
    border-top: 3px solid #97abe3ff;
    border-bottom: 3px solid #97abe3ff;
    border-right: 3px solid #97abe3ff;
    border-left: 5px solid #97abe3ff;
    box-shadow: 5px 5px 0 #89CFF0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.social-bar a {
    display: inline-block;
    padding: 7px 10px;
    min-width: auto;
    text-align: center;
    background: #e6dfff;
    border: 2px solid #89CFF0;
    border-radius: 8px;
    color: #597a89;
    text-decoration: none;
    font-family: Silkscreen, sans-serif;
    font-size: 12px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.9),
        2px 2px 0 #c4c9d7;
}

.social-bar a:hover {
    background: #d7edf5;
    text-decoration: none;
}

.social-bar img {
    display: block;
    width: auto;
    height: auto;
    border: none;
}

.social-bar img:hover {
    transform: scale(1.05);
}

.setting-button {
    border: 2px solid #89CFF0;
    border-radius: 10px;
    background: white;
    color: #597a89;
    font-family: Papercuts;
    font-size: 17px;
    padding: 8px 15px;
    cursor: url("cursor.png"), pointer;
}

.setting-button:hover {
    background: #d7edf5;
}

#music-player {
    margin-top: 15px;
}

@media (max-width: 850px) {

    .layout {
        flex-direction: column;
        align-items: stretch;
        width: 94vw;
        height: auto;
        min-height: auto;
        margin-top: 20px;
        padding: 8px;
    }

    .window-slot {
        width: 100%;
        height: 70vh;
        min-height: 70vh;
    }

    .main-window {
        width: 100%;
        height: 100%;
    }

    .main-box {
        padding: 20px;
    }

    .nav-box {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: auto;
        padding: 12px 0;
    }

    .nav-box button {
        font-size: 15px;
        padding: 8px 15px;
    }

    .menu-category strong {
        padding: 7px 15px;
    }

    .social-bar {
        width: 94vw;
        margin-top: 15px;
        padding: 12px;
    }

    .social-bar a {
        font-size: 11px;
    }
}

@media (max-width: 500px) {

    .layout {
        width: 94vw;
        margin-top: 12px;
        padding: 6px;
    }

    .window-slot {
        height: 75vh;
        min-height: 75vh;
    }

    .main-box {
        padding: 16px;
        font-size: 18px;
    }

    .window-title {
        font-size: 14px;
    }

    .window-buttons button {
        width: 34px;
    }

    .nav-box {
        height: auto;
        min-height: auto;
        padding: 10px 0;
    }

    .nav-box button {
        font-size: 15px;
        padding: 8px 15px;
    }

    .chiikawa-small,
    .chiikawa-big {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .social-bar {
        width: 94vw;
        padding: 10px;
    }
}