* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    font-size: 11px;
    overflow: hidden;
    user-select: none;
}

/* Desktop Background */
.desktop {
    width: 100vw;
    height: 100vh;
    background: #008080;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 128, 128, 0.1),
            rgba(0, 128, 128, 0.1) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 128, 128, 0.1),
            rgba(0, 128, 128, 0.1) 1px,
            transparent 1px,
            transparent 2px
        );
    position: relative;
    overflow: hidden;
}

/* Desktop Icons */
.icon {
    position: absolute;
    width: 90px;
    text-align: center;
    cursor: pointer;
    padding: 6px;
    margin: 10px;
}

.icon:hover {
    background: rgba(0, 0, 128, 0.3);
    border: 1px dotted #fff;
}

.icon.selected {
    background: rgba(0, 0, 128, 0.5);
    border: 1px solid #fff;
}

.icon-image {
    font-size: 60px;
    margin-bottom: 6px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.icon-text {
    color: #fff;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
}

/* Icon positioning */
.icon:nth-child(1) { top: 20px; left: 20px; }
.icon:nth-child(2) { top: 120px; left: 20px; }
.icon:nth-child(3) { top: 220px; left: 20px; }
.icon:nth-child(4) { top: 320px; left: 20px; }
.icon:nth-child(5) { top: 420px; left: 20px; }

/* Windows */
.window {
    position: absolute;
    width: 500px;
    height: 400px;
    background: rgba(192, 192, 192, 0.95);
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.window.active {
    display: flex;
    z-index: 100;
}

.window-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
}

.window-title {
    flex-grow: 1;
    margin-left: 2px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-control {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-control:active {
    border-color: #000 #fff #fff #000;
}

.window-content {
    flex-grow: 1;
    padding: 8px;
    background: #c0c0c0;
    overflow-y: auto;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    text-align: center;
    font-size: 14px;
}

.window-content h3 {
    margin-bottom: 8px;
    color: #000080;
}

.window-content p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.window-content ul {
    margin-left: 20px;
    margin-bottom: 8px;
}

.window-content li {
    margin-bottom: 4px;
}

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

.start-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    padding: 4px 8px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 4px;
}

.start-button:active {
    border-color: #000 #fff #fff #000;
}

.taskbar-items {
    flex-grow: 1;
    display: flex;
    gap: 2px;
}

.taskbar-item {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    padding: 4px 8px;
    cursor: pointer;
    min-width: 120px;
}

.taskbar-item.active {
    border-color: #000 #fff #fff #000;
    background: #c0c0c0;
}

.system-tray {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid;
    border-color: #000 #fff #fff #000;
    height: 22px;
}

.time {
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    font-size: 11px;
    font-weight: bold;
}

.time-icon {
    font-size: 14px;
    margin-right: 6px;
    cursor: default;
}

/* Window states */
.window.minimized {
    display: none;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 28px) !important;
}

/* Scrollbar styling */
.window-content::-webkit-scrollbar {
    width: 16px;
}

.window-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #000 #fff #fff #000;
}

.window-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
}

.window-content::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
}

/* Reading Window - 80% screen size */
.reading-window {
    width: 80vw !important;
    height: 80vh !important;
}

/* Book Display Styles */
.book-container {
    display: flex;
    height: 100%;
}

.year-selector {
    width: 180px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    padding: 10px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.year-selector h4 {
    font-size: 12px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 10px;
    padding: 4px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    text-align: center;
}

.year-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.year-link {
    display: block;
    padding: 6px 8px;
    background: #f0f0f0;
    border: 1px solid;
    border-color: #000 #fff #fff #000;
    color: #000;
    text-decoration: none;
    font-size: 11px;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: all 0.1s;
}

.year-link:hover {
    background: #d0d0d0;
    border-color: #fff #000 #000 #fff;
}

.year-link.active {
    background: #000080;
    color: #fff;
    border-color: #fff #000 #000 #fff;
}

.book-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.year-section {
    margin-bottom: 25px;
}

.year-section h4 {
    color: #000080;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 6px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    cursor: pointer;
    transition: all 0.1s;
    height: 200px;
}

.book-card:hover {
    background: #d0d0d0;
    border-color: #000 #fff #fff #000;
}

.book-cover-img {
    font-size: 48px;
    margin-bottom: 10px;
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px solid;
    border-color: #000 #fff #fff #000;
}

.book-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 4px;
    line-height: 1.2;
    height: 28px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-author {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
    height: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Scrollbar for book container */
.book-container::-webkit-scrollbar {
    width: 16px;
}

.book-container::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #000 #fff #fff #000;
}

.book-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
}

.book-container::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
}

/* Reading Window - 80% screen size */
.reading-window {
    width: 80vw !important;
    height: 80vh !important;
}

/* Photography Window - 85% screen size */
.photography-window {
    width: 85vw !important;
    height: 85vh !important;
}

/* Photography Grid Styles */
.photography-layout {
    display: flex;
    height: 100%;
}

.sidebar-icons {
    width: 60px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    gap: 10px;
    margin-right: 10px;
}

.icon-item {
    width: 45px;
    height: 45px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.1s;
}

.icon-item:hover:not(.disabled) {
    border-color: #000 #fff #fff #000;
    background: #d0d0d0;
}

.icon-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.icon-symbol {
    font-size: 20px;
}

.instagram-section {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    cursor: pointer;
    transition: all 0.1s;
    height: 220px;
}

.photo-item:hover {
    background: #d0d0d0;
    border-color: #000 #fff #fff #000;
}

.photo-placeholder {
    font-size: 48px;
    margin-bottom: 10px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px solid;
    border-color: #000 #fff #fff #000;
}

.photo-item img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border: 2px solid;
    border-color: #000 #fff #fff #000;
}

.photo-caption {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

.instagram-note {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid;
    border-color: #000 #fff #fff #000;
}

.instagram-note a {
    color: #000080;
    text-decoration: underline;
}

/* Text selection */
::selection {
    background: #000080;
    color: #fff;
}

/* Currently Reading Section */
.currently-reading {
    margin-top: 15px;
    padding: 8px;
    background: #f0f0f0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    overflow: hidden;
}

.currently-reading h4 {
    color: #000080;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 6px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    display: inline-block;
}