body {
    margin: 20px;
    background: navy;
    font-family: "Microsoft Sans Serif", sans-serif;
}

/* Main Window */
.window {
    margin: 0 auto;
}

/* Content Area */
.content {
    background: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 20px;
}

/* Background Effect */
.cloud-background {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #87ceeb 0%, white 100%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

/* File Grid Layout */
.file-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* File Icons */
.file-item {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    text-decoration: none;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-item:hover {
    background: #000080;
    color: white;
}

/* Modal Windows */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
}

.modal.active {
    display: block;
}

.draggable-modal {
    position: fixed;
    z-index: 1000;
    cursor: move;
}

.modal .title-bar {
    cursor: move;
}

/* Cheat Tables */
.cheat-table {
    width: 100%;
    border-collapse: collapse;
}

.cheat-table td, 
.cheat-table th {
    padding: 4px 8px;
    border: 1px solid #999;
}

.cheat-table th {
    background: silver;
    text-align: left;
}

.cheat-content {
    background: white;
    overflow: auto;
    max-height: 60vh;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Webamp Container */
#webamp {
    position: fixed;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        margin: 10px;
    }

    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .modal {
        width: 95vw;
    }
}

/* File Icons Images */
.file-item img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}

/* Table Hover Effects */
.cheat-table tr:hover {
    background-color: #f0f0f0;
}

/* Scrollbar Styling */
.cheat-content::-webkit-scrollbar {
    width: 16px;
}

.cheat-content::-webkit-scrollbar-track {
    background: #dfdfdf;
    border: solid 3px transparent;
}

.cheat-content::-webkit-scrollbar-thumb {
    background: silver;
    border: solid 3px transparent;
    border-radius: 6px;
}

/* Windows 98 Specific Enhancements */
.window-body {
    background: #c0c0c0;
}

.title-bar-controls button {
    padding: 0;
    display: block;
    min-width: 16px;
    height: 14px;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal.active {
    animation: modalFadeIn 0.2s ease-out;
}

