html, body {
    height: 100%;
    margin: 0;
}

body {
    background-image: url('images/halloween_bg.jpg');
    background-repeat: repeat;
    font-family: 'Libre Baskerville', serif;
}

#header {
    background-image: url('images/halloween_head.jpg'),url('images/halloween_bg1.jpg');
    background-repeat: no-repeat,repeat-x;
    background-position: center; 
    height: 591px;
    width: 100%;
    margin-top: -5px;
}

#gif-container {
    position: absolute;
    top: 186px;
    left: 60%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(128, 128, 128, 0.5);
    padding: 20px;
    border: 4px dashed rgba(0, 0, 0, 0.5);
    border-radius: 6px; 
}

#gif-container img {
    width: 400px;
    height: auto;
    display: block;
}

#navigation {
    position: relative;
    width: 60%;
    margin: -10px auto 0;
    padding: 40px 15px;
    background: linear-gradient(to bottom right, #e6e6e6, #d0d0d0);
    clip-path: polygon(0 0, 100% 10%, 95% 90%, 5% 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    opacity: 0.95;
    border-top: 4px solid #ff8c00;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 18px;
    border-bottom: 3px dashed #888;
    z-index: 5;
}

#navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px; 
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff8c00;
    background: transparent;
    border: none;
    text-decoration: none !important;
    position: relative;
    transition: color 0.3s ease;
}

#navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff8c00, #d0a366, #888);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    border-radius: 3px;
}

#navigation a:hover {
    color: #ffa500;
}

#navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

h1 {
    position: relative;
    display: inline-block;
    padding: 30px 60px;
    font-size: 44px;
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 10px 10px 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #000000, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent;
    z-index: 1;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;  
    background: linear-gradient(90deg, #ff8c00, #d0a366, #888);
    border-radius: 3px;
}

a:link,
a:visited {
    color: #555;
    font-size: 24px;
    font-family: 'Alumni Sans Pinstripe', sans-serif;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #999, #888, #777);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover {
    color: #333;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

i, em {
    color: #555;
    font-style: italic;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #e0e0e0, #cfcfcf);
    padding: 4px 7px;
    border-radius: 4px;
    box-shadow: inset 0 0 4px rgba(100, 100, 100, 0.2);
    transition: all 0.3s ease;
}

i:hover, em:hover {
    background: linear-gradient(to right, #dcdcdc, #c8c8c8);
    color: #222;
}

b, strong {
    font-weight: 800;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222;
    padding: 4px 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ccc, #eee, #bbb);
    box-shadow: 0 0 8px rgba(200, 200, 200, 0.6),
                inset 0 0 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

b:hover, strong:hover {
    background: linear-gradient(135deg, #eee, #ccc, #aaa);
    color: #111;
    box-shadow: 0 0 12px rgba(220, 220, 220, 0.8),
                inset 0 0 8px rgba(0, 0, 0, 0.2);
}

#content {
    margin: 23px auto;
    position: relative;
    width: 63%;
    margin-top: -40px;
}

.contentx {
    margin: 0 0 50px 0;
    padding: 25px;
    font-size: 16px;
    font-weight: 500 !important;
    text-align: justify;
    color: #444;
    line-height: 25px;
    letter-spacing: 1px;
    border-radius: 20px;
    opacity: 0.85;
}

blockquote {
    font-family: 'Georgia', serif;
    font-size: 22px;
    color: #222;
    background: linear-gradient(145deg, #e0e0e0, #cfcfcf);
    padding: 40px 50px;
    margin: 40px auto;
    border-left: 10px double #999;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(100, 100, 100, 0.3), 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 860px;
    position: relative;
    line-height: 1.9;
    letter-spacing: 0.6px;
}

blockquote::before,
blockquote::after {
    font-size: 60px;
    color: #777;
    position: absolute;
    opacity: 0.3;
}

blockquote::before {
    content: "❝";
    top: 10px;
    left: 20px;
}

blockquote::after {
    content: "❞";
    bottom: 10px;
    right: 20px;
}

textarea,
input,
select {
    width: 100%;
    max-width: 600px;
    padding: 16px 20px;
    margin: 16px 0;
    font-family: 'Tahoma', sans-serif;
    font-size: 18px;
    color: #222;
    background: linear-gradient(145deg, #eee, #ddd);
    border: 2px solid #999;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(100, 100, 100, 0.2);
    transition: all 0.3s ease;
    caret-color: #555;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: #888;
    background-color: #f0f0f0;
    box-shadow: 0 0 14px rgba(180, 180, 180, 0.3), inset 0 0 6px rgba(0, 0, 0, 0.1);
}

#footer {
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-image: url('images/halloween_footer.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    margin: 60px auto 0;
    padding: 15px;
}

#footer p {
    margin: 5px 0;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: inline-block;
    color: #fff;
}