:root {
    --bg-color: #fce4ec;
    --window-bg: #fff0f5;
    --title-bar-active: linear-gradient(90deg, #ff0055, #ffb7ce);
    --title-bar-inactive: #888;
    --text-color: #590059;
    --accent: #ff0055;
    --border-light: #ffffff;
    --border-dark: #888888;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'VT323', monospace;
    background-color: var(--bg-color);
    overflow: hidden;
    color: var(--text-color);
    /* CRT Scanline effect */
    background-image:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    height: 100vh;
    user-select: none;
}

/* Custom Cursor */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewport="0 0 24 24" style="fill:black;stroke:white;"><path d="M0,0 L0,20 L5,15 L10,24 L13,22 L8,14 L16,14 Z" /></svg>'), auto;
}

.desktop {
    width: 100%;
    height: calc(100vh - 40px);
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
}

/* Icons */
.icon {
    width: 80px;
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
}

.icon:hover {
    border: 1px dotted var(--accent);
    background: rgba(255, 255, 255, 0.3);
}

.icon-img {
    font-size: 40px;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 0px rgba(255, 0, 85, 0.3));
}

.icon-label {
    text-shadow: 1px 1px 0 #fff;
    background-color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
}

.trash {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Windows */
.window {
    position: absolute;
    width: 400px;
    background: var(--window-bg);
    border: 2px solid;
    border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.title-bar {
    background: var(--title-bar-active);
    color: white;
    padding: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    font-weight: bold;
    letter-spacing: 1px;
}

.title-bar:active {
    cursor: grabbing;
}

.title-controls button {
    background: #ccc;
    border: 1px outset #fff;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}

.title-controls button:active {
    border-style: inset;
}

.window-content {
    padding: 15px;
    overflow-y: auto;
    max-height: 400px;
    font-size: 1.2rem;
}

.profile-pic {
    float: left;
    margin-right: 15px;
    border: 2px solid var(--accent);
    padding: 2px;
}

h2,
h3 {
    margin-top: 0;
    color: var(--accent);
    text-shadow: 2px 2px 0px #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    border: 1px solid var(--text-color);
    padding: 5px;
}

a {
    color: blue;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    background: blue;
    color: white;
}

.start-item:hover {
    background: #000080;
    color: white;
}

.retro-btn {
    background: #eee;
    border: 2px outset #fff;
    padding: 5px 15px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 10px;
}

.retro-btn:active {
    border-style: inset;
}

.blink {
    animation: blinker 1s linear infinite;
    color: red;
    font-weight: bold;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    background: black;
    color: magenta;
    margin-top: 10px;
}

.marquee p {
    animation: marquee 5s linear infinite;
    margin: 5px 0;
    font-family: monospace;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.gallery-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-image:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    z-index: 10;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 1000;
}

.start-btn {
    height: 32px;
    margin-left: 2px;
    font-weight: bold;
    font-family: inherit;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 2px outset #fff;
    background: #c0c0c0;
}

.start-btn:active,
.start-btn.active {
    border-style: inset;
}

.taskbar-items {
    flex-grow: 1;
    display: flex;
    padding: 0 5px;
    gap: 2px;
}

.taskbar-item {
    height: 30px;
    padding: 0 10px;
    background: #c0c0c0;
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-width: 100px;
    font-size: 1rem;
}

.taskbar-item.active {
    background: #e0e0e0;
    border-style: inset;
    font-weight: bold;
}

.tray {
    padding: 0 10px;
    border: 2px inset #fff;
    background: #c0c0c0;
    height: 30px;
    display: flex;
    align-items: center;
    margin-right: 2px;
    font-size: 1rem;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 42px;
    left: 2px;
    width: 250px;
    background: #c0c0c0;
    border: 2px outset #fff;
    display: flex;
    z-index: 1001;
    display: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.start-sidebar {
    width: 30px;
    background: linear-gradient(180deg, #000080, #1084d0);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start-items {
    flex-grow: 1;
    padding: 5px;
}

.start-item {
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}



/* Image Viewer Modal */
.image-viewer {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.viewer-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px var(--accent);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-viewer {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-viewer:hover,
.close-viewer:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
}

/* Room Tour Hotspots */
.hotspot {
    position: absolute;
    z-index: 50;
    /* Ensure over image */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" style="fill:magenta;stroke:white;"><path d="M12,2 L15,10 L24,10 L17,15 L20,24 L12,19 L4,24 L7,15 L0,10 L9,10 Z"/></svg>'), pointer;
    /* Star cursor */
    border: 2px dashed rgba(255, 255, 255, 0.3);
    /* Slightly visible by default */
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    /* Slightly visible by default */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 0 #000;
    opacity: 0.7;
}

.hotspot:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent) inset;
    background: rgba(255, 0, 85, 0.1);
    opacity: 1;
    transform: scale(1.05);
}

/* AngelAmp Styles */
.amp-btn {
    background: linear-gradient(180deg, #ccc, #888);
    border: 1px outset #fff;
    width: 30px;
    height: 25px;
    font-size: 0.8rem;
    cursor: pointer;
}

.amp-btn:active {
    border-style: inset;
}

.eq-bar {
    width: 5px;
    background: lime;
    border-top: 2px solid #fff;
    transition: height 0.1s;
}