@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Segoe+UI:wght@400;600&display=swap');

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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

canvas {
    display: block;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    
    background-color: #3b1515;
    
    background-image: 
        linear-gradient(rgba(0,0,0,0.6) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0,0,0,0.6) 2px, transparent 2px),
        linear-gradient(rgba(0,0,0,0.6) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0,0,0,0.6) 2px, transparent 2px);
    
    background-size: 100px 60px, 100px 60px, 100px 60px, 100px 60px;
    background-position: 
        0 0,
        0 0,
        50px 30px,
        50px 30px;

    animation: zoomIn 1.5s ease-out forwards;
}

#loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.95) 85%);
    z-index: -1;
    pointer-events: none;
}

#loading .info {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

#loading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    font-weight: 700;
    color: #e3c08d;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#loading p {
    font-size: 18px;
    color: #ccc;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,1);
}

#enter-gallery {
    position: relative;
    z-index: 2;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    border: 2px solid #e3c08d;
    background: rgba(110, 44, 44, 0.6);
    color: #e3c08d;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(227, 192, 141, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#enter-gallery:hover {
    background: #e3c08d;
    color: #221100;
    box-shadow: 0 0 30px rgba(227, 192, 141, 0.6);
    transform: translateY(-2px);
}

@keyframes zoomIn {
    0% { 
        opacity: 0; 
        transform: scale(0.9);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}
#controls {
    display: none;
    position: absolute;
    width: 100%;
    bottom: 60px;
    left: 0;
    z-index: 10;
    justify-content: space-around;
    pointer-events: none;
}

#controls button {
    pointer-events: auto;
    padding: 15px 30px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    min-width: 160px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

#controls button:hover {
    background: white;
    color: black;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}