html, body {
    height: 100%;
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    background-repeat: repeat;
    background-color: #000000;
    color: #d8c9c3;opacity:0.8;
}


@keyframes scatter {
    0% { letter-spacing: normal; transform: translateX(0); }
    30% { letter-spacing: 6px; transform: translateX(2px); }
    60% { letter-spacing: -1px; transform: translateX(-3px); }
    100% { letter-spacing: normal; transform: translateX(0); }
}

@keyframes candleFlicker {
    0%   { opacity: 0.85; filter: blur(0.6px); }
    25%  { opacity: 1;    filter: blur(0.2px); }
    50%  { opacity: 0.75; filter: blur(0.9px); }
    75%  { opacity: 0.95; filter: blur(0.4px); }
    100% { opacity: 0.85; filter: blur(0.6px); }
}

@keyframes bloodDrip {
    0%   { height: 0; opacity: 0; }
    20%  { opacity: 1; }
    100% { height: 38px; opacity: 0.85; }
}

.main-container {
    margin-top: -40px;
    opacity: 0.9;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
}


#navigation {
    order: 2;
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px 20px;
}

#navigation a {
    position: relative;
    display: block;
    padding: 18px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #2a0f16, #16080c);
    border: 2px solid #6e1f2d;
    border-radius: 14px;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    color: #e2c9c2;
    text-decoration: none;
    box-shadow:
        0 0 14px rgba(120, 20, 40, 0.25),
        0 0 28px rgba(80, 10, 20, 0.25);
    transition: all 0.3s ease;
    animation: candleFlicker 6s infinite alternate;
}

#navigation a:hover {
    background: linear-gradient(to bottom, #3b141e, #1a0a0f);
    border-color: #9b2f45;
    box-shadow: 0 0 22px rgba(160, 40, 70, 0.5);
    animation: scatter 0.45s ease, candleFlicker 6s infinite alternate;
}

#navigation a::before {
    content: "✠";
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    color: #a83a52;
}

#navigation a::after {
    content: "";
    position: absolute;
    left: 14%;
    top: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #8b162f, transparent);
    animation: bloodDrip 9s infinite ease-in;
}


#content {
    order: 1;
    flex: 1;
    max-width: 820px;
}

.contentx {
    position: relative;opacity:0.8;
    border: 3px double #7a2232;
    background: rgba(20, 8, 12, 0.88);
    padding: 34px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.85;
    color: #e0cdc7;
    letter-spacing: 0.6px;
    box-shadow: 0 0 40px rgba(120, 20, 40, 0.18);
    animation: candleFlicker 6s infinite alternate;
}

.contentx::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(120, 20, 40, 0.25), transparent 40%),
        radial-gradient(circle at 78% 62%, rgba(90, 10, 30, 0.2), transparent 45%);
    pointer-events: none;
}



#header {
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-position: center;
    height: 578px;
    width: 100%;
}

h1 {
    position: relative;
    display: inline-block;
    padding: 36px 72px;
    font-size: 26px;
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f4ddd8;

    background:
        radial-gradient(ellipse at 50% 35%,
            #3b1019 0%,
            #2a0c13 45%,
            #150609 100%
        );

    border: 2px solid rgba(160, 60, 80, 0.6);
    border-radius:
        55% 45% 52% 48% /
        60% 58% 42% 40%;

    text-shadow:
        0 0 8px rgba(180, 60, 90, 0.35),
        0 0 18px rgba(0, 0, 0, 0.9);

    box-shadow:
        inset 0 0 18px rgba(140, 30, 60, 0.55),
        0 10px 26px rgba(0, 0, 0, 0.65);

    animation: candleLife 90s infinite;
}


@keyframes bloodFlow {
    0%   { transform: translate(0, 0); opacity: 0.15; }
    15%  { opacity: 0.85; }
    50%  { transform: translate(-4px, 80px); }
    100% { transform: translate(3px, 180px); opacity: 0.75; }
}


