body { 
    background-color: teal;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* popup stays on top of EVERYTHING during the song */
#popup {
    display: none;
    width: 360px;
    background: white; 
    border: 2px solid #000;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.4);
    position: absolute;
    font-family: "VT323", monospace;
    overflow: hidden;
    z-index: 100000;
}

/* fake popups get added here */
#corruption-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}

.fake-win-popup {
    pointer-events: auto;
    width: 260px;
    background: #ece9d8;
    border: 2px solid #3a6ea5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    z-index: 5000;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    padding: 0 4px;
    background: linear-gradient(
        to right,
        #0a246a,
        #3a6ea5
    );
    color: white;
    font-size: 22px;
    box-sizing: border-box;
}

/* fake x, doesnt close anything */
#fake-x {
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: 1px solid white;
    background: #c75050;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

#lyric {
    min-height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px 10px;
    font-size: 34px;
    color: black;
    text-shadow:
        0 0 10px #39C5BB,
        0 0 20px #39C5BB;
}

#popup-buttons {
    text-align: center;
    padding: 10px;
}

#popup button {
    font-family: "VT323", monospace;
    font-size: 22px;
}

#end-screen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#end-window {
    width: 350px;
    background: black;
    border: 2px solid #39C5BB;
    font-family: "VT323", monospace;
    color: #39C5BB;
}

#end-header {
    display: flex;
    justify-content: space-between;
    background: #111;
    padding: 5px;
    font-size: 18px;
}

#end-close {
    width: 24px;
    height: 24px;
    background: #ff0000;
    color: white;
    border: 1px solid white;
    font-family: "VT323", monospace;
    font-size: 18px;
    line-height: 18px;
    cursor: pointer;
    padding: 0;
}

#end-content {
    padding: 12px;
    font-size: 22px;
}

#end-content p {
    margin: 4px 0;
}

.end-title {
    font-size: 32px;
    margin: 0 0 8px 0;
}

#end-loading-bar {
    width: 100%;
    height: 22px;
    border: 1px solid #39C5BB;
    margin: 10px 0;
    box-sizing: border-box;
}

#end-loading-fill {
    width: 0%;
    height: 100%;
    background: #39C5BB;
}

.end-footer {
    font-size: 18px;
    margin: 0;
}

#lyric-terminal {
    position: fixed;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(380px, 90vw);
    height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #000;
    border: 2px solid #39C5BB;
    color: #39C5BB;
    font-family: "VT323", monospace;
    font-size: 23px;
    line-height: 1;
    z-index: 9000;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

#lyric-terminal.corrupted {
    border-color: #ff3333;
    color: #ff3333;
}

.lyric-terminal-prompt {
    flex-shrink: 0;
    opacity: 0.85;
    font-size: 19px;
}

#lyric-terminal-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyric-terminal-cursor {
    flex-shrink: 0;
    width: 10px;
    height: 19px;
    background: currentColor;
    animation: lyric-cursor-blink 1s step-end infinite;
}

#lyric-terminal.corrupted .lyric-terminal-cursor {
    box-shadow: 0 0 6px rgba(255, 51, 51, 0.8);
}

@keyframes lyric-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#scoreboard {
    position: fixed;
    bottom: 60px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    border: 1px solid #39C5BB;
    padding: 8px 12px;
    color: #39C5BB;
    font-family: "VT323", monospace;
    font-size: 28px;

    text-align: right;
}

#close-button {
    margin: 10px;
}

/* readme from folder icon */
#rules-window {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(620px, 92vw);
    height: min(520px, 80vh);
    background: #fffff0;
    border: 2px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
    font-family: "VT323", monospace;
    z-index: 90000;
    overflow: hidden;
}

#rules-title-bar {
    cursor: default;
}

.window-close-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: 1px solid white;
    background: #c75050;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

#rules-content {
    flex: 1;
    min-height: 0;
    padding: 24px 28px 32px;
    overflow-y: auto;
    color: #111;
}

#rules-content h1 {
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: normal;
    line-height: 1.1;
}

#rules-content p {
    margin: 0;
    font-size: 28px;
    line-height: 1.45;
}

.rules-divider {
    margin: 28px 0;
    border: none;
    border-top: 1px dashed #888;
}

#rules-content .rules-ja {
    font-family: "VT323", "Yu Gothic UI", "Meiryo", sans-serif;
    font-size: 28px;
    line-height: 1.45;
}

#browser-window {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, 94vw);
    height: min(640px, 82vh);
    background: #ece9d8;
    border: 2px solid #0054e3;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
    font-family: "Tahoma", sans-serif;
    z-index: 90000;
    overflow: hidden;
}

#browser-title-bar {
    font-family: "VT323", monospace;
    font-size: 22px;
}

#browser-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(to bottom, #f0f0f0, #d4d0c8);
    border-bottom: 1px solid #888;
}

.browser-nav-btn {
    font-size: 12px;
    color: #555;
    padding: 2px 6px;
    user-select: none;
}

#browser-url {
    flex: 1;
    min-width: 0;
    height: 24px;
    padding: 0 8px;
    border: 1px inset #888;
    background: white;
    font-family: "Tahoma", sans-serif;
    font-size: 13px;
    color: #000;
}

#browser-go {
    height: 24px;
    padding: 0 12px;
    border: 1px outset #ccc;
    background: #ece9d8;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    cursor: pointer;
}

#browser-frame {
    flex: 1;
    min-height: 0;
    width: 100%;
    border: none;
    background: white;
}

#taskbar {
    background-color: black;  
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    overflow: visible;
}

#taskbar-icons {
    display: flex;
    align-items: center;
    height: 100%;
}

