/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    color: #d4c5a3;
    font-family: 'Cinzel', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Fog Animation */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.fog-img {
    position: absolute;
    height: 100vh;
    width: 300vw;
    z-index: 1;
    opacity: 0.5;
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
    background-size: 150vw 100vh; /* Changed from contain to avoid vertical gaps */
    animation: fog 60s linear infinite;
}

.fog-img-2 {
    position: absolute;
    height: 100vh;
    width: 300vw;
    z-index: 2;
    opacity: 0.3;
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png') repeat-x;
    background-size: 150vw 100vh; /* Changed from contain to avoid vertical gaps */
    animation: fog 40s linear infinite;
    top: 0; /* Reset top to cover full screen properly */
}

@keyframes fog {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-150vw, 0, 0); } /* Match background size width */
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
    z-index: 100;
}

.logo {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #e0d0b0;
    text-shadow: 0 0 10px rgba(224, 208, 176, 0.3);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #a09070;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: #ffe0a0;
    transform: translateY(-2px);
}

.btn-twitter {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    border: 1px solid #a09070;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-twitter:hover {
    background: rgba(160, 144, 112, 0.1);
    box-shadow: 0 0 15px rgba(160, 144, 112, 0.2);
    color: #ffe0a0;
}

.x-logo {
    width: 14px;
    height: 14px;
    color: inherit;
}

.btn-bags {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border: 1px solid #a09070;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
}

.btn-bags:hover {
    background: rgba(160, 144, 112, 0.1);
    box-shadow: 0 0 15px rgba(160, 144, 112, 0.2);
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem 4rem;
    z-index: 10; /* Above fog */
    position: relative;
}

/* Parchment */
.parchment {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 80vh;
    background-color: #d4c5a3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    padding: 3rem 2rem;
    box-shadow: 
        inset 0 0 60px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(88, 56, 30, 0.3),
        0 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(0.5deg); /* Slight organic tilt */
}

/* Burnt/Ragged Edge Simulation (CSS Pseudo-elements) */
.parchment::before,
.parchment::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: radial-gradient(circle, #3e2715 20%, transparent 20%) 0 0 / 4px 8px;
}
.parchment::before { left: -4px; }
.parchment::after { right: -4px; }

.parchment-content {
    color: #2a1a0a;
    text-align: center;
    width: 100%;
}

.title {
    font-family: 'MedievalSharp', cursive;
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(42, 26, 10, 0.3);
    padding-bottom: 1rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.commandments {
    list-style-type: none; /* Custom numbering */
    counter-reset: game-counter;
    font-size: 1.1rem;
    line-height: 1.8;
}

.commandments li {
    counter-increment: game-counter;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-weight: 700;
}

.commandments li::before {
    content: counter(game-counter, upper-roman) ".";
    position: absolute;
    left: -1rem;
    text-align: right;
    width: 2rem;
    font-family: 'MedievalSharp', cursive;
    opacity: 0.8;
}

/* Audio Control */
.audio-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.audio-btn {
    background: none;
    border: 1px solid rgba(160, 144, 112, 0.3);
    color: #887755;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    color: #e0d0b0;
    border-color: #e0d0b0;
    text-shadow: 0 0 5px rgba(224, 208, 176, 0.5);
}

.equalizer {
    display: inline-block;
    width: 10px;
    height: 10px;
    /* Placeholder for potential animation */
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .title {
        font-size: 2.2rem;
    }
    
    .parchment {
        padding: 2rem 1rem;
        min-height: 70vh;
    }
    
    .commandments {
        font-size: 0.95rem;
    }
    
    .commandments li::before {
        left: -0.5rem; /* Adjust numbering position on small screens */
    }

    .top-bar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }

    .btn-bags {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}
