body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: black;
    overflow-x: hidden;
    font-family: "Alumni Sans Pinstripe", serif;
    font-weight: 400;
    font-style: normal;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#loading-logo {
    width: 250px; /* Adjust based on your logo size */
    animation: fadeInOut 3s ease forwards; /* Adjusted duration to include both fade in and fade out */
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

#main-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Start transparent */
    transition: opacity 1.5s ease; /* Smooth transition to visible */
}


.overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.top-logo {
    position: absolute;
    top: 20px;
    width: 50px; /* Adjust based on the size of the logo */
}

.menu-item {
    color: white;
    font-size: 3rem;
    text-decoration: none; /* Removes underline from links */
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    /*display: block; /* Ensures proper spacing */
    position: relative;
    display: inline-block; /* Necessary for the proper functioning of pseudo-elements */
    padding: 30px;
    cursor: pointer;
}

.menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* Height of the underline */
    background-color: white; /* Color of the underline */
    transform: scaleX(0); /* Start from no width */
    transition: transform 0.3s ease; /* Smooth transition for transform */
    transform-origin: left; /* Start the transform from the left */
}

.menu-item:hover::after {
    transform: scaleX(1); /* Scale to full width on hover */
}

/*
.menu-item:hover, .menu-item:focus {
    text-decoration: underline; 
    cursor: pointer; 
    transition: .3s ease;
}
*/

#gallery {
    position: relative;
}

#thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 5px; /* Adds some space around the thumbnail container */
}

.thumbnail {
    flex: 1 1 500px; /* Allows thumbnails to grow to fill the space but not shrink */
    max-width: 700px;
    margin: 5px; /* Space between thumbnails */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a slight shadow for better visibility */
    transition: transform 0.3s ease; /* Smooth transition for hover effects */
    height: auto; /* Ensures height adjusts to maintain aspect ratio */
}

.thumbnail img {
    width: 100%; /* Makes image fill the thumbnail container */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes bottom space/gap */
}


.thumbnail:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#lightbox.hidden {
    visibility: hidden;
    opacity: 0;
}

#lightbox.visible {
    visibility: visible;
    opacity: 1;
}

#lightbox-img {
    height: 95%;
}

#prev, #next {
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}
@media screen and (max-width: 812px) {
    #lightbox-img {
        width: 95%;
        height: auto;
    }
}