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

body {
    background: url('./img/experimental_bg_1.jpg');
    background-size: cover;
    color: #fff;
    font-family: 'MS Gothic', monospace;
    overflow-x: hidden;
    
    cursor: url('./img/cursor_resized.png'), auto;
    min-height: 100vh;
    position: relative;
}

.gothic-font {
    font-family: 'MS Gothic', monospace;
}

.win-btn {
    padding: 3px 3px;
    cursor: url('./img/cursor_resized.png'), auto;
    margin-left: 10px;
    border-radius: 2px;
}

.win-btn-selected {
    padding: 3px 3px;
    cursor: url('./img/cursor_resized.png'), auto;
    /* border: 1px solid rgb(57, 57, 252); */
    border-radius: 2px;
}

/* Japanese text styling */
.japanese-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Main container */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Left sidebar */
.sidebar {
    width: 130px;
    /* background: linear-gradient(45deg, #1a1a1a, #000); */
    /* border-right: 2px solid #444; */
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 0;
}

.sidebar h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.nav-item {
    display: block;
    color: #fff;
    text-decoration: none;
    /* padding: 10px 15px; */
    text-align: center;
    margin: 10px 0;
    align-items: center;
    /* background: #000; */
    /* border: 1px solid #555; */
    /* border-radius: 3px; */
    cursor: url('./img/cursor_resized.png'), auto;
    font-size: 14px;
}

.nav-icon {
    display: block;
    padding: 10px 15px;
    width: 70px;
}

.nav-item:hover {
    background: rgba(94, 110, 255, 0.2);
    color: #ff6b6b;
    text-decoration: underline;
}

/* Gallery */
.gallery {
    margin-top: 30px;
}

.gallery h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 12px;
}

.gallery-item {
    width: 100%;
    height: 80px;
    background: #333;
    border: 1px solid #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 80px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.3s;
}

.gallery-item:hover::before {
    left: 100%;
}

/* Main content area */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    /* background: radial-gradient(circle at 20% 20%, #1a1a1a, #000); */
    min-height: 100vh;
}

.main-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.intro-text {
    text-align: center;
    margin-bottom: 40px;
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

/* Windows 98 style windows */
.window {
    position: fixed;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    min-width: 300px;
    min-height: 200px;
    z-index: 1000;
    font-family: 'MS Sans Serif', sans-serif;
    display: none;
    /* scale: 1.2; */
}

.window.active {
    display: block;
}

.window-header {
    background: linear-gradient(90deg, #0000ff 0%, #6565ff 100%);
    color: white;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: url('./img/cursor_resized.png'), auto;
    font-size: 11px;
    font-weight: bold;
}

.window-title {
    flex: 1;
    padding-left: 4px;
}

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

.window-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-size: 9px;
    cursor: url('./img/cursor_resized.png'), auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

.window-btn:hover {
    opacity: 0.8;
}

.window-btn:active {
    border: 1px inset #c0c0c0;
}

.window-content {
    padding: 10px;
    background: #c0c0c0;
    color: #000;
    font-size: 11px;
    line-height: 1.4;
    height: calc(100% - 20px);
    overflow-y: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        zoom: 0.7;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .window {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
}

/* Decorative elements */
a {
    text-decoration: none;
    cursor: url('./img/cursor_resized.png'), auto;
    color: blue;
}

a:hover {
    text-decoration: underline;
    color: purple;
}

.decoration {
    position: fixed;
    color: #333;
    font-size: 100px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.decoration.top-right {
    top: 20px;
    right: 20px;
}

.decoration.bottom-left {
    bottom: 20px;
    left: 300px;
}

.decoration.secret {
    font-size: 24px;
    bottom: 500px;
    left: 500px;
}

.decoration.secret2 {
    font-size: 36px;
    bottom: 650px;
    left: 100px;
}

.context-menu {
    position: absolute;
    background: #f1f1f1;
    border: 1px solid #716f64;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.context-menu-item {
    padding: 4px 20px 4px 26px;
    cursor: url('./img/cursor_resized.png'), auto;
    position: relative;
    color: #000;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.context-menu-item:hover {
    background: linear-gradient(to bottom, #316ac5, #245eb3);
    color: #fff;
}

.context-menu-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.refresh-item::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 2a6 6 0 0 1 5.29 8.93l-.71-.71A5 5 0 0 0 8 3v1L6 2l2-2v1z" fill="%23000"/><path d="M8 14a6 6 0 0 1-5.29-8.93l.71.71A5 5 0 0 0 8 13v-1l2 2-2 2v-1z" fill="%23000"/></svg>');
}

.share-item::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M13 7a3 3 0 1 0-2.83 2.98l-2.34 2.34a3 3 0 1 0 .71.71l2.34-2.34A3 3 0 1 0 13 7zM3 13a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10-6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" fill="%23000"/></svg>');
}

.context-menu-item:hover .refresh-item::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 2a6 6 0 0 1 5.29 8.93l-.71-.71A5 5 0 0 0 8 3v1L6 2l2-2v1z" fill="%23fff"/><path d="M8 14a6 6 0 0 1-5.29-8.93l.71.71A5 5 0 0 0 8 13v-1l2 2-2 2v-1z" fill="%23fff"/></svg>');
}

.context-menu-item:hover .share-item::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M13 7a3 3 0 1 0-2.83 2.98l-2.34 2.34a3 3 0 1 0 .71.71l2.34-2.34A3 3 0 1 0 13 7zM3 13a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10-6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" fill="%23fff"/></svg>');
}

.instruction {
    color: #fff;
    text-align: center;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}