html, body {
    height: 100%;
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    background-image: url('images/bg.jpg');
    background-repeat: repeat;
    color: #c4c4c4;
    position: relative;
    overflow-x: hidden;
}

a {
    color: #e3caba;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #704a36;
    transition: color 0.3s ease, border-color 0.3s ease;
}
a:hover, a:focus {
    color: #f8e3cf;
    border-bottom-color: #a07152;
    text-shadow: 0 0 6px rgba(255, 200, 150, 0.6);
}
a:active {
    color: #b89a7c;
    border-bottom-color: #705340;
}

b, strong {
    background-color: #4a1b1b;
    color: #f3e2d3;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

i, em {
    color: #d49b7b;
    font-style: italic;
    background: #1a0b0c;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.star {
    position: absolute;
    top: -1vh;
    width: 0.3vw;
    height: 0.3vw;
    background: white;
    border-radius: 50%;
    animation: fall linear infinite;
    z-index: 0;
}

@keyframes fall {
    to {
        transform: translateY(100vh) translateX(2vw);
        opacity: 0;
    }
}


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

h1 {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-weight: normal;
    background: linear-gradient(45deg, #FFD966, #FFB347, #FF9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 0 0 6px rgba(255, 200, 50, 0.5);
    z-index: 10;
}

h1::after {
    content: '';
    display: block;
    width: 40%; 
    height: 0.3rem;
    margin: 0.5rem auto 0;
    background: linear-gradient(to right, #FFD700, #FFA500);
    border-radius: 2px;
}

.main-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2vw;
    padding: 1vw 2vw;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    opacity: 0.65;
}

#navigation {
    order: 2;
    width: 20vw;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
    padding: 2vw;
    position: sticky;
    top: 2vh;
    opacity: 0.7;
}

#navigation a {
    display: block;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(to bottom, #3a0f14, #1a0a0c);
    border: 2px solid #8c5b3a;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #e6d8cb;
    text-decoration: none;
    box-shadow: 0 0 1vw rgba(140, 30, 30, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

#navigation a:hover {
    background: linear-gradient(to bottom, #4a0f17, #21090c);
    border-color: #b57a45;
    box-shadow: 0 0 1.5vw rgba(170, 40, 40, 0.45);
    animation: scatter 0.45s ease;
}

#navigation a::before {
    content: "🤍";
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #b78652;
}

@keyframes scatter {
    0% { letter-spacing: normal; transform: translateX(0); }
    30% { letter-spacing: 0.4rem; transform: translateX(0.1rem); }
    60% { letter-spacing: -0.1rem; transform: translateX(-0.15rem); }
    100% { letter-spacing: normal; transform: translateX(0); }
}

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

.contentx {
    padding: 2rem;text-align: justify;
    border-radius: 1rem;
    font-size: 1.2rem;
    line-height: 2rem;
    color: #e3d4c9;
    letter-spacing: 0.05rem;
    position: relative; margin-top: -4rem;
}

blockquote {
    position: relative;
    border-left: 0.5rem solid #783b3b;
    border-right: 0.5rem solid #783b3b;
    border-top: 0.15rem dashed #5c2e2e;
    border-bottom: 0.15rem dashed #5c2e2e;
    padding: 2rem 2.5rem;
    background: linear-gradient(to right, #1a0b0c, #100506);
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.45);
    font-family: 'Georgia', serif;
    color: #e0c7b3;
    margin: 2rem auto;
    max-width: 90%;text-align: justify;
    opacity: 0.88;
}

blockquote::before {
    content: "❛";
    font-size: 5rem;
    color: #8a5746;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    opacity: 0.25;
}

blockquote::after {
    content: "❜";
    font-size: 5rem;
    color: #8a5746;
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    opacity: 0.25;
}

textarea, input, select {
    width: 40%;
    max-width: 600px;
    padding: 1rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    background: #1a0c0d;
    border: 0.15rem solid #6a3f30;
    border-radius: 0.5rem;
    color: #e4d4c8;
    box-shadow: inset 0 0 0.5rem rgba(0,0,0,0.4);
    caret-color: #a24747;
    transition: all 0.3s ease;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    background-color: #240f11;
    border-color: #b07145;
    box-shadow: 0 0 1rem rgba(180, 40, 40, 0.55);
}

#footer {
    background: linear-gradient(135deg, #1a0b0d 0%, #110607 60%, #0c0405 100%);
    color: #d9c0aa;
    text-align: center;
    padding: 5vw 2vw;
    margin-top: 5vh;
    border-top: 0.25rem double #7a4b36;
    clip-path: polygon(0 60px, 12% 48px, 22% 60px, 32% 50px, 42% 68px, 
                       50% 55px, 62% 70px, 72% 56px, 84% 66px, 100% 78px, 
                       100% 100%, 0 100%);
    box-shadow:
        inset 0 0.75rem 1.5rem rgba(0,0,0,0.5),
        0 0.75rem 1.25rem rgba(0,0,0,0.65);
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    position: relative;
    overflow: hidden;
    opacity: 0.5;
}

#footer a {
    color: #e7c9b4;
    text-decoration: none;
    border-bottom: 0.1rem dashed #a57151;
    padding-bottom: 0.1rem;
    transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
}

#footer a:hover {
    color: #fbead5;
    border-bottom: 0.1rem solid #bf8458;
    text-shadow: 0 0 1rem rgba(255, 230, 200, 0.6);
}

@media (max-width: 1024px) {
    #navigation {
        width: 25vw;
        min-width: 180px;
        padding: 1.5vw;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 4vw;
    }

    #navigation {
        width: 100%;
        position: relative;
        top: 0;
    }

    #content {
        max-width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    .star {
        width: 0.4vw;
        height: 0.4vw;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    #navigation a {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    blockquote {
        padding: 1.2rem 1.5rem;
        font-size: 0.9rem;
    }
}
