body, html {
    margin: 0;
    padding: 0;
    font-family: 'Bona Nova SC', serif;
    color: white;
    box-sizing: border-box;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* Black outline */
    background-color: rgb(167, 22, 22);
    font-size: 1.25rem;
    scroll-behavior: smooth;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1;
    justify-content: center;
    display: flex;
    width: 100%;
    background-color:#000000;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    justify-content: center; 
    background-color: #000000;
}

nav ul li { 
    float: left;
    color:#000000;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 0.875rem 1rem; /* 14px 16px */
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #111;
}

section {
    height: calc(100vh - 67px); /* Adjust the value to match the height of your navigation bar */
    box-sizing: border-box;
    background-color: rgb(167, 22, 22);
    scroll-margin-top: 67px; /* Adjust the value to match the height of your navigation bar */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
}
#events { height: auto;}

.home-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.home-image {
    padding-top:2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-image img {
    max-width: 50%;
    width: auto;
    height: auto;
}

.home-description {
    padding: 1.25rem; /* 20px */
    align-items: center;
    text-align: center;
}

.find-stop-button {
    display: inline-block;
    background-color: black;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.find-stop-button:hover {
    background-color: #111;
    border: 1px solid black;
}

#contact {
    height: auto;
}

#contact-title {
    flex: 1;
    text-align: center;
}

#social-title {
    flex: 1;
    text-align: center;
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    align-items: center;
    justify-content: center;
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column:1/3;
}


.contact-form form {
    display: flex;
    flex-direction: column;
    padding: auto;
    padding-left: 2rem;
}

.contact-form label {
    margin-top: 1rem;
}

.contact-form input, .contact-form textarea {
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    border: 4px solid black;
}

.contact-form button {
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1rem;
    background-color: #000000;
    color: white;
    border: none;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #111;
}

.contact-form textarea {
    height: 9.375rem; /* 150px */
    resize: none;
}

.social-icons-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 30px; /* Add some space between the icons */
    align-items: center;
}

.social-icons-container a {
    color: #000000; /* Icon color */
    font-size: 180px; /* Icon size */
    text-align: center;
    text-decoration: none; /* Remove underline from links */
}

.social-icons-container a:hover {
    color: #111; /* Icon color on hover */
}

footer {
    text-align: center;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #000000;
    color: white;
    width: 100%;
    text-align: center;
}

#menu-parent {
    align-items: center;
    justify-content: center;
}

#menu{  
    height: 125vh;
    justify-content: center;
    align-items: center;

}

.menu-container {
    display: flex;
    position: relative;
    height: 75%;
    width: auto;
    max-width: 100%;
    align-items: center;
    justify-content: center;

}

.menu-slideshow {
    position: relative;
    width: 80%;
    height: 80%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;

}

.menu-item.active {
    opacity: 1;
}

.menu-photo {
    border-radius: 1rem;
    max-width: 55%;
    height: auto;
    width: auto;
    border: 4px solid black;
}

.menu-description {
    text-align: center;
    width: 100%;
    padding: 1.25rem; /* 20px */
}

.menu-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

.menu-button.left-button {
    left: 0;
}

.menu-button.right-button {
    right: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
    margin:auto;
    box-sizing: border-box;
}

.event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event-photo {
    max-width: 100%;
    height: auto;
    width: auto;
}

.event-details {
    margin-top: 0.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    align-items: center;
    padding-bottom: 6em;   
}

.about-description {
    padding: 1.25rem; /* 20px */
}

.about-image img {
    border-radius:1rem;
    border: 4px solid black;
    max-width: 90%;
    height: auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin: 5rem;
    height: 70%;
    padding: 1.25rem; /* 20px */
    box-sizing: border-box;
}

.event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 1rem; /* 16px */
    padding: 1rem;
    background-color: #f4f4f4;
    color: #000000;
    text-shadow: none;
    box-sizing: border-box;
    border: 4px solid black;
}


.event-photo {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}

.event-details {
    margin-top: 0.5rem;
}

