* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow: hidden;
}

.slideshow-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header h1 {
    color: #4285f4;
    font-size: 24px;
    font-weight: 600;
}

.controls button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.controls button:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.auth-info {
    text-align: center;
    max-width: 800px;
    color: white;
}

.auth-info h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
}

.auth-info p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature p {
    font-size: 14px;
    opacity: 0.8;
}

.loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slideshow-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.slide-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.slide-info p {
    font-size: 14px;
    opacity: 0.8;
}

.slideshow-controls {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slideshow-settings {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.slideshow-settings label {
    font-size: 12px;
    color: #333;
    margin-right: 10px;
}

.slideshow-settings select {
    border: none;
    background: transparent;
    color: #333;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.album-selector {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.album-selector label {
    font-size: 12px;
    color: #333;
    margin-right: 10px;
}

.album-selector select {
    border: none;
    background: transparent;
    color: #333;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.progress {
    height: 100%;
    background: #4285f4;
    width: 0%;
    transition: width 0.1s ease;
}

.photo-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.solutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.solution {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.solution h3 {
    margin-bottom: 10px;
    color: #fff;
}

.solution p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.solution code {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .controls button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .slideshow-settings,
    .album-selector {
        position: relative;
        margin: 10px;
        display: inline-block;
    }
    
    .slideshow-controls {
        bottom: 60px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Animation for slide transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.slide.active img {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading animation for images */
.slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide img.loaded {
    opacity: 1;
}
