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

body {
    background-color: #60A765;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(144, 238, 144, 0.18) 1px, transparent 1px);
    background-size: 42px 42px;
    animation: mistDrift 70s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes mistDrift {
    0% { background-position: 0 0; }
    100% { background-position: 120px 200px; }
}

#navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    width: 70%;
    margin: -80px auto 0;
    padding: 14px 0;
    font-family: 'Cinzel Decorative', serif;
    text-align: center;
}

#navigation a {
    position: relative;
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2F662F;
    text-decoration: none;
    padding: 23px 25px;
    transition: color 0.25s ease;
}

#navigation a::after {
    content: none;
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #7ac07a;
    transition: width 0.25s ease;
}

#navigation a:hover {
    color: #145214;
    border-bottom: none;
    text-decoration: none;
}

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

#navigation a + a::before {
    content: "❧";
    margin-right: 14px;
    color: #5faa5f;
    opacity: 0.6;
}

#header {
    background-image: url('images/stpatricks_head.jpg'), url('images/stpatricks_bg1.jpg');
    background-repeat: no-repeat, repeat-x;
    background-position: center;
    height: 610px;
    width: 100%;
    z-index: 0;
    position: relative;
    overflow: hidden;
}

a:link,
a:visited {
    position: relative;
    color: #2F662F;
    font-size: 24px;
    text-decoration: none;
    font-family: 'Alumni Sans Pinstripe', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: 
        color 0.3s ease,
        text-shadow 0.3s ease,
        transform 0.2s ease;
    text-shadow: 0 0 6px rgba(144,238,144,0.35);
}

a:hover {
    color: #145214;
    transform: translateY(-2px);
    text-shadow:
        0 0 6px rgba(144,238,144,0.6),
        0 0 12px rgba(120,220,120,0.4);
}

a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(144,238,144,0.35),
        transparent
    );
    opacity: 0;
    transform: translateX(-60%);
    transition: all 0.4s ease;
    border-radius: 6px;
    z-index: -1;
}

a:hover::before {
    opacity: 1;
    transform: translateX(60%);
}

a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #7ac07a;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

a:hover::after {
    width: 80%;
    animation: pulseLine 1.2s infinite alternate;
}

@keyframes pulseLine {
    from { box-shadow: 0 0 4px rgba(144,238,144,0.4); }
    to { box-shadow: 0 0 10px rgba(120,220,120,0.8); }
}

i, em {
    color: #3b8e3b;
    font-style: italic;
    background: rgba(180,230,180,0.45);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(120,220,120,0.3);
}

b, strong {
    color: #f0fff0;
    background: linear-gradient(135deg, #7ac07a, #5faa5f);
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow:
        0 2px 6px rgba(60,150,60,0.35),
        inset 0 0 6px rgba(255,255,255,0.3);
}

#content {
    margin: 25px auto;
    width: 70%;
}

.contentx {
    opacity: 0.7;
    margin-bottom: 50px;
    padding: 30px;
    font-size: 16px;
    font-family: 'Libre Baskerville', serif;
    text-align: justify;
    color: #ffffff;
    line-height: 26px;
    letter-spacing: 1.8px;
}

blockquote {
    position: relative;
    max-width: 820px;
    margin: 70px auto;
    padding: 40px 60px;
    font-family: 'Georgia', serif;
    font-size: 22px;
    line-height: 1.9;
    letter-spacing: 0.6px;
    color: rgba(40,100,40,0.9);
    background: linear-gradient(135deg, rgba(220,255,220,0.85), rgba(180,240,180,0.7));
    border-left: 8px solid #7ac07a;
    border-right: 8px solid #98d898;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(60,150,60,0.2), inset 0 0 20px rgba(255,255,255,0.4);
}

blockquote::before {
    content: "“";
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(120,220,120,0.35);
    line-height: 1;
}

blockquote::after {
    content: "❧";
    position: absolute;
    right: 25px;
    bottom: -18px;
    font-size: 38px;
    color: #3b8e3b;
    opacity: 0.35;
    animation: leafFloat 4s ease-in-out infinite;
}

