/* presentation.css — Presentation mode overlay and slide layouts */

/* Smooth cloud show/hide */
#canvas-container {
    transition: opacity 0.6s ease;
}

/* --- Overlay --- */

#presentation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
    transition: background 0.4s ease;
}

#presentation-overlay.blackout {
    background: #1a1a1a;
    pointer-events: auto;
}

/* --- Slide panels (A/B swap for transitions) --- */

.slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    z-index: 501;
    padding: 60px;
    overflow-y: auto;
    box-sizing: border-box;
}

.slide-panel.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Transition animations --- */

.slide-panel.anim-fade-in {
    animation: pres-fade-in 0.6s ease;
}

.slide-panel.anim-fade-out {
    animation: pres-fade-out 0.6s ease forwards;
    pointer-events: none;
}

.slide-panel.anim-slide-up {
    animation: pres-slide-up 0.6s ease;
}

@keyframes pres-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pres-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pres-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Layout: full --- */

.layout-full {
    background: rgba(250, 249, 247, 0.95);
    justify-content: center;
    align-items: flex-start;
    padding: 80px 120px;
}

/* --- Layout: title --- */

.layout-title {
    background: rgba(250, 249, 247, 0.95);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px;
}

/* --- Layout: left (text left, cloud right) --- */

.layout-left {
    background: linear-gradient(to right,
        rgba(250, 249, 247, 0.95) 42%,
        rgba(250, 249, 247, 0.4) 52%,
        transparent 62%);
    justify-content: center;
    align-items: flex-start;
    padding: 60px 55% 60px 60px;
}

/* --- Layout: right (text right, cloud left) --- */

.layout-right {
    background: linear-gradient(to left,
        rgba(250, 249, 247, 0.95) 42%,
        rgba(250, 249, 247, 0.4) 52%,
        transparent 62%);
    justify-content: center;
    align-items: flex-end;
    padding: 60px 60px 60px 55%;
}

/* --- Layout: center (floating card) --- */

.layout-center {
    background: transparent;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
}

.layout-center .slide-content {
    background: rgba(250, 249, 247, 0.92);
    padding: 48px 56px;
    border-radius: 16px;
    max-width: 680px;
}

/* --- Layout: bottom --- */

.layout-bottom {
    background: linear-gradient(to top,
        rgba(250, 249, 247, 0.95) 20%,
        rgba(250, 249, 247, 0.4) 35%,
        transparent 50%);
    justify-content: flex-end;
    padding: 40px 80px 60px;
}

/* --- Typography --- */

.slide-content {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    max-width: 680px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 14px;
}

.slide-content h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.slide-content p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 18px;
}

.slide-content p:last-child {
    margin-bottom: 0;
}

.slide-content em {
    font-style: italic;
    color: #555;
}

.slide-content strong {
    font-weight: 500;
}

.slide-content blockquote {
    border-left: 3px solid rgba(0, 0, 0, 0.15);
    padding-left: 20px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

.slide-content ul, .slide-content ol {
    font-size: 20px;
    font-weight: 300;
    padding-left: 24px;
    margin-bottom: 18px;
}

.slide-content li {
    margin-bottom: 8px;
}

.slide-content code {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Title layout: bigger text */
.layout-title .slide-content h1 {
    font-size: 64px;
}

.layout-title .slide-content p {
    font-size: 24px;
    color: #666;
}

/* --- Progress bar --- */

#slide-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 0.4s ease;
    z-index: 510;
    width: 0;
}

/* --- Slide number --- */

#slide-number {
    position: fixed;
    bottom: 12px;
    right: 16px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #aaa;
    z-index: 510;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .slide-content h1 { font-size: 36px; }
    .slide-content h2 { font-size: 28px; }
    .slide-content p { font-size: 18px; }

    .layout-title .slide-content h1 { font-size: 48px; }
    .layout-title .slide-content p { font-size: 20px; }

    .layout-left {
        padding: 40px 50% 40px 40px;
    }

    .layout-right {
        padding: 40px 40px 40px 50%;
    }
}

@media (max-width: 768px) {
    .slide-panel {
        padding: 32px;
    }

    .slide-content h1 { font-size: 28px; }
    .slide-content h2 { font-size: 22px; }
    .slide-content p { font-size: 16px; }

    .layout-title .slide-content h1 { font-size: 36px; }

    .layout-left, .layout-right {
        background: rgba(250, 249, 247, 0.92);
        padding: 32px;
    }

    .layout-center .slide-content {
        padding: 32px;
    }
}
