html, body {
    height: 100%;
    margin: 0;
}

body {
    background: #1A1814 url(images/bg.jpg) repeat;
    color: #D8C9A3;
    overflow-x: hidden;
    line-height: 1.7;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #2A261F;
}

::-webkit-scrollbar-thumb {
    background: #C9A96A;
    border-radius: 10px;
    border: 3px solid #2A261F;
}

#navigation {
    width: 60%;
    margin: 50px auto;
    padding: 18px 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: rgba(40, 36, 28, 0.85);
    border-radius: 40px;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

#navigation a {
    position: relative;
    padding: 12px 22px;
    border-radius: 20px;
    color: #C9A96A;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#navigation a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0%;
    height: 2px;
    background: #F2D58A;
    transform: translateX(-50%);
    transition: 0.3s ease;
}

#navigation a:hover {
    color: #F2D58A;
    background: rgba(201, 169, 106, 0.15);
    transform: translateY(-2px);
}

#navigation a:hover::after {
    width: 60%;
}

#navigation a.active {
    background: rgba(201, 169, 106, 0.25);
    color: #F2D58A;
}

#header {
    background-image: url('images/head.jpg'), url('images/bg.jpg');
    background-repeat: no-repeat, repeat-x;
    background-position: center;
    height: 595px;
    width: 100%;
    margin-top: -5px;
}

#container {
    width: 60%;
    margin: 0 auto;
}

.contentx {
    margin-bottom: 80px;
    padding: 35px;
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 1.5px;
    color: #D8C9A3;
    text-align: justify;
    background: rgba(35, 31, 24, 0.9);
    border-radius: 30px;
    border-top: 2px solid #C9A96A;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h1 {
    text-align: center;
    margin: 50px 0 20px;
    font-family: "Grey Qo", cursive;
    font-size: 64px;
    color: #F2D58A;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(242, 213, 138, 0.3);
}

h1::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(to right, transparent, #C9A96A, transparent);
}

blockquote {
    position: relative;
    margin: 30px 0;
    padding: 20px 25px 20px 60px;
    background: rgba(50, 44, 34, 0.9);
    border-radius: 20px;
    color: #D8C9A3;
    font-style: italic;
    border-left: 3px solid #C9A96A;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.4);
}

blockquote::before {
    content: "“";
    position: absolute;
    left: 18px;
    top: 5px;
    font-size: 50px;
    color: #C9A96A;
    opacity: 0.7;
}

a {
    color: #C9A96A;
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: #F2D58A;
}

b, i {
    color: #F2D58A;
}

.contentx input,
.contentx textarea,
.contentx select {
    width: 40%;
    display: block;
    margin: 14px 0;
    padding: 12px 14px;
    background: rgba(42, 38, 31, 0.6);
    border: 1px solid rgba(201, 169, 106, 0.4);
    border-radius: 14px;
    color: #F2D58A;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    box-shadow:
        inset 0 0 12px rgba(0,0,0,0.4),
        0 0 8px rgba(201, 169, 106, 0.08);
    transition: all 0.35s ease;
}

.contentx input::placeholder,
.contentx textarea::placeholder {
    color: rgba(242, 213, 138, 0.45);
    font-style: italic;
}

.contentx input:hover,
.contentx textarea:hover,
.contentx select:hover {
    border-color: rgba(242, 213, 138, 0.6);
    box-shadow:
        inset 0 0 14px rgba(0,0,0,0.5),
        0 0 12px rgba(201, 169, 106, 0.15);
}

.contentx input:focus,
.contentx textarea:focus,
.contentx select:focus {
    outline: none;
    border-color: #F2D58A;
    background: rgba(42, 38, 31, 0.75);
    box-shadow:
        0 0 18px rgba(242, 213, 138, 0.35),
        inset 0 0 12px rgba(0,0,0,0.6);
    transform: translateY(-2px) scale(1.01);
    animation: etherealPulse 3s infinite ease-in-out;
}

.contentx textarea {
    min-height: 120px;
    resize: vertical;
}

.contentx select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #C9A96A 50%),
        linear-gradient(135deg, #C9A96A 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

@keyframes etherealPulse {
    0%   { box-shadow: 0 0 6px rgba(201,169,106,0.08); }
    50%  { box-shadow: 0 0 14px rgba(201,169,106,0.18); }
    100% { box-shadow: 0 0 6px rgba(201,169,106,0.08); }
}

#footer {
    width: 60%;
    margin: 100px auto 40px;
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    color: #C9A96A;
    position: relative;
    letter-spacing: 1px;
}

#footer::before {
    content: "";
    display: block;
    width: 180px;
    height: 1px;
    margin: 0 auto 20px;
    background: linear-gradient(to right, transparent, #C9A96A, transparent);
}

#footer::after {
    content: "✦";
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #F2D58A;
    opacity: 0.7;
}

#footer p {
    margin: 10px 0;
    font-size: 13px;
    color: #BFAE84;
}

#footer a {
    color: #C9A96A;
    text-decoration: none;
    padding: 0 8px;
    position: relative;
    transition: 0.3s ease;
}

#footer a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0%;
    height: 1px;
    background: #F2D58A;
    transform: translateX(-50%);
    transition: 0.3s ease;
}

#footer a:hover {
    color: #F2D58A;
}

#footer a:hover::after {
    width: 80%;
}

@media (max-width: 1024px) {
    #navigation {
        width: 85%;
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 20px;
    }

    #navigation a {
        font-size: 13px;
        padding: 10px 16px;
    }

    #container {
        width: 85%;
    }

    .contentx {
        padding: 25px;
        font-size: 13px;
        line-height: 24px;
    }

    h1 {
        font-size: 48px;
    }

    #header {
        height: 420px;
        background-size: cover;
    }

    .contentx input,
    .contentx textarea,
    .contentx select {
        width: 70%;
    }

    #footer {
        width: 80%;
    }
}


@media (max-width: 768px) {
    #navigation {
        width: 95%;
        flex-direction: column;
        align-items: center;
        border-radius: 25px;
    }

    #navigation a {
        width: 100%;
        text-align: center;
    }

    #container {
        width: 92%;
    }

    .contentx {
        padding: 20px;
        font-size: 13px;
        line-height: 22px;
    }

    h1 {
        font-size: 36px;
        letter-spacing: 2px;
    }

    #header {
        height: 300px;
        background-size: cover;
    }

    blockquote {
        padding: 18px 18px 18px 50px;
    }

    .contentx input,
    .contentx textarea,
    .contentx select {
        width: 100%;
    }

    #footer {
        width: 90%;
        font-size: 12px;
    }
}


@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    #header {
        height: 220px;
    }

    #navigation {
        margin: 20px auto;
        padding: 10px;
    }

    .contentx {
        padding: 16px;
    }
}