/* Windows 95/98 Custom Styles for Operation Causeway */

:root {
    --desktop-bg: #008080;
    --wallpaper-color1: #000080;
    --wallpaper-color2: #008080;
}

/* Desktop */
.desktop {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
}

/* Wallpaper - classic Windows teal gradient */
.wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--wallpaper-color1) 0%, 
        var(--wallpaper-color1) 25%, 
        var(--wallpaper-color2) 25%, 
        var(--wallpaper-color2) 50%, 
        var(--wallpaper-color1) 50%, 
        var(--wallpaper-color1) 75%, 
        var(--wallpaper-color2) 75%, 
        var(--wallpaper-color2) 100%
    );
    background-size: 100px 100px;
    z-index: 0;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
}

.desktop-icon:hover {
    background: rgba(0, 0, 128, 0.3);
    border: 1px dotted white;
}

.desktop-icon:active {
    background: rgba(0, 0, 128, 0.5);
}

.icon-img {
    font-size: 32px;
    margin-bottom: 4px;
}

.icon-label {
    color: white;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 1px black;
    max-width: 70px;
    word-wrap: break-word;
}

/* Windows */
.window {
    position: absolute;
    z-index: 100;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.window-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Status bar */
.status-bar {
    margin-top: 10px;
    border: 2px inset #c0c0c0;
    background: #c0c0c0;
    padding: 2px 5px;
}

.status-bar-field {
    margin: 0;
    font-size: 11px;
    padding: 2px 5px;
}

/* Menu bar */
.menu-bar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 2px 5px;
    margin-bottom: 10px;
}

.menu-bar span {
    padding: 2px 8px;
    cursor: pointer;
}

.menu-bar span:hover {
    background: #000080;
    color: white;
}

/* README specific */
.readme-content {
    text-align: center;
    padding: 20px;
}

.readme-content h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.readme-content h2 {
    font-size: 18px;
    color: #000080;
    margin-top: 0;
}

.readme-content .dates {
    font-size: 16px;
    font-weight: bold;
}

.readme-content hr {
    margin: 20px 0;
}

.readme-content .tagline {
    font-size: 14px;
    font-style: italic;
}

.rsvp-section {
    margin: 30px 0;
}

.rsvp-button {
    display: inline-block;
    background: #000080;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: 2px outset #c0c0c0;
}

.rsvp-button:hover {
    background: #0000a8;
}

.rsvp-button:active {
    border: 2px inset #c0c0c0;
}

.readme-content .note {
    font-size: 12px;
    color: #666;
}

/* Timeline */
.timeline {
    padding: 10px;
}

.timeline-day {
    margin-bottom: 15px;
    padding: 10px;
    background: #ffffd0;
    border: 2px inset #c0c0c0;
}

.timeline-day.selected {
    background: #000080;
    color: white;
}

.timeline-day h3 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.timeline-day ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-day li {
    margin: 5px 0;
}

/* Warning box */
.warning-box {
    background: #ffff00;
    border: 2px solid #000;
    padding: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

/* Tide table */
.tide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.tide-table th, .tide-table td {
    border: 1px solid #808080;
    padding: 8px;
    text-align: center;
}

.tide-table th {
    background: #c0c0c0;
}

.highlight {
    background: #ffff00;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

/* Transport grid */
.lift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lift-box {
    border: 2px inset #c0c0c0;
    padding: 10px;
    background: #ffffd0;
}

.lift-box strong {
    display: block;
    background: #c0c0c0;
    padding: 2px 5px;
    margin: -10px -10px 10px -10px;
}

/* Dinner details */
.dinner-details {
    background: #ffffd0;
    padding: 15px;
    border: 2px inset #c0c0c0;
}

/* Beds sections */
.beds-section {
    background: #ffffd0;
    padding: 10px;
    border: 2px inset #c0c0c0;
    margin-bottom: 15px;
}

/* Guestbook */
.guestbook-embed {
    min-height: 200px;
    padding: 10px;
    background: #ffffd0;
    border: 2px inset #c0c0c0;
}

/* FAQ details */
details {
    margin: 10px 0;
    padding: 5px;
    background: #ffffd0;
    border: 2px inset #c0c0c0;
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
}

summary:hover {
    background: rgba(0, 0, 128, 0.1);
}

details p {
    margin: 10px 0 0 20px;
}

/* Taskbar */
.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 2px 5px;
    z-index: 1000;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-weight: bold;
    font-size: 12px;
    border: 2px outset #fff;
    background: #c0c0c0;
    cursor: pointer;
}

.start-button:active {
    border: 2px inset #fff;
}

.start-icon {
    font-size: 16px;
}

.taskbar-divider {
    width: 2px;
    height: 20px;
    background: #808080;
    margin: 0 5px;
}

.taskbar-windows {
    flex: 1;
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.taskbar-window-btn {
    padding: 2px 10px;
    font-size: 11px;
    border: 2px outset #fff;
    background: #c0c0c0;
    cursor: pointer;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-window-btn:active,
.taskbar-window-btn.active {
    border: 2px inset #fff;
    background: #d4d0c8;
}

.taskbar-clock {
    padding: 3px 15px;
    border: 2px inset #fff;
    font-size: 12px;
    background: #c0c0c0;
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 30px;
    left: 5px;
    width: 200px;
    z-index: 1001;
}

.start-menu-body {
    background: #c0c0c0;
    border: 2px outset #fff;
    padding: 5px;
}

.start-menu-item {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.start-menu-divider {
    height: 2px;
    background: #808080;
    margin: 5px 0;
}

/* Note styling */
.note {
    background: #ffffd0;
    padding: 10px;
    border: 2px inset #c0c0c0;
    font-size: 12px;
}

.small-text {
    font-size: 11px;
    color: #666;
}

/* High contrast mode */
.high-contrast .wallpaper {
    background: black;
}

.high-contrast .icon-label {
    color: yellow;
}

.high-contrast .window {
    border: 2px solid yellow;
}

/* Monkey helper */
.monkey {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monkey-face {
    font-size: 48px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.monkey-bubble {
    background: #ffffd0;
    border: 2px solid #000;
    padding: 10px;
    margin-bottom: 10px;
    max-width: 200px;
    font-size: 12px;
    position: relative;
}

.monkey-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
}

.monkey-toggle {
    position: fixed;
    bottom: 40px;
    right: 10px;
    padding: 5px 10px;
    background: #c0c0c0;
    border: 2px outset #fff;
    cursor: pointer;
    z-index: 1999;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .desktop-icons {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100px;
    }
    
    .window {
        width: 95vw !important;
        left: 2.5vw !important;
        top: 10px !important;
    }
    
    .lift-grid {
        grid-template-columns: 1fr;
    }
    
    .taskbar-windows {
        display: none;
    }
}