.taskbar-icon-slot {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.taskbar-slot-start {
    margin-bottom: -10px;
}

.taskbar-slot-folder {
    margin-left: -50px;
    margin-top: 10px;
}

.taskbar-slot-browser {
    margin-top: 7px;
    margin-left: -30px;
}

.taskbar-unknown {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "VT323", monospace;
    color: #39C5BB;
    font-size: 46px;
    line-height: 1;
    text-shadow: 0 0 10px #39C5BB;
    user-select: none;
    pointer-events: none;
    z-index: 2;
}

.taskbar-icon-slot.is-unknown img {
    visibility: hidden;
}

.taskbar-icon-slot.is-unknown .taskbar-unknown {
    display: block;
}

.file_icon {
    height: 120px;
    width: auto;
}

.windows_icon {
    width: 115px;
}

.browser_icon {
    width: 110px;
}

#start-menu {
    display: none;
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 280px;
    background: #ece9d8;
    border: 2px solid #0054e3;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    z-index: 95000;
}

#start-menu-header {
    padding: 12px 14px;
    background: linear-gradient(to right, #0a246a, #3a6ea5);
    color: white;
    font-family: "VT323", monospace;
    font-size: 28px;
}

#start-menu-list,
#start-programs-submenu {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.start-menu-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: transparent;
    text-align: left;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: #000;
    cursor: pointer;
}

.start-menu-item:hover,
.start-menu-item:focus {
    background: #0a246a;
    color: white;
    outline: none;
}

.start-menu-divider {
    height: 1px;
    margin: 4px 8px;
    background: #888;
}

.start-menu-parent {
    position: relative;
}

#start-programs-submenu {
    display: none;
    position: absolute;
    left: 100%;
    bottom: 0;
    width: 260px;

    background: #ece9d8;
    border: 2px solid #0054e3;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.start-menu-parent:hover #start-programs-submenu,
.start-menu-parent:focus-within #start-programs-submenu {
    display: block;
}

#taskbar-system-tray {
    position: fixed;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    margin-right: 5px;
    margin-bottom: 1px;
    z-index: 9500;
}

#taskbar-tray {
    display: flex;
    align-items: center;
    gap: 8px;
}

#clock {
    color: #39C5BB;
    font-family: "VT323", monospace;
    font-size: 30px;
    line-height: 1;
}

.taskbar-tray-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tray_icon {
    display: block;
    height: 44px;
    width: auto;
    cursor: pointer;
}

.volume_icon {
    cursor: default;
}

#play-pause-button {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    line-height: 0;
    cursor: pointer;
}

#play-pause-button:hover .playback_icon,
#play-pause-button:focus-visible .playback_icon {
    transform: scale(1.08);
}

.playback_icon {
    transition: transform 0.1s ease;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 88px;
    height: 6px;
    border-radius: 3px;
    background: #1a1a1a;
    border: 1px solid #39C5BB;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #39C5BB;
    border: 1px solid #000;
    box-shadow: 0 0 6px rgba(57, 197, 187, 0.6);
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #39C5BB;
    border: 1px solid #000;
    box-shadow: 0 0 6px rgba(57, 197, 187, 0.6);
}

#volume-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #1a1a1a;
    border: 1px solid #39C5BB;
}

#miku img {
    width: 300px;
    height: auto;
}

#miku {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center; 
    align-items: center;    
    pointer-events: none;

}

#taskbar-icons img,
.desktop-icon {
    transition: transform 0.1s ease;
    cursor: pointer;
}

#taskbar-icons img:hover,
.desktop-icon:hover {
    transform: scale(1.1);
}

#taskbar-icons img:active,
.desktop-icon:active {
    transform: scale(0.9);
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin: 20px;
    width: fit-content;
}

.song-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #2a0a3d, #4b1b6b);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 40px;
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px purple;

}

.label {
    font-size: 10px;
    margin-top: -10px;
    font-family: "Press Start 2P", monospace;
}

/* shows when you pick a song */
#cmd-window {
    position: fixed;
    top: 100px;
    left: 100px;
    width: 500px;
    height: 250px;
    background: black;
    color: #39C5BB;
    border: 2px solid #39C5BB;
    font-family: "VT323", monospace;
    font-size: 24px;
    padding: 10px;
    z-index: 8000;
    display: none;
}

#cmd-output {
    white-space: pre-line;
}

/* red cmd windows, made in js */
.hacker-cmd-window {
    position: fixed;
    width: 470px;
    height: 290px;
    background: #0a0a0a;
    color: #ff3333;
    border: 2px solid #ff3333;
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.45);
    font-family: "VT323", monospace;
    font-size: 20px;
    padding: 10px;
    z-index: 8000;
    overflow: hidden;
    box-sizing: border-box;
}

.hacker-cmd-window .cmd-title {
    margin-bottom: 6px;
    font-size: 18px;
}

.hacker-cmd-output {
    white-space: pre-wrap;
    word-break: break-all;
    height: calc(100% - 28px);
    overflow: hidden;
}

#corruption-meter {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #39C5BB;
    font-family: "VT323", monospace;
    font-size: 22px;
    display: none;
}

#corruption-bar {
    width: 320px;
    height: 28px;
    border: 2px solid #39C5BB;
    margin: 4px auto 0;
}

#corruption-fill {
    width: 0%;
    height: 100%;
    background: #39C5BB;
}

#desktop-wrapper {
    position: fixed;
    inset: 0;
}

.fake-win-popup .title-bar {
    background: linear-gradient(to right, #0a246a, #3a6ea5);
    color: white;
    padding: 4px;
    display: flex;
    justify-content: space-between;
    cursor: default;
}

.fake-win-popup .body {
    padding: 10px;
    color: black;
}

.fake-win-popup .close {
    background: transparent;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
