body {
    font-family: 'poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color:#333
}
nav {
    background-color: #333;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    color: #f4f4f4;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #6cc816;
    color: #111010;
}
.event-intro {
    padding: 20px 20px;
    text-align: center;
    background-color: #e8f1f2;
    color: #004080;
}
.event-intro .heading {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.event-intro .description {
    font-size: 1.1rem;
    line-height: 1.6;
}
.events-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 50px;
    max-width: 2560px;
    margin: 0 auto;
}
.event {
    position: relative;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.event {
    cursor: pointer;
    transition: transform 0.2s;
}

.event:hover {
    transform: scale(1.02);
}
/* Event Box Styling */

.event:hover {
    transform: rotate(5deg) scale(1.05);
}
.event .text-overlay {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 15px;
    color: #fff;
    padding: 10px;
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 5%;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.event:hover .text-overlay {
    opacity: 1;
}
.event h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004080;
}
.event p {
    font-size: 1rem;
    margin: 5px 0;
}
/* Footer Styling */
.footer {
    background-color: #004080;
    color: #f9f9f9;
    padding: 30px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rules, .judging-criteria {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 10px auto;
    max-width: 600px;
}

.rules li, .judging-criteria li {
    font-size: 1rem;
    margin: 8px 0;
    line-height: 1.6;
}

.judging-criteria strong {
    color: #ca9dc6;
}

.footer-note {
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 15px;
    line-height: 1.5;
}
/* General Styles for Mobile */
@media (max-width: 768px) {
    /* Reduce padding and font size for better readability on mobile */
    body {
        font-size: 0.9rem;
    }
    
    .event-intro {
        padding: 10px;
    }

    .event-intro .heading {
        font-size: 1.5rem;
    }

    .event-intro .description {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Make the grid layout more mobile-friendly */
    .events-container {
        display: grid;
        grid-template-columns: 1fr; /* 1 column for mobile */
        gap: 15px;
        padding: 20px;
    }

    /* Adjust event box styles */
    .event {
        padding: 15px;
        height: auto;
    }

    .event h3 {
        font-size: 1.2rem;
    }

    .event p {
        font-size: 0.9rem;
        margin: 4px 0;
    }

    /* Adjust the text overlay for readability */
    .event .text-overlay {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* Footer adjustments */
    .footer {
        padding: 20px;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .footer-description,
    .footer-note,
    .rules li,
    .judging-criteria li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* For even smaller screens, like phones under 480px */
@media (max-width: 480px) {
    /* Further reduce font sizes and padding */
    .event-intro .heading {
        font-size: 1.2rem;
    }

    .event-intro .description {
        font-size: 0.8rem;
    }

    /* Center align footer text */
    .footer-content {
        text-align: center;
        padding: 10px;
    }

    .footer-title {
        font-size: 1.4rem;
    }
}
body, ul, li, a {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

/* Fixed Navigation Styling */
.navbar {
    background-color: #333;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.navbar ul li a {
    color: #f4f4f4;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.navbar ul li a:hover {
    background-color: #6cc816;
    color: #111010;
}

/* Menu Toggle Button (Only visible on mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #f4f4f4;
    padding: 10px;
}

/* Mobile View Styles */
@media (max-width: 768px) {
    .navbar ul {
        display: none; /* Hide menu by default on mobile */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px; /* Position below the navbar */
        left: 0;
        right: 0;
        padding: 10px 0;
        z-index: 9;
    }

    .navbar ul.open {
        display: flex; /* Show menu when toggled */
    }

    .navbar ul li a {
        padding: 10px 20px;
        text-align: center;
        width: 100%;
    }

    .menu-toggle {
        display: block; /* Show toggle button on mobile */
    }
}

