html, body {
    height: 100%;
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    background: #C9C9CB;
    color: #2b241c;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(230, 215, 180, 0.25),
        rgba(160, 120, 70, 0.25)
    );
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(200, 180, 150, 0.1);
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(107, 44, 44, 0.5);
    border-radius: 6px;
    border: 3px solid rgba(200, 180, 150, 0.1); 
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 44, 44, 0.7);
}

body {
    scrollbar-width: thin;
    scrollbar-color: rgba(107,44,44,0.5) rgba(200,180,150,0.1);
}


.elvish-sign {
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    opacity: 0.75;
    position: relative;
}

.elvish-sign::before {
    content: "";
    display: block;
    width: 60%;
    height: 1px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(
        to right,
        rgba(107,44,44,0),
        rgba(107,44,44,0.5),
        rgba(107,44,44,0)
    );
}

.elvish-sign svg {
    width: 100%;
    height: auto;
}

.elvish-sign path {
    fill: none;
    stroke: #6b2c2c;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(120,60,60,0.35));
}

.elvish-sign circle {
    fill: #c2a46d;
    filter: drop-shadow(0 0 8px rgba(194,164,109,0.45));
}

.elvish-divider {
    margin: 4rem auto;
    width: 100%;
    max-width: 600px;
    opacity: 0.55;
}

.elvish-divider svg {
    width: 100%;
    height: auto;
}

.elvish-divider path {
    fill: none;
    stroke: #6b2c2c;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(120,60,60,0.25));
}

.elvish-divider circle {
    fill: #c2a46d;
    filter: drop-shadow(0 0 6px rgba(194,164,109,0.4));
}

a {
    color: #6b2c2c;
    border-bottom: 2px solid #7a3a3a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: #8b3a3a;
    border-bottom-color: #9b4a4a;
    text-shadow: 0 0 6px rgba(120, 60, 60, 0.45);
}

a:active {
    color: #4a1f1f;
    border-bottom-color: #3a1515;
}

b, strong {
    background-color: #6b2c2c;
    color: #f6f1ea;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

i, em {
    color: #4a3626;
    background: #d8cfbf;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

#header {
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-position: left;
    height: 618px;
    width: 100%;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    line-height: 3.2;
    text-align: center;
    letter-spacing: 0.35rem;
    font-weight: 500;
    color: #4a3626;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.35),
        0 0 8px rgba(120,90,50,0.15);
    margin: 1.2rem auto 2rem;
    position: relative;
}

h1::before {
    content: "✶";
    position: absolute;
    font-size: 3.2rem;
    opacity: 0.12;
    left: 50%;
    top: -55%;
    transform: translateX(-50%);
    color: #6b2c2c;
    pointer-events: none;
}

h1::after {
    content: "";
    display: block;
    width: 42%;
    height: 2px;
    margin: 0.9rem auto 0;
    background: linear-gradient(
        to right,
        rgba(107,44,44,0),
        rgba(107,44,44,0.5),
        rgba(107,44,44,0)
    );
}

.main-container {
    display: flex;
    margin-top: -15vw;
    gap: 2vw;
    padding: 2vw;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#navigation {
    opacity: 0.6;
    width: 18vw;
    min-width: 200px;
    padding: 1.4rem 1.3rem;
    position: sticky;
    top: -1.6rem;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(120, 85, 50, 0.12),
            rgba(120, 85, 50, 0.12) 2px,
            transparent 2px,
            transparent 18px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(120, 85, 50, 0.1),
            rgba(120, 85, 50, 0.1) 2px,
            transparent 2px,
            transparent 18px
        ),
        repeating-linear-gradient(
            to right,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.05) 1px,
            transparent 1px,
            transparent 6px
        ),
        linear-gradient(
            to bottom,
            rgba(244, 236, 224, 0.98),
            rgba(228, 217, 200, 0.98)
        );
    border-radius: 1.6rem;
    box-shadow:
        0 22px 46px rgba(60, 40, 20, 0.28),
        inset 0 0 0 1px rgba(140, 100, 60, 0.35),
        inset 0 0 18px rgba(120, 90, 50, 0.25);
    backdrop-filter: blur(3px);
}

#navigation a {
    display: block;
    padding: 1rem 1.2rem 1rem 2.4rem;
    margin-bottom: 1.2rem;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: #3f2f21;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(140, 100, 60, 0.25),
        0 6px 14px rgba(60, 40, 20, 0.18);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        letter-spacing 0.4s ease,
        color 0.3s ease;
}

#navigation a::before {
    content: "ᚠ";
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    font-size: 1.1rem;
    color: rgba(107, 44, 44, 0.55);
    transition:
        transform 0.4s ease,
        color 0.4s ease,
        text-shadow 0.4s ease;
}

#navigation a::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(194, 164, 109, 0.25),
            transparent 65%
        );
    opacity: 0;
    transition: opacity 0.5s ease;
}

#navigation a:hover {
    color: #6b2c2c;
    letter-spacing: 0.18rem;
    transform: translateX(6px);
    box-shadow:
        inset 0 0 0 1px rgba(160, 120, 80, 0.45),
        0 10px 26px rgba(80, 50, 25, 0.35);
}

#navigation a:hover::before {
    transform: translateY(-50%) scale(1.15);
    color: #8b3a3a;
    text-shadow: 0 0 8px rgba(140, 80, 80, 0.45);
}

#navigation a:hover::after {
    opacity: 1;
}

#navigation a:active {
    transform: translateX(2px);
    box-shadow:
        inset 0 0 0 1px rgba(120, 80, 50, 0.5),
        0 4px 10px rgba(50, 30, 15, 0.25);
}

#content {
    flex: 1;
    max-width: 800px;
}

.contentx {
    padding: 2rem;
    opacity: 0.7;
    margin-top: 159px;
    border-radius: 1rem;
    line-height: 1.8rem;
    font-size: 1.1rem;
    color: #2b241c;
}

blockquote {
    border-left: 0.5rem solid #6b2c2c;
    border-right: 0.5rem solid #5a3b22;
    padding: 2rem 2.5rem;
    background: #f7f2ea;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.15);
    font-family: Georgia, serif;
}

textarea, input, select {
    width: 40%;
    padding: 1rem;
    background: #fbf8f3;
    border: 0.15rem solid #5a3b22;
    border-radius: 0.5rem;
    color: #2b241c;
}

textarea:focus, input:focus, select:focus {
    background-color: #fffaf2;
    border-color: #6b2c2c;
    box-shadow: 0 0 1rem rgba(120,60,60,0.3);
}

#footer {
    color: #3a2f26;
    text-align: center;
    padding: 5vw 2vw;
    font-family: 'Cinzel Decorative', serif;
}

#footer a {
    color: #6b2c2c;
    border-bottom: 0.1rem dashed #7a3a3a;
}

#footer a:hover {
    color: #8b3a3a;
    text-shadow: 0 0 1rem rgba(150,80,80,0.4);
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    #navigation {
        width: 100%;
        position: relative;
        top: 0;
    }
    #content {
        max-width: 100%;
    }
    h1 {
        font-size: 2rem;
    }
}
