/* GENERAL RESET */
body {
    font-family: "MS Sans Serif", Arial, sans-serif;
    background: transparent;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 18px; /* Increased base size */
}

/* FAKE BROWSER WINDOW */
.browser {
    width: 1200px; /* Increased from 800px */
    background: silver;
    border: 4px solid black;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

/* BROWSER TITLE BAR */
.browser-top {
    display: flex;
    align-items: center;
    background: navy;
    color: white;
    padding: 8px;
    font-size: 18px;
    font-weight: bold;
}

.browser-title {
    flex-grow: 1;
    text-align: center;
}

/* TOOLBAR */
.browser-toolbar {
    display: flex;
    align-items: center;
    background: #C0C0C0;
    padding: 10px;
    border-bottom: 3px solid gray;
}

.browser-toolbar button {
    background: silver;
    border: 2px outset white;
    padding: 6px 14px;
    margin-right: 8px;
    font-size: 16px;
}

.browser-toolbar input {
    flex-grow: 1;
    border: 2px inset gray;
    padding: 6px;
    font-size: 16px;
}

/* BROWSER CONTENT */
.browser-content {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 200px;
    background: #C0C0C0;
    padding: 15px;
    border-right: 4px solid black;
}

.sidebar h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.sidebar a {
    display: block;
    background: silver;
    padding: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: black;
    font-size: 16px;
    border: 2px outset white;
    text-align: center;
}

.sidebar a:hover {
    background: gray;
}

/* MAIN CONTENT */
.content {
    padding: 30px;
    flex-grow: 1;
    background: white;
}

.content h1 {
    font-size: 26px;
    margin-bottom: 14px;
}

/* FAKE WINDOWS BUTTONS */
.buttons {
    display: flex;
    gap: 8px;
    padding-left: 8px;
}

.btn {
    width: 18px;
    height: 18px;
    background: gray;
    border: 1px solid black;
}

.close {
    background: red;
}

.minimize {
    background: yellow;
}

.maximize {
    background: green;
}

/* FOLDERS */
.folder-container {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.folder {
    background: silver;
    border: 2px outset white;
    padding: 14px;
    font-size: 18px;
    cursor: pointer;
}

.folder:hover {
    background: gray;
}

/* WINDOWS 98 LOADING SCREEN */
.loading-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0000AA;
    color: white;
    font-family: "Courier New", monospace;
    text-align: center;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    z-index: 9999;
}

.loading-box {
    background: white;
    padding: 30px;
    border: 2px solid black;
    box-shadow: 6px 6px black;
    text-align: center;
}

.win98-logo {
    width: 300px;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 24px;
    color: black;
}

/* PROGRESS BAR */
.progress-bar {
    width: 300px;
    height: 30px;
    background: gray;
    border: 2px solid black;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: lime;
    animation: progressAnim 3s linear forwards;
}

@keyframes progressAnim {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* GLITCH TEXT */
.glitch {
    color: lime;
    text-shadow: 3px 3px magenta, -3px -3px cyan;
    font-family: "Courier New", monospace;
}

/* MAIN TITLE */
.home-title {
    font-size: 64px;
    font-family: 'MSPaint', sans-serif;
    color: cyan;
    text-shadow: 5px 5px purple;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Fix for iframe visibility inside CSS3DRenderer */
iframe {
    pointer-events: auto;
    width: 100% !important;
    height: 100% !important;
    border: none;
    position: static !important;
    display: block;
    background: white;
    z-index: 0;
    opacity: 1;
}
