/* Slide-specific styles */
#slide-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    background: white;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    animation: slideIn 0.5s ease-out;
    overflow: hidden;
}

/* Ensure no rounded corners on mobile */
@media (max-width: 768px) {
    .slide {
        border-radius: 0;
    }
}

/* Content container for improved readability */
.slide .slide-content {
    width: 66.67%; /* Middle 2/3 of screen */
    max-width: 800px;
    min-width: 300px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 10;
}

/* Mobile: Make content card scrollable with simplified styling */
@media (max-width: 768px) {
    .slide .slide-content {
        width: 90%;
        max-width: none;
        min-width: unset;
        padding: 20px;
        margin: 20px auto;
        box-sizing: border-box;
        max-height: calc(100vh - 160px); /* Account for navigation space */
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: none; /* Remove backdrop filter to prevent cut-off */
        
        /* Simplified mobile styling - remove border-radius to avoid double corners */
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.1);
        
        /* Ensure scrolling works properly */
        -webkit-overflow-scrolling: touch;
    }
    
    /* Simplified text styling for mobile */
    .slide .slide-content h1,
    .slide .slide-content h2,
    .slide .slide-content h3,
    .slide .slide-content p,
    .slide .slide-content .content {
        color: #333 !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        text-shadow: none !important;
        font-weight: normal !important;
        line-height: 1.4;
    }
    
    .slide .slide-content h1 {
        font-size: 1.8em !important;
        font-weight: 600 !important;
        margin-bottom: 16px;
    }
    
    .slide .slide-content h2 {
        font-size: 1.4em !important;
        font-weight: 500 !important;
        margin-bottom: 12px;
    }
    
    .slide .slide-content h3 {
        font-size: 1.2em !important;
        font-weight: 500 !important;
        margin-bottom: 10px;
    }
    
    .slide .slide-content p,
    .slide .slide-content .content {
        font-size: 1em !important;
        margin-bottom: 12px;
    }
}

/* Clean text styling without shadows */
.slide h1, .slide h2, .slide h3, .slide p, .slide .content {
    position: relative;
}

/* Remove text stroke for cleaner appearance */
.slide h1 {
    font-weight: 800;
}

.slide h2 {
    font-weight: 700;
}

/* Backdrop for text content */
.slide .slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    z-index: -1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.slide h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #667eea;
    font-weight: 600;
}

.slide h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #555;
    font-weight: 500;
}

.slide p {
    font-size: 1.3em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.slide .subtitle {
    font-size: 1.5em;
    color: #888;
    font-weight: 300;
    margin-top: 10px;
}

/* Title slide styles */
.slide.title-slide .slide-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.slide.title-slide h1 {
    font-size: 4em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.slide.title-slide .subtitle {
    font-size: 2em;
    color: #667eea;
}

/* End slide styles */
.slide.end-slide .slide-content {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.slide.end-slide h1 {
    color: white;
    font-size: 4em;
}

.slide.end-slide .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8em;
}

/* Content slide styles */
.slide.content-slide .slide-content {
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.slide.content-slide h2 {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid rgba(102, 126, 234, 0.8);
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.slide.content-slide .content {
    font-size: 1.4em;
    line-height: 1.8;
    color: #444;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

/* Slide number indicator - REMOVED */

/* Floating animation info indicator */
.floating-animation-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 200px;
    word-wrap: break-word;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Responsive design for slides */
@media (max-width: 768px) {
    .slide .slide-content {
        width: 80%; /* Slightly wider on mobile for better usability */
        padding: 30px 20px;
        min-width: 280px;
    }
    
    .slide h1 {
        font-size: 2.2em;
    }
    
    .slide h2 {
        font-size: 1.8em;
    }
    
    .slide p, .slide .content {
        font-size: 1.1em;
    }
    
    .slide.title-slide h1 {
        font-size: 2.8em;
    }
    
    .slide.title-slide .subtitle {
        font-size: 1.4em;
    }
    
    .slide.content-slide .content {
        font-size: 1.2em;
        padding: 15px;
    }
    
    .floating-animation-info {
        bottom: 80px;
        right: 15px;
        padding: 6px 12px;
        font-size: 10px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .slide .slide-content {
        width: 90%; /* Even wider on very small screens */
        padding: 20px 15px;
        min-width: 250px;
    }
    
    .slide h1 {
        font-size: 1.8em;
    }
    
    .slide h2 {
        font-size: 1.5em;
    }
    
    .slide p, .slide .content {
        font-size: 1em;
    }
    
    .slide.title-slide h1 {
        font-size: 2.2em;
    }
    
    .slide.title-slide .subtitle {
        font-size: 1.2em;
    }
    
    .slide.content-slide .content {
        font-size: 1em;
        padding: 12px;
    }
    
    .floating-animation-info {
        bottom: 75px;
        right: 10px;
        padding: 4px 8px;
        font-size: 9px;
        max-width: 150px;
    }
}

/* Progressive theme classes for body */
body.theme-intro {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
}

body.theme-development {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #f39c12;
}

body.theme-climax {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --accent-color: #f1c40f;
}

body.theme-conclusion {
    --primary-color: #9b59b6;
    --secondary-color: #8e44ad;
    --accent-color: #1abc9c;
}

/* Slide-specific overrides */
body.slide-1 .slide {
    animation: slideInFromLeft 0.8s ease;
}

body.slide-20 .slide {
    animation: slideInFromRight 0.8s ease;
}

/* Animation keyframes */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
