/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Overlay styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth opacity transition */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensures the overlay matches the image width */
    max-width: inherit; /* Restrict overlay to match the image's max-width */
    border-radius: inherit; /* Match the border-radius of the image */
}

/* Hover effect */
.relative:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

/* Text styles */
.overlay p {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}



/* Schedule Section */
ul.main { 
    list-style: none;
    max-width: 75%;
    margin: 20px auto;
}
h3 {
    padding: 0;
    margin: 0;
}

.date {
    width: 17%;
    padding: 15% 1% 0 0;
    float: left;
}

.date h3 {
    font-size: 1.5em;
}

.date p {
    font-size: .8em;
}

.events {
    float: left;
    width: 80%;
    border-left: 1px solid #ccc;
    margin-top: 10%;
    padding-top: 3%;
}

.events-detail {
    max-width: 550px;
}

.events-detail li {
    padding: 10px;
    border-bottom: 1px dashed #ccc;
    line-height: 22px;
    transition: ease .4s all;
}

.event-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-time {
    font-weight: 900;
}

.events-detail li a {
    text-decoration: none;
    color: #ffffff;
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
}

.event-location {
    font-size: .8em;
    color: tomato;
    margin-top: 5px;
}

@media all and (max-width: 641px) {
    .date {
        width: 100%;
        border-bottom: 1px solid #ccc;
        margin-bottom: 10px;
    }

    .events {
        border: none;
        width: 100%;
        margin-top: 0;
    }

    .events-detail {
        padding: 0;
    }

    li.date p {
        margin: 0;
    }
}