/* events.css */

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-image: url('https://s3.amazonaws.com/humorharmonyweekend.com/img/hh_bg_2.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 1100px;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none; /* Prevent overscroll bounce */
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    background-color: transparent;
    transform: translateY(34vh);
    overflow: hidden;
}

.scrollable-container {
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 20px;
    padding-bottom: 350px; /* Increase padding to ensure no cut off */
    overflow-y: auto;
    max-height: calc(100vh - 28vh); /* Adjust based on your layout */
    overscroll-behavior: contain; /* Prevent overscroll bounce within container */
    box-shadow: 0 0 0 3px rgba(216, 91, 0, 0.2),
                0 0 10px rgba(216, 91, 0, 0.3),
                0 0 20px rgba(216, 91, 0, 0.2);
    border-radius: 15px;
}

.scrollable-container .event:first-child {
    margin-top: 0;
}

.scrollable-container .event:last-child {
    margin-bottom: 0;
}

.event {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.event h3 {
    color: #d85b00;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.event p {
    margin: 5px 0;
    font-size: 0.9em;
}

.event-time, .event-tickets {
    font-weight: bold;
}

.description {
    background-color: rgba(240, 240, 240, 0.7);
    padding: 10px;
    border-left: 3px solid #d85b00;
    margin: 10px 0;
    font-style: italic;
}

.event-location {
    color: #fff;
    background-color: #d85b00;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.event-location {
    color: #fff;
    background-color: #d85b00;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none; /* Add this line */
}

.event-location:hover {
    background-color: #ff6c00;
    transform: translateY(-2px);
}

.event-location:before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 1em;
}

.purchase-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #d85b00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10px;
}

.purchase-btn:hover {
    background-color: #ff6c00;
    transform: translateY(-2px);
}

.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #d85b00;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
}

.home-button:hover {
    background-color: #ff6c00;
    transform: scale(1.1);
}

.footer {
    background-color: rgba(26, 43, 71, 0.9);
    color: white;
    padding: 10px 0;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: #f0a050;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #ffffff;
    transform: scale(1.2);
}

.scrollable-container::-webkit-scrollbar {
    width: 6px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.scrollable-container::-webkit-scrollbar-thumb {
    background-color: rgba(216, 91, 0, 0.5);
    border-radius: 3px;
}

@media (max-width: 768px) {
    body {
        background-size: auto 100%;
        background-position: center top;
        background-attachment: scroll;
    }
    .content-wrapper {
        padding: 15px;
        width: 95%;
        transform: translateY(30vh);
        max-height: calc(100vh - 15vh - 50px);
    }
    .scrollable-container {
        gap: 20px;
    }
    .event {
        padding: 15px;
        max-width: 95%;
    }
    .event h3 {
        font-size: 1.1em;
    }
    .home-button {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

h3 {
    font-family: 'Open Sans', sans-serif; /* Use the 'Open Sans' font */
    color: #d85b00; /* Apply the primary color */
    margin-top: 0; /* No margin at the top */
    margin-bottom: 10px; /* Small margin at the bottom */
    font-size: 1.2em; /* Adjust font size */
    padding: 10px 15px; /* Add padding around the text */
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent white background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Add a subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effects */
}

h3:hover {
    transform: translateY(-5px); /* Slightly lift the element on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Increase shadow on hover */
}

@media (max-width: 1024px) and (max-height: 640px) {
    body {
        background-size: auto 100%;
        background-position: center top;
        background-attachment: scroll;
    }
    .content-wrapper {
        transform: translateY(28vh);
        max-height: calc(100vh - 20vh);
    }
    .event {
        max-width: 95%;
    }
}

@media (max-width: 1280px) and (max-height: 800px) {
    body {
        background-size: auto 100%;
        background-position: center top;
        background-attachment: scroll;
    }
    .content-wrapper {
        transform: translateY(28vh);
        max-height: calc(100vh - 20vh);
    }
    .event {
        max-width: 95%;
    }
}

/* Modal container styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black background with opacity */
}

/* Modal content box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Ensure modal does not grow too large */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Modal close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive styling */
@media (max-width: 768px) {
    .modal-content {
        width: 90%; /* Use more of the screen on smaller devices */
    }
}

.modal img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