@keyframes leafFloat {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-6px) rotate(6deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

textarea,
input,
select {
    width: 39%;
    max-width: 600px;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 18px;
    color: #155214;
    background: linear-gradient(145deg, #d4f0d4, #b8e6b8);
    border: 2px solid #7ac07a;
    border-radius: 14px;
}

h1 {
    position: relative;
    display: block;
    width: fit-content;
    min-width: 300px;
    margin: 0 auto;
    padding: 30px 60px;
    text-align: center;
    font-size: 30px;
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #eaffea;
    background: linear-gradient(90deg, rgba(170,235,170,0.45), rgba(120,210,120,0.35));
    border-radius: 14px;
    border-bottom: 4px solid #7ac07a;
    text-shadow: 0 0 8px rgba(180,255,180,0.6);
    box-shadow: 0 8px 25px rgba(60,150,60,0.25);
}

h1::before {
    content: "❦ ❧ ❦";
    position: absolute;
    left: -90px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    font-size: 24px;
    letter-spacing: 10px;
    color: #5faa5f;
    opacity: 0.75;
    animation: vineGrowLeft 3s ease-out;
}

h1::after {
    content: "❦ ❧ ❦";
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-50%) rotate(8deg);
    font-size: 24px;
    letter-spacing: 10px;
    color: #5faa5f;
    opacity: 0.75;
    animation: vineGrowRight 3s ease-out;
}

@keyframes vineGrowLeft {
    from { opacity: 0; transform: translateY(-50%) rotate(-20deg) scale(0.6); }
    to { opacity: 0.75; transform: translateY(-50%) rotate(-8deg) scale(1); }
}

@keyframes vineGrowRight {
    from { opacity: 0; transform: translateY(-50%) rotate(20deg) scale(0.6); }
    to { opacity: 0.75; transform: translateY(-50%) rotate(8deg) scale(1); }
}

#footer {
    position: relative;
    margin-top: 120px;
    padding: 70px 20px 35px;
    font-family: 'Lora', serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #c6f5c6;
    text-align: center;
}

#footer::before {
    content: "──── ❧ ────";
    display: block;
    margin-bottom: 28px;
    font-size: 16px;
    letter-spacing: 8px;
    color: #a8e6a8;
}

#footer a {
    color: #b0f0b0;
    text-decoration: none;
    transition: color 0.25s ease;
    font-family: 'Lora', serif;
    font-size: 16px;
    letter-spacing: 1px;
}

#footer a:hover {
    color: #e0ffe0;
}

.footer-ornament {
    margin-top: 30px;
    font-size: 16px;
    letter-spacing: 12px;
    color: #98e098;
    opacity: 0.6;
}

.feather-divider {
    width: 100%;
    height: 60px;
    margin: 60px 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(180,255,180,0.4) 0px,
            rgba(180,255,180,0.4) 35px,
            transparent 35px,
            transparent 65px
        );
    opacity: 0.5;
}

.falling-shamrocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.falling-shamrocks span {
    position: absolute;
    top: -10%;
    font-size: 24px;
    color: rgba(120, 220, 120, 0.5); 
    animation: shamrockFall linear infinite;
}


.falling-shamrocks span:nth-child(1)  { left: 10%; animation-duration: 8s;  animation-delay: 0s; }
.falling-shamrocks span:nth-child(2)  { left: 20%; animation-duration:10s;  animation-delay: 2s; }
.falling-shamrocks span:nth-child(3)  { left: 30%; animation-duration: 7s;  animation-delay: 1s; }
.falling-shamrocks span:nth-child(4)  { left: 40%; animation-duration:11s;  animation-delay: 3s; }
.falling-shamrocks span:nth-child(5)  { left: 50%; animation-duration: 9s;  animation-delay:.5s; }
.falling-shamrocks span:nth-child(6)  { left: 60%; animation-duration:12s;  animation-delay: 4s; }
.falling-shamrocks span:nth-child(7)  { left: 70%; animation-duration: 8s;  animation-delay:1.5s; }
.falling-shamrocks span:nth-child(8)  { left: 80%; animation-duration:10s;  animation-delay:2.5s; }
.falling-shamrocks span:nth-child(9)  { left: 90%; animation-duration: 7s;  animation-delay:.8s; }
.falling-shamrocks span:nth-child(10) { left: 95%; animation-duration:13s;  animation-delay:5s; }

@keyframes shamrockFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.9);
        opacity: 0.9;
    }
    50% {
        transform: translateY(60vh) translateX(35px) rotate(180deg) scale(1.05);
    }
    100% {
        transform: translateY(120vh) translateX(-35px) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}