html {
    overscroll-behavior: none;
    width: 100%;
    height: 100%;
    overflow: visible;
}

body {
    font-family: "Noto Sans", sans-serif;

    color: black;
    margin: 0px;
    width: 100%;
    height: 100%;
    position: relative;
    overscroll-behavior: none;
}

.wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -1;
}

h1 {
    font-family: "momo_trust_displayregular", "Noto Sans", sans-serif;
}

a:link {
    color: #116baf;
    text-decoration: none;
}

a:visited {
    color: #3a7eb1;
    text-decoration: none;
}

#status-time {
    font-size: 12px;
    color: rgb(99, 88, 88);
}

.content-frame {
    width: 100%;
    height: 100%;
    border-style: none;
}

a:hover {
    color: #5692c0;
    background-color: transparent;
    text-decoration: underline;
}

a:active {
    color: #0e4a78;
    background-color: transparent;
    text-decoration: underline;
}

#content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.window {
    position: absolute;
    left: 50px;
    top: 50px;
    width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid rgb(150, 150, 150);
    overflow: hidden;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.window.inactive {
    opacity: 0.9;
    border: 1px solid rgb(150, 150, 150, 0.7);
}

.window.inactive > .window-content > iframe {
    pointer-events: none;
}

.window.inactive > .window-bar {
    color: #a7a7a7;
    background-color: rgba(150, 150, 150, 0.7);
}

#radioplayerwindow {
    width: 510px;
    height: 235px;
    left: 880px;
    top: 40px;
}

#soundcloudwindow {
    width: 510px;
    height: 235px;
    left: 920px;
    top: 320px;
}

#maincontentwindow > .window-content {
    background-color: #eaeaea;
    color: black;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    padding: 0px;
}

.resize-handle {
    position: absolute;
}

.handle-right {
    right: 0;
    top: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}
.handle-left {
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}
.handle-bottom {
    bottom: 0;
    left: 0;
    height: 8px;
    width: 100%;
    cursor: ns-resize;
}
.handle-top {
    top: 0;
    left: 0;
    height: 8px;
    width: 100%;
    cursor: ns-resize;
}

.handle-br {
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    cursor: nwse-resize;
}
.handle-bl {
    left: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    cursor: nesw-resize;
}
.handle-tr {
    right: 0;
    top: 0;
    width: 12px;
    height: 12px;
    cursor: nesw-resize;
}
.handle-tl {
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    cursor: nwse-resize;
}

.mascot {
    position: absolute;
    bottom: 0;
    right: 0;
    user-select: none;
    z-index: 1010;
    cursor: pointer;
}

.reflect {
    transform: scale(1, -1) translateY(-100%);
}

#wui {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#rest {
    flex: 1;
    position: relative;
}

#bar {
    height: 46px;
    z-index: 1020;

    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    background-image: url("/img/aero.png");
    background-size: cover;

    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: start;

    padding-left: 4px;
    padding-right: 4px;
}

#taskbar-windows {
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#taskbar-windows::-webkit-scrollbar {
    display: none;
}

#clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    color: white;
    font-size: 1.1em;
    text-shadow: 2px 2px 5px #00000090;
    margin-left: auto;
    white-space: nowrap;

    pointer-events: none;

    padding-left: 12px;
    padding-right: 12px;
}

.window-bar {
    height: 32px;

    background-color: rgba(255, 255, 255, 0.297);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-image: url("/img/aero.png");
    background-size: cover;

    border-bottom: 1px solid rgba(255, 255, 255, 0.25);

    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: start;
    align-items: center;
    flex-shrink: 0;

    padding-left: 12px;
    padding-right: 12px;

    color: #ffffff;
    text-shadow: 2px 2px 5px #00000090;

    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.window-bar:active {
    cursor: grabbing;
}

.window-content {
    background-color: rgb(200, 200, 200);
    flex: 1;
    padding: 12px;
    min-height: 0;
}

iframe.no-pointer-events {
    pointer-events: none;
}

#startbtn {
    cursor: pointer;
    transition: filter 0.3s;
    filter: brightness(1);
    opacity: 0.8;
}

#startbtn:hover {
    filter: brightness(1.2);
}

.bar-element {
    color: #ffffff;
    text-shadow: 2px 2px 5px #00000090;
    height: 44px;
    background: linear-gradient(
        23deg,
        rgba(0, 0, 0, 0.164) 0%,
        rgba(255, 255, 255, 0.838) 100%
    );
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 12px;
    padding-right: 12px;
    overflow: hidden;
    min-width: 180px;
    max-width: 180px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;

    transition: filter 0.3s;
    filter: brightness(1);
}

.bar-element:hover {
    filter: brightness(1.2);
}

.bar-element.inactive {
    background: linear-gradient(
        23deg,
        rgba(19, 19, 19, 0.2) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    text-shadow: 2px 2px 5px #00000040;
    filter: brightness(0.8);
}

.bar-element.inactive:hover {
    filter: brightness(1.2);
}

.app-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(2px 2px 5px #00000090);
}

.balloon {
    position: absolute;
    right: 250px;
    bottom: 160px;
    z-index: 1010;
    cursor: pointer;
}

.balloon-img {
    display: block;
    user-select: none;
    pointer-events: none;
}

.balloon-text {
    color: black;
    position: absolute;
    top: 12px;
    left: 12px;
    width: 290px;
    line-height: 1.2;
    text-align: center;
    height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.http-error {
    margin: auto;
    max-width: fit-content;
    text-align: center;
    font-size: 30px;
}

.http-error > h1 {
    font-size: 30px;
}

@font-face {
    font-family: "momo_trust_displayregular";
    font-weight: normal;
    font-style: normal;
    src: url("/fonts/momotrustdisplay.woff2") format("woff2");
}

@font-face {
    font-family: "Noto Sans JP";
    font-weight: 400;
    font-style: normal;
    src: url("/fonts/noto-sans-jp.woff2") format("woff2");
}

@media screen and (max-width: 768px) {
    body,
    html {
        width: auto;
        height: auto;
        overscroll-behavior: unset;
    }

    #wui {
        position: relative;
        overflow: visible;
    }

    #content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 32px 0;
        overflow: visible;
        width: 100%;
        max-height: none;
    }

    .window {
        position: relative;
        left: 0;
        top: 0;
        max-width: 90%;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .mascot {
        display: none;
    }

    .balloon {
        display: none;
    }

    .mascot.reflect {
        display: none;
    }

    #bar {
        display: none;
    }
}
