/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark mode background gradient (default) */
body {
    background: linear-gradient(to bottom, #800080, #000000);
    font-family: 'Roboto', sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Light mode background gradient */
body.light-mode {
    background: linear-gradient(to bottom, #800080, #e0e0e0);
    color: black;
}

/* Content container with reverse gradient and white border */
.content {
    width: 100%;
    max-width: 1000px;
    height: auto;
    background: linear-gradient(to bottom, #000000, #800080);
    border: 2px solid white;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Light mode overrides for content container */
body.light-mode .content {
    background: linear-gradient(to bottom, #ffffff, #800080);
    border-color: black;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
}

/* Header container */
.header-container {
    width: 100%;
    text-align: center;
    z-index: 1;
}

.header-container img {
    width: 100%;
    height: auto;
}

/* Gallery Section */
#gallery-container {
    position: relative;
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
}

#gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

#gallery::-webkit-scrollbar {
    display: none;
}

.gallery-container {
    flex: 0 0 auto;
    width: 100%;
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80vh;
}

#gallery-thumbnails {
    display: flex;
    justify-content: center; /* Center thumbnails */
    gap: 10px; /* Add some space between thumbnails */
    margin: 10px auto;
    overflow-x: auto;
    scrollbar-width: none;
}

#gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 18%; /* Adjust this percentage to control the size of the thumbnails */
    max-width: 150px; /* Ensure thumbnails don’t get too large */
    cursor: pointer;
    transition: transform 0.3s;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Social Media Icons Section */
#social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 90%;
    margin: 20px auto;
}

/* Default icon style */
#social-icons img {
    transition: filter 0.3s ease;
}

/* Invert icons in light mode */
body.light-mode #social-icons img {
    filter: invert(1) brightness(0);
}

#social-icons img:hover {
    transform: scale(1.2);
}


/* Footer style */
footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    padding-top: 10px;
    width: 100%;
    max-width: 1000px;
    border-top: 1px solid #f0f0f0;
}

body.light-mode footer {
    border-top: 1px solid #232325;
}

footer a {
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.2rem;
    transition: font-size 0.3s;
    color: inherit;
}

footer a:hover {
    text-decoration: underline;
}

/* Toggle switch container */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 20px auto;
    width: fit-content;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-image {
        max-height: 50vh; /* Reduce max height for smaller screens */
    }

    .thumbnail {
        width: 25%; /* Increase size of thumbnails on smaller screens */
        max-width: 100px;
    }

    #social-icons img {
        width: 40px;
    }

    footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 30%; /* Further increase size of thumbnails on smaller screens */
        max-width: 80px;
    }

    #social-icons img {
        width: 30px;
    }

    .gallery-image {
        max-height: 40vh; /* Further reduce max height for very small screens */
    }
}
