html,
body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    background: #171717 url('premade/bg.jpg') repeat;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    line-height: 1.9;
    color: #f5f5f5;
    text-align: center;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1.15;
    text-align: center;
    position: relative;
    margin-bottom: 35px;
    background: linear-gradient(
        135deg,
        #3b2b16 0%,
        #8b6a2d 35%,
        #c79a3b 65%,
        #4a3517 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 12px rgba(255, 220, 120, 0.18);
}

h1::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 155, 63, 0.9),
        transparent
    );
}

#header {
    width: 100%;
    height: 540px;
    background-image: url('premade/header.jpg');
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#container {
    width: min(760px, 88%);
    margin: -40px auto 40px auto;
    position: relative;
    z-index: 3;
}

#container .box {
    background: linear-gradient(
        135deg,
        rgba(255, 250, 225, 0.96) 0%,
        rgba(255, 246, 205, 0.92) 45%,
        rgba(255, 240, 190, 0.88) 100%
    );
    backdrop-filter: blur(10px);
    opacity: .7;
    color: #5f5848;
    padding: 55px;
    margin-bottom: 40px;
    border-radius: 28px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow:
        0 8px 30px rgba(120, 100, 40, 0.08),
        0 2px 10px rgba(255,255,255,0.4) inset;
    line-height: 2;
    position: relative;
    overflow: hidden;
}

#container .box::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.55) 0%,
        rgba(255,240,180,0.18) 45%,
        transparent 75%
    );
    pointer-events: none;
}

#container .box::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        circle,
        rgba(255,220,120,0.18) 0%,
        rgba(255,240,200,0.08) 45%,
        transparent 75%
    );
    pointer-events: none;
}

.contentcontainer {
    font-size: 1rem;
    line-height: 2.1;
    letter-spacing: 0.2px;
    color: #5d5444;
}

.contentcontainer b,
.contentcontainer strong {
    color: #2f2a22;
    font-weight: 700;
}

.contentcontainer i,
.contentcontainer em {
    color: #4b3f2d;
}

.contentcontainer a {
    color: #7a4d00;
    text-decoration: none;
    transition: 0.25s ease;
}

.contentcontainer a:hover {
    color: #3f2a00;
    text-shadow: 0 0 10px rgba(255,190,80,0.35);
}

blockquote {
    margin: 35px 0;
    padding: 28px 32px;
    background: rgba(255,255,255,0.75);
    border-left: 4px solid #cab88f;
    border-radius: 16px;
    color: #666;
    font-style: italic;
    line-height: 1.9;
}

input,
textarea,
select {
    width: 40%;
    max-width: 420px;
    min-width: 220px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(202,184,143,0.55);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    font: inherit;
    font-size: 15px;
    color: #4f4638;
    outline: none;
    box-shadow: 0 4px 18px rgba(120,100,40,0.06), inset 0 1px 4px rgba(255,255,255,0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(199,154,59,0.8);
    box-shadow: 0 0 0 4px rgba(255,210,120,0.18), 0 8px 24px rgba(120,100,40,0.12);
    transform: translateY(-1px);
}

textarea {
    width: 50%;
    min-height: 140px;
    resize: vertical;
}

#navigation {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    padding: 14px;
    background: rgba(24, 24, 24, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

#navigation a {
    position: relative;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    color: #f3e7c9;
    font-family: 'Abel', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    overflow: hidden;
}

#navigation a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,210,120,0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

#navigation a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d7c29a, transparent);
    transition: width 0.25s ease;
}

#navigation a:hover {
    transform: translateY(-3px);
    color: #fff1d2;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

#navigation a:hover::before {
    opacity: 1;
}

#navigation a:hover::after {
    width: 70%;
}

#navigation a:active {
    transform: translateY(-1px);
}

#footer {
    padding: 80px 20px 140px;
    font-size: 14px;
    line-height: 2;
    color: rgba(255,255,255,0.7);
}

#footer a {
    color: #d9b06f;
}

.clear,
.clearfooter {
    clear: both;
}

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

    #container {
        width: 92%;
        margin-top: -40px;
    }

    #container .box {
        padding: 32px;
    }

    #navigation {
        width: calc(100% - 30px);
        overflow-x: auto;
        justify-content: center;
        padding: 10px;
    }

    #navigation a {
        padding: 12px 18px;
        font-size: 0.72rem;
    }
}