/* Essentia Universalis - Web 1.0 Aesthetic */

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

body {
    font-family: 'MS Sans Serif', 'Tahoma', sans-serif;
    background: #FFFFFF;
    color: #000000;
    overflow: hidden;
    cursor: crosshair; /* Старый курсор-крестик */
    font-size: 14px; /* Увеличиваем базовый размер с 11px до 14px */
    line-height: 1.2;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    animation: subtleBodyPulse 15s ease-in-out infinite;
}

/* Добавляем тонкий ретро паттерн к фону */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(192,192,192,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(128,128,128,0.05) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px;
    pointer-events: none;
    z-index: -1;
    animation: patternDrift 20s linear infinite;
}

@keyframes subtleBodyPulse {
    0%, 100% { background: #FFFFFF; }
    50% { background: #FEFEFE; }
}

@keyframes patternDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Ниже UI overlay */
    background: transparent;
    pointer-events: none; /* Пропускаем клики к коллажу */
}

/* Web 1.0 Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #C0C0C0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s;
    border: 2px inset #C0C0C0;
    animation: screenFlicker 10s ease-in-out infinite;
}

/* Добавляем мерцание экрана */
@keyframes screenFlicker {
    0%, 95% { opacity: 1; }
    96% { opacity: 0.95; }
    97% { opacity: 1; }
    98% { opacity: 0.98; }
    99%, 100% { opacity: 1; }
}

/* Добавляем сканлинии к экрану загрузки */
#loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    animation: scanlines 3s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.loading-content {
    text-align: center;
    background: #C0C0C0;
    border: 2px inset #C0C0C0;
    padding: 20px;
    font-family: 'MS Sans Serif', sans-serif;
    animation: contentGlow 4s ease-in-out infinite;
    position: relative;
    box-shadow: 4px 4px 8px #808080;
}

