body {
    margin: 0;
    font-family: 'Lora', serif;
    background-color: #ffffff;
    color: #000000;
    font-size:16px;
}

#layout {
    display: flex;
    min-height: 100vh;
}

#content {
    flex: 1;
    max-width: 780px;
    font-size: 19.5px;
    padding: 20px 70px;
    line-height: 2.2;
    letter-spacing: 0.3px;
    text-align: justify;
    opacity: 0.92;
}

@keyframes softPulse {
    0%, 100% {
        text-shadow: 0 0 6px rgba(255,0,0,0.4);
        letter-spacing: 2px;
    }
    50% {
        text-shadow: 0 0 18px rgba(255,0,0,0.7);
        letter-spacing: 2.5px;
    }
}

#content h1 {
    font-size: 2.6rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 1.5px;
    color: #2b2b2b;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

#content h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(to right, transparent, #b30000, transparent);
}

#content a {
    color: #2b2b2b;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
}

#content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #b30000, transparent);
    opacity: 0.6;
    transition: all 0.3s ease;
}

#content a:hover {
    color: #8b0000;
    letter-spacing: 0.3px;
}

#content a:hover::after {
    opacity: 1;
    height: 2px;
}

#content b,
#content strong {
    font-weight: 500;
    color: #1f1f1f;
    position: relative;
}

#content b::after,
#content strong::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #b30000, transparent);
    opacity: 0.5;
}

#content i,
#content em {
    font-style: italic;
    color: #444;
    letter-spacing: 0.2px;
}

#content i:hover,
#content em:hover {
    color: #8b0000;
    transition: 0.3s ease;
}

#content select,
#content input,
#content textarea {
    width: 40%;
    background-color: #111;
    color: #eee;
    border: 1px solid #8b0000;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Gabriela', serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

#content select:focus,
#content input:focus,
#content textarea:focus {
    border-color: red;
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
    background-color: #0d0d0d;
}

blockquote {
    background: linear-gradient(145deg, #111, #1a0000);
    border-left: 6px solid red;
    padding: 25px 30px;
    border-radius: 10px;
    color: #ccc;
    font-style: italic;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 0 15px rgba(255,0,0,0.2);
}

blockquote::before,
blockquote::after {
    font-size: 3rem;
    color: rgba(255,0,0,0.5);
    position: absolute;
}

blockquote::before {
    content: "❝";
    top: 10px;
    left: 15px;
}

blockquote::after {
    content: "❞";
    bottom: 10px;
    right: 15px;
}

#sidebar {
    width: 540px;
    padding: 0px 0px 40px 0px;
    background-color:#0C0606;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    background-image:url(images/head.jpg);
    background-repeat: no-repeat;
}

#sidebar-ornament {
    position: fixed;
    top: 0;
    left: 30px;
    width: 40px;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
}

#sidebar-ornament::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 14px;
    height: calc(100% - 80px);
    transform: translateX(-50%);
    background:
        radial-gradient(circle at center, #8b0000 2px, transparent 3px),
        radial-gradient(circle at center, #5a0000 2px, transparent 3px);
    background-repeat: repeat-y;
    background-size: 14px 60px;
    opacity: 0.6;
}

#sidebar-ornament::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent,
        #8b0000,
        #2b0000,
        #8b0000,
        transparent
    );
    opacity: 0.75;
}

#navi {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    align-items: center;
    margin-top: 750px;
}

a.navi {
    display: inline-block;
    width: 65%;
    padding: 10px 0;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff4d4d;
    background: transparent;
    border: 1px solid rgba(139,0,0,0.6);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

a.navi::before,
a.navi::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, red, transparent);
    opacity: 0;
    transition: 0.4s;
}

a.navi::before {
    top: 0;
}

a.navi::after {
    bottom: 0;
}

a.navi:hover::before,
a.navi:hover::after {
    opacity: 1;
}

a.navi span {
    position: relative;
    display: inline-block;
}

a.navi span::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 3px;
    height: 6px;
    background: darkred;
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

a.navi:hover {
    color: #ffffff;
    letter-spacing: 3px;
    border-color: red;
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
    animation: flicker 2.5s infinite;
}

@media (max-width: 900px) {
    #layout {
        flex-direction: column;
    }
    #sidebar {
        width: 100%;
        align-items: center;
        padding: 30px;
    }
    #content {
        padding: 40px 20px;
    }
    #navi a {
        width: 80%;
    }
}

@keyframes flicker {
    0% { opacity: 1; }
    5% { opacity: 0.6; }
    10% { opacity: 1; }
    15% { opacity: 0.4; }
    20% { opacity: 1; }
    55% { opacity: 0.9; }
    60% { opacity: 0.3; }
    65% { opacity: 1; }
    100% { opacity: 1; }
}