/* Windows 95 Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', sans-serif;
    background: #008080;
    color: #000;
    padding-bottom: 40px;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    padding: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Window Styling */
.window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: 1px 1px 0 #000000;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.window.maximized {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 40px !important;
    width: 100vw !important;
    height: calc(100vh - 40px) !important;
    margin: 0 !important;
    z-index: 999;
}

.window-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
}

.window-title {
    display: flex;
    align-items: center;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    font-size: 8px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
}

.control-btn:active {
    border-color: #000000 #ffffff #ffffff #000000;
}

.window-content {
    padding: 10px;
    background: #c0c0c0;
    min-height: 60px;
    overflow: auto;
}

.window.maximized .window-content {
    height: calc(100vh - 80px);
}

/* Button Styling */
.win95-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 5px 15px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
    margin: 2px;
}

.win95-btn:active {
    border-color: #000000 #ffffff #ffffff #000000;
    padding: 6px 14px 4px 16px;
}

.win95-btn:hover {
    background: #d4d4d4;
}

/* Navigation */
.nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin: 3px 0;
}

/* Music Player */
.music-player {
    text-align: center;
}

.player-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.player-controls .win95-btn {
    width: 40px;
    padding: 5px;
}

/* Webcam */
.webcam-placeholder {
    text-align: center;
    padding: 20px;
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

/* Chat */
.chat-box {
    text-align: center;
}

/* Blog */
.blog-post {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #808080;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h3 {
    font-size: 12px;
    color: #000080;
    margin-bottom: 5px;
}

/* Links */
.links-list {
    list-style: none;
    padding-left: 0;
}

.links-list li {
    margin: 5px 0;
}

.links-list a {
    color: #0000ff;
    text-decoration: underline;
}

.links-list a:visited {
    color: #800080;
}

/* Webring */
.webring {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

/* Textarea */
textarea {
    width: 100%;
    background: #fff;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
    padding: 5px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    resize: none;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    display: flex;
    align-items: center;
    padding: 2px 5px;
    gap: 5px;
    z-index: 1000;
}

.start-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'MS Sans Serif', sans-serif;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
}

.start-button:active {
    border-color: #000000 #ffffff #ffffff #000000;
}

.start-button img {
    width: 20px;
    height: 20px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px;
}

.taskbar-items::-webkit-scrollbar {
    height: 0;
}

.taskbar-item {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 4px 8px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 100px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-item.active {
    border-color: #000000 #ffffff #ffffff #000000;
    background: #d4d4d4;
}

.taskbar-item:hover {
    background: #d4d4d4;
}

.taskbar-clock {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 6px 10px;
    font-size: 11px;
    margin-left: auto;
}

/* Marquee */
marquee {
    background: #fff;
    padding: 5px;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 5px auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 5px;
        gap: 5px;
    }
    
    .taskbar {
        height: 35px;
    }
    
    .start-button {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* Scrollbar (Webkit browsers) */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #808080;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
}

::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 200px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    display: none;
    z-index: 10000;
}

.start-menu.active {
    display: block;
}

.start-menu-header {
    background: #808080;
    color: #c0c0c0;
    padding: 10px 1px 5px 1px;
    font-weight: bold;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    width: 30px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.start-menu-windows {
    font-size: 24px;
    letter-spacing: 2px;
}

.start-menu-95 {
    font-size: 18px;
    font-weight: normal;
}

.start-menu-items {
    padding: 2px;
    margin-left: 30px;
}

.start-menu-item {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.start-menu-item:hover {
    background: #000080;
    color: #ffffff;
}

.start-menu-icon {
    width: 20px;
    text-align: center;
}

.start-menu-item span:nth-child(2) {
    flex: 1;
}

.start-menu-arrow {
    font-size: 10px;
    margin-left: auto;
}

.start-menu-separator {
    height: 1px;
    background: #808080;
    margin: 2px 8px;
    border-bottom: 1px solid #ffffff;
}

.start-button.active {
    border-color: #000000 #ffffff #ffffff #000000;
    padding: 5px 7px 3px 9px;
}

/* Programs submenu */
.programs-submenu {
    position: fixed;
    bottom: auto;
    top: auto;
    left: 200px;
    width: 180px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    display: none;
    z-index: 10001;
}

.programs-submenu.active {
    display: block;
}

.programs-submenu .start-menu-items {
    margin-left: 0;
}

/* Minesweeper Styles */
.minesweeper-game {
    padding: 10px;
    background: #c0c0c0;
}

.minesweeper-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    margin-bottom: 10px;
    border: 2px inset #808080;
    background: #c0c0c0;
}

.minesweeper-counter {
    background: #000;
    color: #f00;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    padding: 5px 10px;
    border: 2px inset #808080;
    min-width: 60px;
    text-align: center;
}

.minesweeper-face {
    font-size: 32px;
    cursor: pointer;
    border: 2px outset #fff;
    background: #c0c0c0;
    padding: 2px 8px;
    user-select: none;
}

.minesweeper-face:active {
    border: 2px inset #808080;
}

.minesweeper-board {
    display: inline-block;
    border: 3px inset #808080;
    background: #c0c0c0;
    padding: 5px;
}

.minesweeper-row {
    display: flex;
    line-height: 0;
}

.minesweeper-cell {
    width: 24px;
    height: 24px;
    border: 2px outset #fff;
    background: #c0c0c0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    user-select: none;
}

.minesweeper-cell.revealed {
    border: 1px solid #808080;
    background: #bfbfbf;
    cursor: default;
}

.minesweeper-cell.flagged {
    background: #c0c0c0;
}

.minesweeper-cell.mine {
    background: #f00;
}

.minesweeper-cell.num-1 { color: #0000ff; }
.minesweeper-cell.num-2 { color: #008000; }
.minesweeper-cell.num-3 { color: #ff0000; }
.minesweeper-cell.num-4 { color: #000080; }
.minesweeper-cell.num-5 { color: #800000; }
.minesweeper-cell.num-6 { color: #008080; }
.minesweeper-cell.num-7 { color: #000000; }
.minesweeper-cell.num-8 { color: #808080; }

.minesweeper-difficulty {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

/* Windows 95 Modal Dialog */
.win95-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.win95-modal {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: 2px 2px 0 #000000;
    min-width: 300px;
    max-width: 500px;
}

.win95-modal-header {
    background: #000080;
    color: #ffffff;
    padding: 3px 5px;
    font-weight: bold;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.win95-modal-content {
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.win95-modal-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.win95-modal-message {
    flex: 1;
    font-size: 11px;
    line-height: 1.4;
}

.win95-modal-buttons {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.win95-modal-buttons button {
    min-width: 75px;
}