@keyframes contentGlow {
    0%, 100% { box-shadow: 4px 4px 8px #808080; }
    50% { box-shadow: 4px 4px 12px #606060; }
}

.loading-content h1 {
    font-size: 20px; /* Увеличиваем с 16px до 20px */
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: titlePulse 2s ease-in-out infinite;
    text-shadow: 1px 1px 2px #808080;
}

@keyframes titlePulse {
    0%, 100% { 
        color: #000000; 
        text-shadow: 1px 1px 2px #808080; 
    }
    50% { 
        color: #000080; 
        text-shadow: 1px 1px 4px #404040; 
    }
}

.loading-bar {
    width: 200px;
    height: 20px;
    background: #808080;
    border: 1px inset #C0C0C0;
    margin: 10px auto;
    position: relative;
    animation: barBlink 1s ease-in-out infinite;
}

.loading-progress {
    height: 100%;
    background: #0000FF;
    width: 0%;
    animation: loading 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Добавляем блестящий эффект к прогресс-бару */
.loading-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: progressShine 1.5s linear infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes barBlink {
    0%, 90% { border-color: #C0C0C0; }
    95% { border-color: #FFFFFF; }
    100% { border-color: #C0C0C0; }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* File Manager Aesthetic Container */
#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    background: transparent; /* Убираем белый фон для видимости WebGL */
}

/* Chaotic Collage Background */
.collage-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none; /* Не блокируем 3D сцену */
    animation: containerPulse 8s ease-in-out infinite;
}

@keyframes containerPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Дополнительные декоративные границы */
.collage-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px dashed #808080;
    opacity: 0.3;
    animation: borderFlicker 4s linear infinite;
    pointer-events: none;
}

@keyframes borderFlicker {
    0%, 25% { opacity: 0.3; }
    26%, 50% { opacity: 0.1; }
    51%, 75% { opacity: 0.5; }
    76%, 100% { opacity: 0.3; }
}

/* File Preview Thumbnails */
.file-thumbnail {
    position: absolute;
    border: 1px solid #808080;
    background: #C0C0C0;
    box-shadow: 1px 1px 0px #808080;
    padding: 2px;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: thumbnailFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.file-thumbnail:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 2px 2px 4px #404040;
    border: 2px solid #000080;
    z-index: 999;
    animation: thumbnailHover 0.5s ease-in-out infinite alternate;
}

@keyframes thumbnailFloat {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-3px) rotate(var(--rotation, 0deg)); }
}

@keyframes thumbnailHover {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

/* Мерцающие границы для thumbnail */
.file-thumbnail::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid #FFFF00;
    opacity: 0;
    animation: thumbnailGlow 2s linear infinite;
}

@keyframes thumbnailGlow {
    0%, 90% { opacity: 0; }
    91%, 100% { opacity: 0.7; }
}

.file-image {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: 1px inset #C0C0C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px; /* Увеличиваем с 8px до 10px */
    color: #808080;
    margin-bottom: 2px;
    animation: imageFlicker 4s linear infinite;
    position: relative;
    overflow: hidden;
}

.file-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: scanline 3s linear infinite;
}

@keyframes imageFlicker {
    0%, 98% { filter: brightness(1); }
    99% { filter: brightness(1.5) contrast(1.2); }
    100% { filter: brightness(1); }
}

@keyframes scanline {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.file-name {
    font-size: 11px; /* Увеличиваем с 9px до 11px */
    color: #000000;
    text-align: center;
    max-width: 52px;
    word-wrap: break-word;
    line-height: 1.1;
    animation: textScroll 5s linear infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes textScroll {
    0%, 70% { transform: translateX(0); }
    85% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

/* Nature Elements Overlay */
.decorative-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    animation: overlayBreath 6s ease-in-out infinite;
}

@keyframes overlayBreath {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.spider-web {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    animation: webSway 8s ease-in-out infinite;
}

@keyframes webSway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-2px) rotate(0.5deg); }
    50% { transform: translateX(0) rotate(-0.5deg); }
    75% { transform: translateX(2px) rotate(0.5deg); }
}

.web-line {
    position: absolute;
    background: #000000;
    height: 4px;  /* Толще для пиксельности */
    transform-origin: left center;
    animation: lineShimmer 3s linear infinite;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

@keyframes lineShimmer {
    0%, 90% { opacity: 0.8; }
    95% { opacity: 1; box-shadow: 0 0 2px #FFFFFF; }
    100% { opacity: 0.8; }
}

/* Анимации для веб-паутины */
@keyframes webShimmer {
    0%, 100% { opacity: 0.6; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.3); }
}

@keyframes webRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes webThread {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes webCenterPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(0,0,0,0.5); }
    50% { transform: scale(1.2); box-shadow: 0 0 15px rgba(0,0,0,0.8); }
}

.web-spider {
    pointer-events: none;
    z-index: 20;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

/* Scene Navigation - File Manager Style */
.scene-portal {
    position: absolute;
    pointer-events: all;
    z-index: 25; /* Выше всего */
    cursor: pointer; /* Классический указатель для кнопок */
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    padding: 6px 8px; /* Увеличиваем padding */
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px; /* Увеличиваем с 10px до 12px */
    color: #000000;
    min-width: 90px; /* Увеличиваем минимальную ширину */
    text-align: center;
    animation: portalPulse 4s ease-in-out infinite;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.portal-title {
    font-weight: bold;
    font-size: 12px;
}

.portal-tag {
    font-weight: bold;
    font-size: 12px;
    color: #000000;
    font-style: normal;
    text-transform: none;
}

.scene-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: buttonSweep 3s linear infinite;
}

@keyframes portalPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes buttonSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.scene-portal:hover {
    background: #E0E0E0;
    transform: scale(1.05);
    animation: portalHover 0.3s ease-in-out infinite alternate;
}

.scene-portal:active {
    border: 2px inset #C0C0C0;
    background: #A0A0A0;
    transform: scale(0.95);
}

.scene-portal.active {
    background: #000080;
    color: white;
    animation: activePortal 2s ease-in-out infinite;
}

.scene-portal.active .portal-tag {
    color: white;
}

@keyframes portalHover {
    0% { box-shadow: 1px 1px 2px #808080; }
    100% { box-shadow: 3px 3px 6px #404040; }
}

@keyframes activePortal {
    0%, 100% { box-shadow: 0 0 5px #0000FF; }
    50% { box-shadow: 0 0 10px #4080FF; }
}

/* Контейнер для кнопок навигации в центре низа */
.navigation-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 25;
    pointer-events: all;
    animation: containerFloat 5s ease-in-out infinite;
    padding: 10px;
    background: rgba(192, 192, 192, 0.8);
    border: 1px solid #808080;
    border-radius: 3px;
}

@keyframes containerFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.scene-portal#area-main {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
}

.scene-portal#area-berezki {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
}

.scene-portal#area-step {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
}

.scene-portal#area-boloto {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
}

.scene-portal#area-opushka {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
}

/* Window-style Info Panel */
#era-consciousness {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px; /* Увеличиваем ширину */
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    font-family: 'MS Sans Serif', sans-serif;
    pointer-events: all;
    z-index: 30; /* Выше всего */
    animation: windowBlink 10s ease-in-out infinite;
    box-shadow: 2px 2px 4px #808080;
}

@keyframes windowBlink {
    0%, 95% { opacity: 1; }
    96%, 98% { opacity: 0.8; }
    99%, 100% { opacity: 1; }
}

