/* Version 1.2 */

/* Reset and Base Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Main Menu Styles */
.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.menu h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.gallery-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-thumbnail {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-thumbnail img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumbnail p {
    margin-top: 10px;
    font-size: 18px;
}

/* Slideshow Viewer Styles */
.viewer {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

/* Photo Container */
#photo-container {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#photo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 10s linear;
    display: block;
}

/* Control Buttons */
.icon-button {
    position: absolute;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 24px;
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.2);
}

.home-icon::before {
    content: "\1F3E0"; /* Unicode for Home Icon */
}

.autoplay-icon::before {
    content: "\25B6"; /* Unicode for Play Icon */
}

.autoplay-icon.playing::before {
    content: "\23F8"; /* Unicode for Pause Icon */
}

.kenburns-icon::before {
    content: "\1F5FC"; /* Unicode for Film Frames (Ken Burns Effect) */
}

.kenburns-icon.active::before {
    color: #66bb6a; /* Highlight color when active */
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 36px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

#prev-button {
    left: 30px;
}

#next-button {
    right: 30px;
}

/* Ken Burns Effect */
@keyframes kenburns {
    0% {
        transform: scale(1.3) translate(0, 0);
    }
    100% {
        transform: scale(1) translate(-30px, -30px);
    }
}

.animate-kenburns {
    animation: kenburns 10s linear infinite;
}

/* Fade Transition Classes */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .gallery-thumbnail img {
        width: 150px;
        height: 100px;
    }
    
    .gallery-thumbnail p {
        font-size: 16px;
    }
    
    .icon-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .nav-button {
        font-size: 28px;
        padding: 8px 12px;
    }
    
    #prev-button {
        left: 20px;
    }
    
    #next-button {
        right: 20px;
    }
}
