/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body */
body {
    background: #eafaf1; /* pastel green */
    color: #111;
    text-align: center;
    overflow-x: hidden;
}

/* Main Heading */
.H {
    padding: 20px;
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(90deg, #b7f8db, #50a7c2);
    color: black;
    animation: fadeIn 1.2s ease-in-out;
}

/* Navbar */
nav {
    background: #c8f7dc;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: slideDown 1s ease;
}

.MAIN {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.D2 a {
    text-decoration: none;
    color: black;
    transition: 0.3s ease;
}

.D2 h1, .D2 b {
    font-size: 18px;
    font-weight: 500;
}

/* Hover Effect */
.D2 a:hover {
    color: #1b4332;
    letter-spacing: 1px;
    transform: scale(1.05);
}

/* Marquee Styling */
marquee {
    background: #d8f3dc;
    padding: 8px;
    font-weight: 500;
    color: #2d6a4f;
}

/* Year Links */
h2.D2 {
    margin: 20px;
    background: #95d5b2;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    transition: 0.4s;
}

h2.D2:hover {
    background: #40916c;
    transform: translateY(-5px);
}

h2.D2 a {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

/* Anchor Tags Professional Look */
a h2 {
    margin: 15px;
    padding: 12px;
    background: #b7e4c7;
    border-radius: 15px;
    transition: 0.3s ease;
}

a h2:hover {
    background: #52b788;
    transform: scale(1.05);
    color: white;
}

/* Footer */
footer, FOOter {
    margin-top: 40px;
    padding: 20px;
    background: #c8f7dc;
    color: black;
    font-size: 14px;
    animation: fadeIn 2s ease-in;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Navbar */
@media (max-width: 768px) {

    .MAIN {
        flex-direction: column;
        gap: 10px;
    }

    .D2 h1, .D2 b {
        font-size: 16px;
    }

    .H {
        font-size: 24px;
    }

    h2.D2 {
        width: 80%;
    }
}