h1::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 58%;
    width: 2px;
    height: 180px;

    background: linear-gradient(
        to bottom,
        rgba(150, 30, 55, 0.9),
        rgba(110, 20, 40, 0.6),
        rgba(60, 8, 18, 0.3),
        transparent
    );

    border-radius: 50%;
    animation: bloodFlow 520s ease-in infinite;
}


h1::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 34%;
    width: 1.5px;
    height: 140px;

    background: linear-gradient(
        to bottom,
        rgba(120, 25, 45, 0.7),
        rgba(80, 15, 30, 0.4),
        transparent
    );

    animation: bloodFlow 760s ease-in-out infinite;
}





blockquote {
    position: relative;
    border-left: 10px solid #7a2232;
    border-right: 10px solid #7a2232;
    border-top: 3px dashed #4a141f;
    border-bottom: 3px dashed #4a141f;
    padding: 34px 44px;
    background: linear-gradient(to right, #1a0a0f, #0f0508);
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
    font-family: 'Georgia', serif;
    color: #d6bdb7;
    margin: 40px auto;
    max-width: 880px;
    animation: candleFlicker 7s infinite alternate;
}

blockquote::before,
blockquote::after {
    font-size: 50px;
    color: #9c344a;
    opacity: 0.25;
    position: absolute;
}

blockquote::before {
    content: "❛";
    top: 10px;
    left: 25px;
}

blockquote::after {
    content: "❜";
    bottom: 10px;
    right: 25px;
}


textarea, input, select {
    width: 50%;
    max-width: 600px;
    padding: 18px;
    margin: 14px 0;
    font-size: 16px;
    background: #14080c;
    border: 2.5px solid #6b1e2c;
    border-radius: 8px;
    color: #e4d2cc;
    box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.5);
    caret-color: #b23b52;
    transition: all 0.3s ease;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    background-color: #1c0b10;
    border-color: #9a2f45;
    box-shadow: 0 0 16px rgba(160, 40, 70, 0.6);
}

#footer {
    position: relative;
    margin-top: 120px;
    padding: 90px 40px 70px;

    background:
        radial-gradient(ellipse at 50% 0%,
            rgba(120, 30, 50, 0.18),
            rgba(20, 8, 12, 0.95) 70%
        ),
        linear-gradient(to bottom,
            #14070b,
            #0c0406
        );

    color: #cbb1ab;
    text-align: center;

    font-family: 'Cinzel Decorative', serif;
    font-size: 18px;
    letter-spacing: 0.8px;

    border-top: 1px solid rgba(140, 40, 60, 0.35);

    box-shadow:
        inset 0 12px 24px rgba(0, 0, 0, 0.6),
        0 -10px 40px rgba(120, 30, 50, 0.15);

    animation: candleLife 140s infinite;
}


#footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 40%, rgba(120, 30, 50, 0.12), transparent 50%),
        radial-gradient(circle at 80% 65%, rgba(90, 20, 40, 0.1), transparent 55%);
    pointer-events: none;
}


#footer::after {
    content: "✠";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    color: rgba(160, 60, 80, 0.6);
    text-shadow: 0 0 12px rgba(160, 60, 80, 0.4);
}


#footer a {
    color: #d6b8b2;
    text-decoration: none;
    border-bottom: 1px dotted rgba(160, 60, 80, 0.5);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

#footer a:hover {
    color: #f1d8d2;
    border-bottom-color: rgba(200, 80, 100, 0.9);
    text-shadow: 0 0 8px rgba(200, 80, 100, 0.6);
}


#footer {
    animation-duration: 220s;
}


b, strong {
    background-color: #4a141f;
    color: #f0d6cf;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

i, em {
    color: #d4a2ad;
    font-style: italic;
    background: #16080c;
    padding: 2px 6px;
    border-radius: 4px;
}

a {
    color: #d2b2ad;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #7a2232;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: #f3d7d1;
    border-bottom-color: #a83a52;
    text-shadow: 0 0 6px rgba(180, 60, 90, 0.6);
}
