/* Minimalist theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
    background: #fafafa;
    color: #0a0a0a;
    overflow: hidden;
}

.presentation-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.presentation-container.no-header .presentation-header {
    display: none;
}

.presentation-container.no-header .slides {
    padding-top: 0;
}

.presentation-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.95);
    border-bottom: 1px solid #0a0a0a25;
    padding: 1rem 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.presentation-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #0a0a0a;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.title-text {
    flex: 1;
}

.title-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #0a0a0a;
}

.slide-counter {
    font-weight: 500;
    white-space: nowrap;
}

.nav-arrow {
    font-size: 1rem;
    opacity: 0.6;
    font-weight: 400;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active {
    display: flex;
    opacity: 1;
}

.slide-content {
    max-width: 900px;
    width: 100%;
    padding: 2rem;
    z-index: 1;
}

/* Image left/right layout */
.slide-image-left,
.slide-image-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.slide-image-left {
    left: 0;
}

.slide-image-right {
    right: 0;
}

/* Adjust content when there's a left/right image */
.slide:has(.slide-image-left) .slide-content {
    margin-left: 50%;
    max-width: 50%;
}

.slide:has(.slide-image-right) .slide-content {
    margin-right: 50%;
    max-width: 50%;
    text-align: right;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #0a0a0a;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    color: #0a0a0a;
}

.slide-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #0a0a0a;
}

.slide-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.slide-content ul, .slide-content ol {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.slide-content li {
    margin-bottom: 0.5rem;
    color: #0a0a0a;
}

.slide-content a {
    color: #21759b;
    text-decoration: none;
    border-bottom: 1px solid #21759b;
}

.slide-content a:hover {
    color: #21759b;
    border-bottom-color: #21759b;
}

.slide-content strong {
    font-weight: 600;
    color: #0a0a0a;
}

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

.slide-content code {
    background: #fafafa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
    color: #21759b;
}

.slide-content pre {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #0a0a0a25;
}

.slide-content pre code {
    background: none;
    padding: 0;
    color: #0a0a0a;
    font-size: 0.9rem;
}

.slide-content img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 1.5rem 0;
}

.slide-content table.slide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    table-layout: fixed;
}

.slide-content table.slide-table thead {
    display: none;
}

.slide-content table.slide-table td {
    vertical-align: top;
    padding: 0 2rem;
    font-size: 1.25rem;
    line-height: 1.7;
    width: auto;
}

.slide-content table.slide-table td:first-child {
    padding-left: 0;
}

.slide-content table.slide-table td:last-child {
    padding-right: 0;
}

.slide-number {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.9rem;
    color: #0a0a0a;
    font-weight: 500;
}

/* Split layout styles */
.slide-content.split-layout {
    display: flex;
    gap: 2rem;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.split-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-text {
    flex: 1;
    /*
    display: flex;
    flex-direction: column;
    justify-content: center;
    */
    margin: auto;
}
.split-text-right {
    text-align: right;
    align-items: end;
}

/* Responsive design */
@media (max-width: 768px) {
    .presentation-header {
        padding: 0.75rem 1.5rem;
    }

    .presentation-title {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .title-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .nav-arrow {
        font-size: 0.9rem;
    }

    .slide {
        padding: 4.5rem 1.5rem 2rem 1.5rem;
    }

    .slide-content h1 {
        font-size: 2.25rem;
    }

    .slide-content h2 {
        font-size: 1.75rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

    .slide-content p, .slide-content ul, .slide-content ol {
        font-size: 1.1rem;
    }

    .slide-number {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.8rem;
    }

    .slide-content.split-layout {
        flex-direction: column;
    }

    .split-image {
        flex: 0 0 40%;
    }
}

@media print {
    .presentation-header {
        position: relative;
        page-break-after: avoid;
    }

    .slide {
        page-break-after: always;
        position: relative;
        display: block !important;
        opacity: 1 !important;
    }

    .slide-number {
        display: none;
    }
}
