body {
    margin: 0;
    font-size: 14px;
    font-family: "Verdana", sans-serif;
    background-image: url("../images/background.webp");
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

#startup {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(#0f0f0f, #000000);
    color: #ffffff;
    z-index: 99999;
    transition: opacity 1s ease;
}

#startup-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
}

#startup-box img {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
}

#startup-box h1 {
    font-size: 28px;
    letter-spacing: -1px;
    font-weight: 300;
    transform: scaleY(36px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#progress-container {
    width: 180px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to bottom, #ffffff99 0%, #ffffff33 50%, #ffffff00 50%, #ffffff00 80%, #ffffff99 100%);
    border: 1px solid #ffffff80;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #c0dcff 50%, #84bcff 50%, #84bcff 80%, #ffffff 100%);
    transition: width 0.1s linear;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

#desktop {
    width: 100vw;
    height: calc(100vh - 40px);
}

.desktopRow { display: flex; }

.icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 6px;
    padding: 3px;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.icon:hover {
    padding: 2px;
    border: 1px solid #ffffff80;
    background: #c0dcff80;
}

.icon img {
    width: min-content;
    height: 38px;
}

.icon span {
    text-shadow:
        -0.5px -0.5px 0 #000000,
        0.5px -0.5px 0 #000000,
        -0.5px 0.5px 0 #000000,
        0.5px 0.5px 0 #000000,
        0px 0px 2px #000000; 
    font-size: 12px;
    line-height: 14px;
}

.window {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 100px;
    width: 1000px;
    height: 600px;
    border: 1px solid #00000080;
    z-index: 1;
}

.titlebar {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    height: 22px;
    backdrop-filter: blur(5px);
    box-shadow: inset 0px 1px 0px #ffffff66;
    background: #c0dcff99;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: move;
}

.titlebar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.titlebar span img { height: 22px; }

.titlebar button {
    width: 36px;
    border: 1px solid #00000099;
    border-radius: 2px;
    background: linear-gradient(to bottom, #f54d41 0%, #f1655b 50%, #d34136 50%, #f54d41 100%);
    color: #ffffff;
    font-weight: bold;
    text-shadow:
        -1px -1px 0 #00000099,
        1px -1px 0 #00000099,
        -1px 1px 0 #00000099,
        1px 1px 0 #00000099;
    box-shadow: inset 0 0 2px #ffffff;
    cursor: pointer;
}

.content {
    height: calc(100% - 20px);
    border: 2px solid;
    border-color: #e0e0e0 #ffffff #ffffff #e0e0e0;
    background: #ffffff;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.window.about-me .content, .window.art .content {
    height: calc(100% - 70px);
    padding: 20px;
    overflow-y: scroll;
}

.window.python {
    width: 700px;
    height: 500px;
}

.window.art {
    width: 800px;
    height: 800px;
}

.window.art img:not(.titlebar img) {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.window#amap-mall-kiosk {
    width: 399px;
    height: 678px;
}

.window#python-trigonometry { height: 600px; }

.window#python-goblin-fight { height: 700px; }

.window#python-islands {
    width: 700px;
    height: 700px;
}

.window#lua-mobile-game {
    width: 900px;
    height: 540px;
}

#taskbar {
    position: fixed;
    display: flex;
    align-items: center;
    bottom: 0;
    width: calc(100vw - 24px);
    height: 32px;
    padding: 0 12px;
    border-top: 1px solid #00000080;
    background: #c0dcff99;
    box-shadow: inset 0px 1px 0px #ffffff66;
    backdrop-filter: blur(5px);
    z-index: 9999;
}

#taskbar span { flex: 1; }