@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --win-bg: #c0c0c0;
    --win-border-light: #ffffff;
    --win-border-dark: #808080;
    --win-border-black: #000000;
    --win-title-bar: #000080;
    --win-title-bar-gradient: #1034a6;
    --font-retro: 'Press Start 2P', cursive;
}

body {
    background-color: #008080;
    color: #000;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.window-frame {
    background: var(--win-bg);
    border-top: 2px solid var(--win-border-light);
    border-left: 2px solid var(--win-border-light);
    border-right: 2px solid var(--win-border-black);
    border-bottom: 2px solid var(--win-border-black);
    box-shadow: inset 1px 1px var(--win-border-light), inset -1px -1px var(--win-border-dark);
}

.title-bar {
    background: linear-gradient(to right, var(--win-title-bar), var(--win-title-bar-gradient));
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: bold;
}

.title-bar-text {
    font-family: var(--font-retro);
    font-size: 0.7em;
    letter-spacing: 1px;
}

.title-bar-controls { display: flex; }
.win-btn {
    background: var(--win-bg);
    border-top: 1px solid var(--win-border-light);
    border-left: 1px solid var(--win-border-light);
    border-right: 1px solid var(--win-border-black);
    border-bottom: 1px solid var(--win-border-black);
    width: 16px;
    height: 14px;
    margin-left: 2px;
    position: relative;
    cursor: not-allowed;
}
.win-btn:active {
    border-top: 1px solid var(--win-border-black);
    border-left: 1px solid var(--win-border-black);
    border-right: 1px solid var(--win-border-light);
    border-bottom: 1px solid var(--win-border-light);
}
.win-btn[aria-label="Minimize"]::before { content: ''; position: absolute; bottom: 2px; left: 2px; width: 8px; height: 2px; background: #000; }
.win-btn[aria-label="Maximize"]::before { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border: 1px solid #000; border-top: 2px solid #000; }
.win-btn[aria-label="Close"]::before { content: '×'; position: absolute; top: -2px; left: 3px; color: #000; font-weight: bold; font-family: sans-serif; font-size: 1.1em; }

#welcome-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 1000; }
#welcome-modal .window-frame { width: 450px; font-size: 0.8em; line-height: 1.6; }
#welcome-modal .window-content { padding: 20px; text-align: left; color: #000; background: var(--win-bg); }
#welcome-modal .window-content p { margin-bottom: 25px; font-family: var(--font-retro); font-size: 0.85em; letter-spacing: 1px; word-spacing: 2px; }
.modal-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.win98-btn { background: var(--win-bg); border-top: 2px solid var(--win-border-light); border-left: 2px solid var(--win-border-light); border-right: 2px solid var(--win-border-black); border-bottom: 2px solid var(--win-border-black); box-shadow: inset 1px 1px var(--win-border-light), inset -1px -1px var(--win-border-dark); padding: 8px 12px; font-family: var(--font-retro); font-size: 0.7em; color: #000; cursor: pointer; text-shadow: 1px 1px var(--win-border-light); transition: all 0.05s ease-out; }
.win98-btn:active { border-top: 2px solid var(--win-border-black); border-left: 2px solid var(--win-border-black); border-right: 2px solid var(--win-border-light); border-bottom: 2px solid var(--win-border-light); box-shadow: inset 1px 1px var(--win-border-dark), inset -1px -1px var(--win-border-light); padding: 9px 13px 7px 11px; }
#music-yes-btn:hover { animation: rainbow-dot-hover 0.8s infinite linear; }
#music-no-btn:hover { background: #d44949; color: #fff; text-shadow: none; }
@keyframes rainbow-dot-hover { 0% { background-color: #ff0000; } 14% { background-color: #ffa500; } 28% { background-color: #ffff00; } 42% { background-color: #008000; } 56% { background-color: #0000ff; } 70% { background-color: #4b0082; } 84% { background-color: #ee82ee; } 100% { background-color: #ff0000; } }

#audio-player-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 350px; padding: 10px; z-index: 100; }
.progress-container { margin-bottom: 10px; padding: 0 5px; }
.controls-row { display: flex; align-items: center; justify-content: space-between; }
#time-display { font-family: var(--font-retro); font-size: 0.7em; min-width: 100px; text-align: center; }
.volume-container { display: flex; align-items: center; gap: 10px; }
#play-pause-btn { width: 45px; height: 45px; font-size: 1.3em; display: flex; justify-content: center; align-items: center; }
.win98-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: var(--win-bg); border-top: 1px solid var(--win-border-dark); border-left: 1px solid var(--win-border-dark); border-right: 1px solid var(--win-border-light); border-bottom: 1px solid var(--win-border-light); padding: 2px; }
.win98-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 18px; background: var(--win-bg); border-top: 1px solid var(--win-border-light); border-left: 1px solid var(--win-border-light); border-right: 1px solid var(--win-border-dark); border-bottom: 1px solid var(--win-border-dark); cursor: pointer; }

#digital-clock-container { position: fixed; bottom: 0; right: 0; z-index: 50; }
.time-frame { padding: 5px 10px; border-top: 2px solid var(--win-border-light); border-left: 2px solid var(--win-border-light); border-right: 2px solid var(--win-border-dark); border-bottom: 2px solid var(--win-border-dark); }
#date-display, #time-display-main, #timezone-display { font-family: var(--font-retro); font-size: 0.6em; text-align: center; }
#time-display-main { font-size: 1.2em; margin: 2px 0; }

.main-container { display: flex; align-items: center; gap: 30px; padding: 20px; width: 100%; max-width: 1400px; justify-content: center; }
.profile-card { width: 500px; }
.profile-content { padding: 20px; }
.profile-image { width: 140px; height: 140px; border-radius: 0; border: 2px solid var(--win-border-dark); box-shadow: inset 1px 1px var(--win-border-light), inset -1px -1px var(--win-border-dark); margin: 0 auto 20px auto; padding: 2px; }
.profile-name { font-family: var(--font-retro); font-size: 1.8em; margin-bottom: 15px; }
.profile-bio { font-family: var(--font-retro); font-size: 0.8em; margin-bottom: 25px; line-height: 1.8; }
.contact-links { display: flex; justify-content: center; gap: 10px; }
.contact-links .win98-btn { display: flex; align-items: center; gap: 8px; }
a.win98-btn { text-decoration: none; color: #000; }
.album-scroller {
    position: relative;
    width: 250px;
    height: 450px;
    padding: 5px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.album-scroller::-webkit-scrollbar {
    display: none;
}
.album-track { display: flex; flex-direction: column; align-items: center; }
.album-track img { display: block; width: 100%; height: auto; margin-bottom: 15px; cursor: pointer; border: 2px solid var(--win-border-dark); padding: 2px; }

#copyright { position: fixed; bottom: 5px; left: 5px; font-size: 0.6em; color: #000; line-height: 1.4; z-index: 100; background: var(--win-bg); padding: 2px; border: 1px solid var(--win-border-dark); }
#copyright a { color: var(--win-title-bar); }
#toast-notification { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); padding: 10px 20px; z-index: 200; transition: bottom 0.5s ease-in-out; font-family: var(--font-retro); font-size: 0.7em; }
#toast-notification.show { bottom: 30px; }

#modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#modal-overlay.active { opacity: 1; pointer-events: auto; }
#modal-overlay .modal-content { max-width: 80vw; max-height: 80vh; padding: 3px; display: flex; flex-direction: column; }
#modal-overlay .modal-content .title-bar { flex-shrink: 0; }
.image-viewer-content { flex-grow: 1; background-color: #fff; display: flex; justify-content: center; align-items: center; padding: 10px; overflow: hidden; }
#enlarged-image { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }
.close-button { cursor: pointer; }

@media (max-width: 900px) {
    body { overflow: auto; align-items: flex-start; padding: 20px; }
    .main-container { flex-direction: column; }
    .album-scroller { width: 90%; max-width: 300px; height: 400px; }
    .profile-card { width: 90%; max-width: 500px; }
    #audio-player-container { max-width: 90%; position: relative; top: 0; transform: none; left: auto; margin: 0 auto 20px auto; }
    #digital-clock-container { position: relative; bottom: auto; right: auto; transform: none; margin-top: 20px; }
    #welcome-modal .window-frame { width: 90%; }
}
@media (max-width: 480px) {
    .progress-container { display: none; }
    #time-display { flex-grow: 1; }
    #welcome-modal .window-content p { font-size: 0.7em; }
    .win98-btn { font-size: 0.7em; }
}