#gallery { 
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    gap: 15px;
}
.gallery-item {
    width: 95%;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
    border-radius: .5rem;
    border: 4px solid black;
}
.gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}
.close, .nav-button {
    position: absolute;
    color: white;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}
.close {
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
#prev {
    top: 50%;
    left: 10px;
}
#next {
    top: 50%;
    right: 10px;
}
#exit {
    bottom: 20%;
    right: 20%; 
    transform: translate(-50%, -50%);
}

/* Hamburger menu icon */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 45px;
    color: white;
    width: 100%;
    text-align: center;
    overflow: hidden;
}
/* Dropdown menu */
.dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #000000; /* Same background color as navbar */
    position: absolute;
    top: 50px;
    width: 100%;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    color: white; /* Same text color as navbar */
    padding: 15px; /* Adjust padding to match navbar items */
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 18px; /* Adjust font size to match navbar items */
}

.dropdown-menu a:hover {
    background-color: #575757; /* Same hover effect as navbar items */
}

/* Media query for smaller screens */
@media (max-width: 785px) {
    .navbar {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .home-description {
        padding-top: 5rem;
    }
    .events-grid {
        gap: .5rem;
        height: 100%;
        margin:auto;
        box-sizing: border-box;
    }

    .home-image img{
        padding-top: 6.5rem;
        padding-bottom: 10rem;  
    }
}

@media (max-width: 1200px){
    .home-image img {
        width: auto;
        height: auto;
        max-width: 70%;
    }
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: auto;
        height: auto;
        padding: auto;
        margin-left: auto;
        margin-right: auto;
    }
    .event-item {
        font-size: 0.8rem; /* Adjust font size as needed */
        padding: 1rem; /* Adjust padding as needed */
    }
}


@media (max-width: 900px){
    .home-image img {
        width: auto;
        height: auto;
        max-width: 90%;
    }
    .about-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-items: center;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .gallery-grid{
        max-width: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        height: auto;
        padding: auto;
        margin-left:1.5rem;
        margin-right:1.5rem;
        size: auto;
    }
    .gallery-item{
        height: auto;
        padding: auto;
        size: auto;
    }
    #exit {
        bottom: 10%;
        right: 10%; 
        transform: translate(-50%, -50%);
    }
    .contact-form form{
        padding-left: 4px;
        padding-right: 4px;
    }
}


@media (max-width: 1400px){
    .menu-description {
        width: 50%;
    }
}

@media (max-width: 1000px) {

        .section-title {
            font-size:1.8rem;
        }
        #menu{
            height: 115vh;
            display: flex;
            flex-direction: column;
        }
        .menu-container {
            width: 90%;
        }
        .about-grid{
            padding-bottom: 0em;   
            margin-bottom: 0em; 
        }
        .menu-item {
            display: flex;
            flex-direction: column; /* Stack photo and description vertically */
            align-items: center;
            justify-content: center;
            width: 100%;
            box-sizing: border-box; /* Ensure padding and border are included in the width */
        }
        .about image {
           justify-content: center;
        }
        .menu-description {
            align-content: center;
            text-align: center;
            font-size: auto;
            width: 100%;
            padding: 10px; /* Add some padding for better readability */
            font-size: 1rem;
        }
        .menu-photo {
            width: auto;
            max-width: 80%;
            width: 100%;
            height: auto; /* Ensure the image scales properly */
        }

        #menu-title{
            margin-top: 0;
            text-align: center;
        }

        #contact-title {
            display: none;
        }
        .contact-grid {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            align-items: center;
        }
        .contact-form form {
            padding-left: 0;
        }
        .social-icons-container {
            margin-top: 100px;
        }
}

@media (max-height: 800px) {
    section {
        height: auto;
    }
    #menu {
        height: 750px;
    }
    #gallery {
        display: flex;
        flex-direction: column;
        height: auto;
        justify-content: center;
        align-items: center;
    }

    .gallery-grid {
        gap: 10px;
    }

    .about-image img{
        margin-left: 1rem;
    }
    #contact {
        height: auto;
    }
    #events {
        height: auto;
        width: auto;
    }
    #about {
        height: auto;
    }
    #home {
        height: auto;
    }
}