html, body {
    height: 100%;
    margin: 0;
}

body {
    background-repeat: repeat;
    background-color: #000000;
    color: #e0b3b3;
    font-family: 'Lora', serif;
    font-size: 20px;
}

#header {
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-position: center;
    height: 581px;
    width: 100%;
    margin-top: -5px;
    background-color: #000000;
}

#navigation {
    width: 60%;
    margin: -10px auto;
    padding: 20px 30px;
    background: linear-gradient(to bottom, #0a0000, #1a0000);
    border-radius: 999px;
    box-shadow: 0 0 50px rgba(120,0,0,0.6);
    text-align: center;
    border: 2px solid #8b0000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

#navigation::before,
#navigation::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    opacity: 0.3;
    background-image: 
        radial-gradient(circle at center, transparent 65%, rgba(255,255,255,0.05) 66%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 12px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 12px);
}

#navigation::before {
    top: 0;
    left: 0;
}

#navigation::after {
    bottom: 0;
    right: 0;
}

#navigation a {
    padding: 14px 30px;
    font-size: 20px;
    text-transform: uppercase;
    color: #ffcccc;
    background: linear-gradient(145deg, #1a0000, #0a0000);
    border: 2px solid #660000;
    clip-path: polygon(0 0, 100% 15%, 90% 100%, 10% 85%);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.9),
                0 0 10px rgba(120,0,0,0.3);
}

#navigation a:hover {
    background: linear-gradient(145deg, #330000, #140000);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(180,0,0,0.7);
    transform: translateY(-4px) scale(1.05);
}

#navigation a::before {
    content: "🕸️";
    margin-right: 8px;
    color: #ff4d4d;
}

.contentx {
    width: 70%;  background-position: center;
    background-image: url('images/bg.png');
    background-repeat: no-repeat;
    margin: 10px auto;
    font-family: 'Lora', serif;
    padding: 30px 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.9;
    letter-spacing: 1.4px;
    text-align: justify;
    opacity: 0.7;
    background-color:#190205;
    border: 2px solid #660000;
    border-radius: 20px;
}

a {
    color: #d9a3a3;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 20px;

    position: relative;
    transition: all 0.3s ease;

    text-shadow: 0 0 4px rgba(255,0,0,0.2);
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;

    background: linear-gradient(to right, transparent, #990000, transparent);

    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 
        0 0 6px rgba(255,0,0,0.6),
        0 0 12px rgba(255,0,0,0.4);
}

a:hover::after {
    transform: scaleX(1);
}

i, em {
    color: #ffb3b3;
    background: linear-gradient(to right, #1a0000, #2a0000);
    padding: 4px 7px;
    border-radius: 4px;
}

b, strong {
    color: #ffe6e6;
    background: #2a0000;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

blockquote {
    font-size: 25px;
    color: #f0d6d6;
    background: linear-gradient(145deg, #140000, #2a0000);
    padding: 40px;
    border-left: 6px solid #990000;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(120,0,0,0.6);
    position: relative;
}

blockquote::before {
    content: "❝";
    font-size: 60px;
    color: #cc0000;
    position: absolute;
    top: 10px;
    left: 15px;
}

textarea,
input,
select {
    background: linear-gradient(145deg, #140000, #0a0000);
    border: 2px solid #660000;
    color: #ffcccc;
    border-radius: 10px;
    padding: 14px;
    background-color: #000000;
}

textarea:focus,
input:focus {
    border-color: #cc0000;
    box-shadow: 0 0 12px rgba(200,0,0,0.6);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: #ff4d4d;
    text-shadow: 0 0 12px rgba(255,0,0,0.6);
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #660000, #ff0000);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.4s ease;
}

h1:hover::after {
    transform: translateX(-50%) scaleX(1);
}

#footer {
    font-size: 17px;
    color: #b38c8c;
    text-align: center;
    padding: 90px 20px 60px;
}

#footer::before,
#footer::after {
    content: "✦ ━━━ 🕸️ ━━━ ✦";
    display: block;
    letter-spacing: 6px;
    color: #990000;
    opacity: 0.7;
}

#footer a {
    color: #ffb3b3;
}

#footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255,0,0,0.7);
}

#footer a:not(:last-child)::after {
    content: "✧";
    margin-left: 14px;
    color: #660000;
}