body {
    margin: 0;
    font-family: 'Pixelify Sans', cursive;
    background-color: #1a1a40; /* Dark, electric blue */
    color: #f0f0f0;
    overflow: hidden;
    cursor: url('images/cursor.png'), auto;
}

.room-background {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000;
    z-index: 10;
}

.desk-container {
    width: 1200px;
    height: 700px;
    position: relative;
}

/* Base styles for all interactive objects */
.object {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    z-index: 5;
}

.object:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.object img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Object-specific positioning and sizing */
.desk {
    width: 650px;
    height: 400px;
    bottom: 3;
    left: 250px;
    z-index: 5;
}

.books {
    width: 250px;
    height: 500px;
    bottom: 0;
    right: 50px;
    z-index: 5;
}

.computer {
    width: 200px;
    height: 180px;
    top: 250px;
    left: 550px;
    z-index: 6;
}

.tv {
    width: 250px;
    height: 200px;
    top: 150px;
    left: 300px;
    z-index: 6;
}

.cds {
    width: 180px;
    height: 250px;
    top: 320px;
    right: 80px;
    z-index: 7;
}

.poster {
    width: 150px;
    height: 200px;
    top: 80px;
    right: 350px;
    z-index: 4;
}

/* Object name on hover */
.object-name {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 10;
}

.object:hover .object-name {
    opacity: 1;
    visibility: visible;
}

/* Static background elements */
.static-element {
    position: absolute;
    z-index: 1;
}

.window {
    width: 300px;
    height: 400px;
    top: 50px;
    left: 50px;
}

.clock {
    width: 100px;
    height: 100px;
    top: 100px;
    left: 450px;
}

.plant {
    width: 200px;
    height: 250px;
    top: 30px;
    right: 150px;
}

/* Modal Styles - 90s/2000s Theme */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background-color: #333366;
    color: #e0e0e0;
    margin: auto;
    padding: 30px;
    border: 5px solid #00ffff;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: inset 2px 2px 8px rgba(0,0,0,0.8), 5px 5px 15px rgba(0,0,0,0.5);
    animation: slideIn 0.3s forwards;
    overflow-y: auto;
    max-height: 90vh;
}

.close-button {
    color: #ff00ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
}

/* Cool Effect: Fade In and Slide In for Modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Slideshow-specific styles - 90s/2000s Theme */
#slideshow-container {
    text-align: center;
    display: none;
}

#slideshow-image {
    max-width: 100%;
    height: auto;
    border: 5px solid #ff00ff; /* Hot pink border */
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 0px #00ffff; /* Pixelated border shadow */
}

#slideshow-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000;
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.slideshow-controls button {
    background-color: #00ffff;
    color: #1a1a40;
    border: none;
    padding: 10px 20px;
    font-size: 1.5em;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #ff00ff;
    transition: all 0.1s ease-in-out;
}

.slideshow-controls button:hover {
    box-shadow: 0 0 0px #ff00ff;
    transform: translate(2px, 2px);
}

/* Optional: Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* For responsiveness (basic example, more detailed media queries might be needed) */
@media (max-width: 768px) {
    .desk-container {
        width: 95vw;
        height: auto;
    }
    .object {
        position: relative;
        width: 80%;
        margin: 20px auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    h1 {
        font-size: 1.8em;
    }
}