@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;400&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0a0a0f;
    font-family: 'Roboto', sans-serif;
}

#webgl-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Пропускаем клики сквозь UI к 3D-сцене */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header {
    padding: 30px 40px;
    color: #e5d3b3; /* Цвет состаренного золота / бумаги */
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}

.header p {
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.7;
}

.card {
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 211, 179, 0.2);
    padding: 30px;
    margin: 40px;
    width: 350px;
    color: #fff;
    align-self: flex-end; /* Карточка справа внизу */
    pointer-events: auto; /* Возвращаем кликабельность для кнопки */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.card h2 {
    font-family: 'Playfair Display', serif;
    color: #e5d3b3;
    margin: 0 0 10px 0;
}

.card p {
    margin: 0 0 25px 0;
    color: #aaa;
    font-size: 0.9rem;
}

#buy-print-btn {
    background: transparent;
    border: 1px solid #e5d3b3;
    color: #e5d3b3;
    padding: 12px 20px;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#buy-print-btn:hover {
    background: #e5d3b3;
    color: #0a0a0f;
}
/* Стартовый экран */
#start-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    color: #e5d3b3;
    transition: opacity 1s ease;
}

#start-screen h1 { font-family: 'Playfair Display', serif; font-size: 4rem; margin-bottom: 10px; }
#start-screen p { margin-bottom: 30px; opacity: 0.7; }
#enter-btn {
    background: #e5d3b3; color: #0a0a0f;
    border: none; padding: 15px 40px; font-size: 1.1rem;
    cursor: pointer; text-transform: uppercase; letter-spacing: 2px;
}

#ui-layer.hidden { display: none; }

/* Навигация по залам */
.nav-menu {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.nav-btn {
    background: rgba(15, 15, 18, 0.7);
    border: 1px solid rgba(229, 211, 179, 0.3);
    color: #e5d3b3;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: #e5d3b3;
    color: #0a0a0f;
}