#header {
    background-image: url('images/head.jpg');background-color:#F8F8EC;
    background-repeat: no-repeat;
    background-position: center;
    height: 576px;
    width: 100%;
    position: relative;
    z-index: 0;
    top: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Libre+Baskerville&family=Special+Elite&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    color: #4a3b32;
    background-color:#E8DFCE;
}

#navigation {
    width: 100%;
    opacity: 1;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 36px;
    padding: 28px 60px;
    background: linear-gradient(180deg, #fff1e6, #f7d6c9);
    border-radius: 0 0 80px 80px;
    border-bottom: 4px solid #c92a2a;
    box-shadow: 0 18px 40px rgba(180, 40, 40, 0.35);
    overflow: hidden;
}

#navigation::before {
    content: "✦ ✦ ✦";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    letter-spacing: 28px;
    color: rgba(201, 42, 42, 0.35);
    pointer-events: none;
}

#navigation::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.25;
    pointer-events: none;
}

#navigation a {
    font-family: 'Baloo 2', 'Comic Neue', cursive;
    font-size: 19px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 18px 34px;
    border-radius: 22px 40px;
    color: #7a1f1f;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 55%),
        linear-gradient(145deg, #fff9f4, #f2d2c4);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.9),
        0 10px 22px rgba(201,42,42,0.28);
    transform: skewX(-4deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

#navigation a::after {
    content: "★";
    position: absolute;
    top: -10px;
    right: -6px;
    font-size: 14px;
    color: rgba(201,42,42,0.55);
    transform: scale(0) rotate(-20deg);
    transition: transform 0.35s ease;
}

#navigation a:hover {
    transform: skewX(-4deg) translateY(-6px) rotate(-1deg);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,1), transparent 55%),
        linear-gradient(145deg, #ffe1d6, #ffb3b3);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,1),
        0 18px 36px rgba(201,42,42,0.45);
}

#navigation a:hover::after {
    transform: scale(1.2) rotate(0deg);
}

#navigation a.active {
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.4), transparent 55%),
        linear-gradient(145deg, #ff6b6b, #c92a2a);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.35),
        0 20px 40px rgba(201,42,42,0.55);
}

#navigation a.active::after {
    content: "♪";
    color: rgba(255,255,255,0.85);
    transform: scale(1.3) rotate(0deg);
}


#content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.contentx {
    margin: 0 auto 120px;
    padding: 70px 90px;
    font-size: 23px;
    line-height: 2.05;
    text-align: justify;
    color: #4b2c2c;
    max-width: 1300px;
}

h1 {
    font-family: 'Comic Neue', 'Baloo 2', cursive;
    font-size: 45px;
    text-align: center;
    color: #c92a2a;
    margin:4 0px auto 50px;
    letter-spacing: 2px;
    text-shadow: 0 6px 0 #ffe3d6, 0 12px 26px rgba(201, 42, 42, 0.45);
}

h1::after {
    content: "★ ♪ ★";
    display: block;
    margin-top: 18px;
    font-size: 22px;
    letter-spacing: 18px;
    color: rgba(201, 42, 42, 0.45);
}

