/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #333;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
}

nav .back-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    background-color: #0056b3;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav .back-link:hover {
    background-color: #003d80;
}

/* Event Page Section */
.event-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
}

/* Event Heading */
.event-name {
    font-size: 32px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #160053;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInText 0.2s forwards 0.3s; /* Event heading fade-in */
}

/* Event Image Container */
.event-image-container {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInImage 0.5s forwards 1s; /* Image fade-in */
    display: flex;
    justify-content: center;
    gap: 20px;
}

.event-image-container img {
    width: 600px;
    height: 300px;
    border-radius: 10px;
    transition: transform 0.5s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.event-image-container img:hover {
    transform: translateY(-10px) scale(1.05); /* Moves the image up and slightly enlarges it */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3); /* Adds shadow for a lifted effect */
}

/* Fade-in Keyframes for Text and Image */
@keyframes fadeInText {
    100% {
        opacity: 1;
    }
}

@keyframes fadeInImage {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .event-page {
        padding: 15px;
        margin: 20px;
    }

    .event-name {
        font-size: 35px;
    }

    .event-description {
        font-size: 16px;
    }

    .event-date {
        font-size: 14px;
    }

    .event-image {
        width: 100%; /* Adjust image size for smaller screens */
    }
}

/* Event List Container */
.event-page1 {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.event-list-container1 {
    background-color: #333333;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 450px; /* Match image container width */
    text-align: left;
}

.event-list-container1:hover {
    transform: scale(1.05);
    background-color: #555;
}

/* Event Item */
.event-item {
    margin: 10px 0;
    padding: 10px;
    background-color: #444; /* Different background for each item */
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px); /* Start each item slightly below */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth appearance */
}

/* When in view, the list items fade in and slide up */
.event-item.visible { 
    opacity: 1;
    transform: translateY(0);
}

/* Event Item Paragraph */
.event-item p {
    margin: 0;
    font-size: 16px;
    text-align: center;
}

/* Animation for fading in list items */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.event-page p {
    animation: fadeIn 0.7s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}