html, body {
    height: 100%;
    margin: 0;
    font-family: 'Comic Neue', cursive;
    background-color:#E7E8E0;
}

#header {
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-position: center;
    height: 557px;
    width: 100%;
    margin-top: 0; 
    position: relative;
    z-index: 0; 
}

a:link {
    color: #0055aa;
    background: transparent;
    border-bottom: 1px dotted #ffaa55;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s ease-in-out;
    position: relative;
}

a:link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #0055aa, #ffaa55);
    transition: width 0.4s ease;
}

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

a:visited {
    color: #7a89a1;
    border-bottom: 1px dotted #dca974;
}

a:hover {
    color: #222;
    background: linear-gradient(to right, #0055aa, #ffaa55);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a:active {
    color: #ff5c33;
    border-bottom: 1px solid #ff9955;
}

#navigation {
    opacity: 0.95;
    width: 56%;
    margin: -30px auto 0;
    padding: 50px 32px;
    background: linear-gradient(to bottom right, #fefefe, #e7e7e7);
    border-top: 3px double #0055aa;
    border-bottom: 2px dashed #ffaa55;
    box-shadow: 0 0 18px rgba(0, 85, 170, 0.1);
    border-radius: 0 0 50px 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: 'Cormorant Garamond', serif;
}

#navigation a {
    padding: 12px 28px;
    font-size: 17px;
    font-weight: 600;
    color: #004080;
    background: #fafafa;
    border: 1px solid #0055aa;
    border-radius: 40px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

#navigation a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #0055aa, #ffaa55);
    opacity: 0.2;
    z-index: 0;
    transition: width 0.4s ease;
}

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

#navigation a:hover {
    color: #ffffff;
    background: linear-gradient(to right, #0055aa, #ffaa55);
    box-shadow: 0 2px 10px rgba(255, 170, 85, 0.4);
    z-index: 1;
}

#navigation a:active {
    transform: scale(0.98);
    background-color: #003366;
    box-shadow: inset 0 0 6px rgba(0, 85, 170, 0.2);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #ffffff;
    text-align: center;
    max-width: 700px;
    margin: 60px auto 30px;
    background: linear-gradient(to right, #0055aa, #ffaa55);
    padding: 20px 30px;
    border-radius: 30px;
    box-shadow:
        0 0 12px rgba(0, 85, 170, 0.5),
        inset 0 0 8px rgba(255, 170, 85, 0.1);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: floatTitle 6s ease-in-out infinite;
}

h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 6px;
    margin: 14px auto 0;
    background: linear-gradient(to right, #ffaa55, #0055aa);
    clip-path: polygon(
        0 0, 10% 100%, 20% 20%, 30% 100%, 
        40% 30%, 50% 100%, 60% 30%, 70% 100%, 
        80% 20%, 90% 100%, 100% 0
    );
    opacity: 0.45;
}

blockquote {
    font-family: 'Crimson Text', serif;
    font-size: 20px;
    color: #222222;
    background: linear-gradient(to bottom, #ffffff, #eeeeee);
    padding: 40px 50px;
    margin: 60px auto;
    max-width: 820px;
    line-height: 2;
    letter-spacing: 0.3px;
    border-left: 6px double #ffaa55;
    border-radius: 18px;
    box-shadow:
        0 4px 16px rgba(255, 170, 85, 0.25),
        inset 0 0 10px rgba(0, 85, 170, 0.05);
    position: relative;
}

blockquote::before {
    content: "❝";
    font-size: 80px;
    color: #0055aa;
    position: absolute;
    top: -20px;
    left: 25px;
    opacity: 0.1;
    z-index: 0;
}

blockquote::after {
    content: "";
    display: block;
    width: 70px;
    height: 6px;
    margin: 20px auto 0;
    background: linear-gradient(to right, #ffaa55, #0055aa);
    clip-path: polygon(
        0 0, 10% 100%, 20% 20%, 30% 100%,
        40% 30%, 50% 100%, 60% 30%, 70% 100%,
        80% 20%, 90% 100%, 100% 0
    );
    opacity: 0.3;
}

textarea, input, select {
    width: 40%;
    max-width: 600px;
    padding: 14px 20px;
    margin: 20px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: #444;
    background: #fefefe;
    border: 1px solid #cccccc;
    border-left: 4px solid #0055aa;
    border-radius: 12px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #ffaa55;
    box-shadow: 0 0 6px rgba(255, 170, 85, 0.3);
}

#footer {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(to top, #f0f0f0, #e0e0e0);
    color: #666;
    text-align: center;
    padding: 60px 30px;
    margin-top: 80px;
    border-top: 3px dotted #0055aa;
    clip-path: polygon(0 50px, 10% 40px, 20% 50px, 30% 45px, 40% 55px, 50% 50px, 60% 60px, 70% 50px, 80% 55px, 90% 50px, 100% 60px, 100% 100%, 0% 100%);
    font-size: 14px;
}

#footer a {
    color: #444;
    text-decoration: none;
    border-bottom: 1px dashed #ffaa55;
    transition: all 0.3s ease;
}

#footer a:hover {
    color: #0055aa;
    text-shadow: 0 0 5px rgba(0, 85, 170, 0.2);
    transform: scale(1.05);
}

b, strong {
    color: #ffffff;
    background: linear-gradient(to right, #ffaa55, #0055aa);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

i {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: #bbbbbb;
    letter-spacing: 0.3px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

i::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #ffaa55, #0055aa);
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

i:hover {
    color: #ffffff;
}

i:hover::after {
    opacity: 0.6;
}

#content {
    margin: 60px auto;
    width: 58%;
    font-family: 'Libre Baskerville', serif;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 85, 170, 0.07);
    padding: 40px 60px;
    position: relative;
    z-index: 1;
}

#content::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border: 1px dashed rgba(0, 85, 170, 0.15);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

.contentx {
    padding: 30px;
    font-size: 17.5px;
    line-height: 1.9;
    letter-spacing: 0.5px;
    border-radius: 18px;
    text-align: justify;
    color: #dddddd;
    background: linear-gradient(to bottom right, #3a3a3a, #2b2b2b);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.15),
        inset 0 0 6px rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.contentx:hover {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}