
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000;
    color: #c0c0c0;
    font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 500px; 
    z-index: 10;
}

.nav-links {
    position: relative;
    left: -80px;
    z-index: 12;
    margin-bottom: -10px;
}

.nav-links ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-links a {
    color: #4A72A4;
    text-decoration: underline;
    font-size: 24px;
    font-family: "Times New Roman", Times, serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.nav-links a:hover {
    color: #6392ce;
    background-color: rgba(255,255,255,0.1);
}

.center-stage {
    position: relative;
    align-self: flex-end;
    right: -50px;
    z-index: 11;
}

.win95-window {
    background-color: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #0a0a0a;
    border-bottom: 2px solid #0a0a0a;
    box-shadow: 1px 1px 0 #000;
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.persistent-window {
    width: 380px;
    box-shadow: 2px 2px 10px rgba(255,255,255,0.1);
}

.title-bar {
    background-color: #000080;
    color: white;
    padding: 2px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.title-bar.draggable {
    cursor: move;
}

.title-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.controls {
    display: flex;
    gap: 2px;
}

.win-btn {
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    font-weight: bold;
    font-size: 10px;
    width: 16px;
    height: 14px;
    cursor: default;
}

.win-btn:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.menu-bar {
    display: flex;
    gap: 15px;
    padding: 4px 8px;
    font-size: 12px;
    color: #000;
    border-bottom: 1px solid #888;
}

.menu-bar span {
    cursor: default;
}

.window-content {
    padding: 4px;
    color: #000;
    font-size: 12px;
}

.main-visual {
    background: #fff;
    border: 2px inset #dfdfdf;
}

.main-visual img {
    width: 100%;
    display: block;
    filter: sepia(1) hue-rotate(190deg) saturate(300%) contrast(1.2); 
}

#desktop-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 20;
}

.dynamic-window {
    position: absolute;
    pointer-events: auto;
    width: max-content; 
    min-width: 250px;
    max-width: 320px;
}

.dynamic-window.fade-out {
    opacity: 0;
}

.inner-content {
    background: #fff;
    border: 2px inset #dfdfdf;
    padding: 10px;
    white-space: normal; 
    word-break: keep-all; 
}

.audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-popup {
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #0a0a0a;
    border-bottom: 2px solid #0a0a0a;
    background: #c0c0c0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    font-size: 12px;
}

@media (max-width: 600px) {
    .main-wrapper {
        width: 90%;
        align-items: center;
    }
    .nav-links {
        left: 0;
        margin-bottom: 20px;
    }
    .center-stage {
        align-self: center;
        right: 0;
    }
    .persistent-window {
        width: 100%;
    }
}