.consciousness-header {
    background: linear-gradient(to right, #000080, #4080FF);
    color: white;
    padding: 3px 6px; /* Увеличиваем padding */
    font-size: 12px; /* Увеличиваем с 10px до 12px */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { background: linear-gradient(to right, #000080, #4080FF); }
    50% { background: linear-gradient(to right, #000060, #6090FF); }
}

.era-symbol {
    background: #FFFFFF;
    color: #000000;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 1px inset #C0C0C0;
    animation: symbolRotate 8s linear infinite;
    cursor: pointer;
}

@keyframes symbolRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.era-symbol:hover {
    background: #FFFF00;
    animation: symbolPulse 0.3s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#era-title {
    font-size: 12px; /* Увеличиваем с 10px до 12px */
    color: white;
    margin: 0;
}

.consciousness-body {
    padding: 10px; /* Увеличиваем padding */
    background: #C0C0C0;
}

#scene-title {
    font-size: 14px; /* Увеличиваем с 11px до 14px */
    font-weight: bold;
    margin-bottom: 6px; /* Увеличиваем отступ */
    color: #000000;
}

#scene-description {
    font-size: 12px; /* Увеличиваем с 9px до 12px */
    color: #000000;
    line-height: 1.3;
    margin-bottom: 10px; /* Увеличиваем отступ */
}

.essence-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.essence-tag {
    background: #FFFFFF;
    border: 1px inset #C0C0C0;
    padding: 2px 4px; /* Увеличиваем padding */
    font-size: 10px; /* Увеличиваем с 8px до 10px */
    color: #000000;
    animation: tagFlicker 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.essence-tag:hover {
    background: #FFFF00;
    transform: scale(1.1);
    cursor: pointer;
}

@keyframes tagFlicker {
    0%, 85% { background: #FFFFFF; }
    90%, 95% { background: #F0F0F0; }
    100% { background: #FFFFFF; }
}

/* Control Menu - File Menu Style */
#art-controls {
    position: fixed;
    top: 10px;
    right: 100px;
    z-index: 30; /* Выше всего */
    pointer-events: all;
    animation: controlsFloat 7s ease-in-out infinite;
}

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

.art-menu {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px; /* Увеличиваем с 10px до 12px */
    box-shadow: 2px 2px 4px #808080;
    animation: menuGlow 5s ease-in-out infinite;
}

@keyframes menuGlow {
    0%, 100% { box-shadow: 2px 2px 4px #808080; }
    50% { box-shadow: 2px 2px 8px #606060; }
}

.menu-trigger {
    padding: 6px 10px; /* Увеличиваем padding */
    cursor: pointer;
    background: #C0C0C0;
    border: none;
    color: #000000;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px; /* Увеличиваем с 10px до 12px */
}

.menu-trigger:hover {
    background: #E0E0E0;
}

.menu-items {
    position: absolute;
    top: 100%;
    left: 0;
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    min-width: 100px;
    display: none;
}

.art-menu.active .menu-items {
    display: block;
}

.art-btn {
    display: block;
    width: 100%;
    padding: 6px 10px; /* Увеличиваем padding */
    background: #C0C0C0;
    border: none;
    color: #000000;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px; /* Увеличиваем с 10px до 12px */
    cursor: pointer;
    text-align: left;
}

.art-btn:hover {
    background: #000080;
    color: white;
}

/* Modal Windows - Windows 95 Style */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
}


.modal-content {
    background: #C0C0C0;
    margin: 10% auto;
    border: 2px outset #C0C0C0;
    width: 420px; /* Слегка увеличиваем ширину */
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px; /* Увеличиваем с 10px до 12px */
}

/* Image Viewer Modal - Windows 95 Style */
.image-viewer-modal .modal-content {
    width: 80%;
    max-width: 800px;
    max-height: 85vh;
    margin: 5vh auto;
    overflow: hidden;
    position: relative;
}

.image-viewer-content {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 85vh;
}

.image-viewer-body {
    padding: 10px;
    background: #C0C0C0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    max-height: calc(85vh - 60px);
}

#modal-image {
    max-width: 100%;
    max-height: calc(85vh - 150px);
    border: 2px inset #C0C0C0;
    background: #FFFFFF;
    padding: 4px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.image-info {
    margin-top: 15px;
    padding: 8px;
    background: #F0F0F0;
    border: 1px inset #C0C0C0;
    width: 100%;
    max-width: 400px;
}

.image-filename {
    font-weight: bold;
    font-size: 12px;
    color: #000000;
    margin-bottom: 8px;
    text-align: center;
    background: #FFFFFF;
    padding: 4px;
    border: 1px inset #C0C0C0;
}

.image-details {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #000000;
}

.detail-item {
    background: #E0E0E0;
    padding: 2px 6px;
    border: 1px inset #C0C0C0;
    font-family: 'MS Sans Serif', monospace;
}

.modal-header {
    background: linear-gradient(to right, #000080, #4080FF);
    color: white;
    padding: 2px 4px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    color: #000000;
    width: 16px;
    height: 14px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', sans-serif;
}

.close:hover {
    background: #E0E0E0;
}

.modal h2 {
    margin: 10px; /* Увеличиваем отступ */
    font-size: 14px; /* Увеличиваем с 11px до 14px */
    color: #000000;
}

/* Transition Effect - убираем резкий белый экран */
.scene-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent; /* Делаем прозрачным для плавного перехода */
    z-index: -1; /* Убираем из видимости */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scene-transition.active {
    opacity: 0; /* Оставляем прозрачным */
    pointer-events: none; /* Не блокируем взаимодействие */
}

/* My Works Modal Styles */
.my-work-content {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    overflow: hidden;
}

.my-work-viewer-content {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 90vh;
}

.my-work-viewer-body {
    padding: 15px;
    background: #C0C0C0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    max-height: calc(90vh - 60px);
}

.artwork-frame {
    background: #F0F0F0;
    border: 3px inset #C0C0C0;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 4px #808080;
}

#my-work-image {
    max-width: 100%;
    max-height: calc(90vh - 250px);
    border: 2px solid #808080;
    background: #FFFFFF;
    padding: 2px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.artwork-info {
    width: 100%;
    max-width: 500px;
    background: #E0E0E0;
    border: 2px inset #C0C0C0;
    padding: 12px;
}

.artwork-title {
    font-weight: bold;
    font-size: 16px;
    color: #000080;
    margin-bottom: 10px;
    text-align: center;
    background: #FFFFFF;
    padding: 6px;
    border: 1px inset #C0C0C0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artwork-description {
    background: #F0F0F0;
    border: 2px inset #C0C0C0;
    padding: 12px;
    margin-bottom: 15px;
    font-family: 'MS Sans Serif', monospace;
    font-size: 11px;
    line-height: 1.4;
    color: #000000;
    white-space: pre-line;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.artwork-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artwork-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F0F0F0;
    padding: 4px 8px;
    border: 1px inset #C0C0C0;
    font-size: 11px;
}

.detail-label {
    font-weight: bold;
    color: #000000;
}

.detail-value {
    color: #000080;
    font-family: 'MS Sans Serif', monospace;
}

/* Swaying animation for hanging artworks */
@keyframes hangingSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

.hanging-artwork {
    animation: hangingSway 4s ease-in-out infinite;
    transform-origin: top center;
}

/* Wind effect for rope */
@keyframes ropeWind {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(1px); }
}

.artwork-rope {
    animation: ropeWind 3s ease-in-out infinite;
}

/* Music Reminder - Web 1.0 Style */
#music-reminder {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
    animation: reminderFloat 6s ease-in-out infinite;
}

.reminder-content {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    padding: 8px 12px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000000;
    max-width: 200px;
    text-align: center;
    box-shadow: 2px 2px 4px #808080;
    animation: reminderGlow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.reminder-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: reminderSweep 3s linear infinite;
}

.reminder-text {
    font-weight: bold;
    line-height: 1.2;
    display: block;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0px #FFFFFF;
    animation: reminderTextFlicker 8s ease-in-out infinite;
}

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

@keyframes reminderGlow {
    0%, 100% { box-shadow: 2px 2px 4px #808080; }
    50% { box-shadow: 2px 2px 8px #606060; }
}

@keyframes reminderSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes reminderTextFlicker {
    0%, 95% { opacity: 1; }
    96%, 98% { opacity: 0.8; }
    99%, 100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 12px; /* Уменьшаем для мобильных, но оставляем больше чем было */
    }
    
    #era-consciousness {
        width: 260px; /* Увеличиваем с 200px */
        font-size: 11px; /* Увеличиваем с 9px до 11px */
    }
    
    .scene-portal {
        font-size: 11px; /* Увеличиваем с 9px до 11px */
        min-width: 70px; /* Увеличиваем с 60px */
        padding: 5px 7px;
    }
    
    .modal-content {
        width: 90%;
        margin: 5% auto;
        font-size: 11px; /* Добавляем размер шрифта для мобильных */
    }
    
    .navigation-container {
        bottom: 15px; /* Приближаем к низу на мобильных */
        gap: 8px; /* Уменьшаем расстояние между кнопками */
    }
    
    .my-work-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .artwork-title {
        font-size: 14px;
    }
    
    #my-work-image {
        max-height: calc(95vh - 300px);
    }
    
    #music-reminder {
        top: 10px;
        right: 10px;
    }
    
    .reminder-content {
        font-size: 10px;
        max-width: 150px;
        padding: 6px 8px;
    }
}