blockquote {
    margin: 80px auto;
    padding: 54px 76px;
    max-width: 700px;
    background: linear-gradient(160deg, #fff4ee, #ffd6cc);
    border-left: 8px solid #c92a2a;
    border-radius: 28px;
    font-size: 22px;
    line-height: 1.8;
    color: #4b2c2c;
    box-shadow: 0 14px 34px rgba(180, 40, 40, 0.35);
    position: relative;
}

blockquote::before {
    content: "♪";
    font-size: 72px;
    position: absolute;
    top: -28px;
    left: 18px;
    color: rgba(201, 42, 42, 0.35);
}

textarea,
input,
select {
    width: 42%;
    padding: 1.8rem 1.2rem;
    background: #fffaf7;
    border: 2px solid rgba(201, 42, 42, 0.35);
    border-radius: 999px;
    color: #4b2c2c;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(180, 40, 40, 0.2);
    transition: all 0.3s ease;
}

textarea:focus,
input:focus,
select:focus {
    box-shadow: 0 0 1.2rem rgba(201, 42, 42, 0.45);
    outline: none;
}

a {
    color: #c92a2a;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ffb3b3, #c92a2a);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

a:hover::after {
    transform: scaleX(1);
}

i, em {
    color: #8a1f1f;
    background: rgba(255, 107, 107, 0.25);
    padding: 4px 8px;
    border-radius: 10px;
}

b, strong {
    font-family: 'Comic Neue', 'Baloo 2', cursive;
    font-size: 26px;
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(160deg, #ff6b6b, #c92a2a);
    box-shadow: 0 4px 12px rgba(201, 42, 42, 0.45);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c92a2a #fff1e6;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #fff1e6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #c92a2a);
    border-radius: 10px;
    border: 2px solid #fff1e6;
}

#footer {
    position: relative;
    margin: 140px auto 80px;
    padding: 50px 20px 40px;
    text-align: center;
    color: #8a1f1f;
    font-size: 14px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

#footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 480px;
    height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to right, transparent, #c92a2a, transparent);
}

#footer::after {
    content: "★ ❦ ★";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    letter-spacing: 26px;
    color: rgba(201, 42, 42, 0.55);
    pointer-events: none;
}

#footer a {
    margin: 0 16px;
    font-size: 13px;
    letter-spacing: 0.4em;
    background: linear-gradient(120deg, #c92a2a, #ff6b6b, #ffd6cc, #ff6b6b);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background-position 0.6s ease;
}

#footer a:hover {
    background-position: 100% 50%;
}

#footer .paw {
    display: block;
    margin-top: 30px;
    font-size: 18px;
    letter-spacing: 10px;
    opacity: 0.5;
}

#footer .footer-text {
    margin-top: 26px;
    font-size: 13px;
    color: rgba(138, 31, 31, 0.85);
    letter-spacing: 0.3em;
    line-height: 1.7;
}

#footer .back-to-top {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 0.35em;
    background: linear-gradient(120deg, #c92a2a, #ff6b6b, #ffd6cc, #ff6b6b);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: background-position 0.6s ease, transform 0.25s ease;
}

#footer .back-to-top:hover {
    background-position: 100% 50%;
    transform: translateY(-3px) scale(1.05);
}

#footer .back-to-top::after {
    content: " ↑";
    font-size: 14px;
    vertical-align: middle;
}


@media (max-width: 768px) {

    #layout-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 60px 20px;
    }

    #navigation {
        min-width: 90%;
        padding: 30px 24px;
        gap: 16px;
        border-radius: 28px;
    }

    #navigation a {
        font-size: 12px;
        letter-spacing: 0.25em;
        padding: 12px 8px;
    }

    #content {
        width: 95%;
        max-width: 100%;
        padding: 0 10px;
    }

    .contentx {
        padding: 30px 25px;
        font-size: 18px;
        line-height: 1.8;
        border-radius: 48px 32px;
        margin-bottom: 60px;
    }

    h1 {
        font-size: 36px;
        margin: 30px auto 50px;
    }

    blockquote {
        padding: 32px 40px;
        font-size: 18px;
        max-width: 90%;
    }

    textarea,
    input,
    select {
        width: 80%;
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }

    #footer {
        padding: 30px 15px 20px;
        font-size: 12px;
    }

    #footer::before {
        width: 300px;
        height: 1.5px;
    }

    #footer::after {
        font-size: 18px;
        letter-spacing: 16px;
    }

    #footer a {
        font-size: 12px;
        margin: 0 10px;
        letter-spacing: 0.28em;
    }

    #footer .paw {
        margin-top: 20px;
        font-size: 14px;
        letter-spacing: 6px;
    }

    #footer .footer-text {
        font-size: 12px;
        letter-spacing: 0.22em;
        line-height: 1.5;
    }

    #footer .back-to-top {
        font-size: 12px;
        letter-spacing: 0.25em;
    }
}
