/* Landau Research Slide Theme
 * Based on landau-research.ai branding
 * Warm beige aesthetic with Cormorant Garamond serif font
 */

/* Import the font */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* Base reveal.js overrides */
.reveal {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 400;
    color: #333;
}

.reveal-viewport {
    background-color: #FFF8E7;
}

/* Typography */
.reveal h1, 
.reveal h2, 
.reveal h3, 
.reveal h4, 
.reveal h5, 
.reveal h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #333;
    text-transform: none;
    margin: 0 0 1em 0;
    text-align: left;
}

.reveal h1 {
    font-size: 2.5em;
    font-weight: 600;
}

.reveal h2 {
    font-size: 1.8em;
}

.reveal h3 {
    font-size: 1.3em;
}

/* Paragraphs and text */
.reveal p {
    margin: 1em 0;
    line-height: 1.6;
}

.reveal strong, 
.reveal b {
    font-weight: 600;
}

.reveal em {
    font-style: italic;
}

/* Links */
.reveal a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.15s ease;
}

.reveal a:hover {
    color: #654321;
    text-shadow: none;
    border: none;
}

/* Code blocks */
.reveal pre {
    margin: 1em auto;
    width: 95%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left; /* Force left alignment for code blocks */
}

.reveal pre code {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.55em;
    line-height: 1.4;
    padding: 20px;
    max-height: 600px;
    background-color: #2e2e2e;
    border-radius: 8px;
    text-align: left; /* Ensure code text is left-aligned */
    display: block; /* Make it a block element */
}

.reveal code {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    background-color: rgba(139, 69, 19, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Math equations - keep clean on beige */
.reveal .katex {
    font-size: 1em;
    color: #333;
}

.reveal .katex-display {
    margin: 1em 0;
}

/* Lists */
.reveal ul,
.reveal ol {
    text-align: left;
    margin: 0 0 0 1em;
}

.reveal ul {
    list-style-type: disc;
}

.reveal ul ul {
    list-style-type: circle;
}

.reveal li {
    margin: 0.5em 0;
}

/* Tables */
.reveal table {
    margin: 1em auto;
    border-collapse: collapse;
}

.reveal table th {
    font-weight: 600;
    background-color: rgba(139, 69, 19, 0.1);
    padding: 0.6em;
    border-bottom: 2px solid #8B4513;
}

.reveal table td {
    padding: 0.6em;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

/* Blockquotes */
.reveal blockquote {
    margin: 1em auto;
    padding: 1em;
    background: rgba(139, 69, 19, 0.05);
    border-left: 4px solid #8B4513;
    font-style: italic;
    width: 80%;
    text-align: left;
}

/* Images */
.reveal img {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    margin: 1em auto;
}

/* Slides layout */
.reveal .slides {
    text-align: left;
}

.reveal .slides section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 80px;
    padding-right: 80px;
}

/* Center title slides */
.reveal .slides section:first-child {
    align-items: center;
    text-align: center;
}

/* Progress bar */
.reveal .progress {
    background: rgba(139, 69, 19, 0.2);
    height: 3px;
}

.reveal .progress span {
    background: #8B4513;
}

/* Controls */
.reveal .controls {
    color: #8B4513;
}

/* Slide numbers */
.reveal .slide-number {
    color: #8B4513;
    background-color: transparent;
    font-family: 'Cormorant Garamond', serif;
}

/* Custom classes for special layouts */
.reveal .title-slide {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reveal .subtitle {
    font-size: 0.6em;
    color: #666;
    font-weight: 400;
    margin-top: 0.5em;
}

.reveal .footer-text {
    position: absolute;
    bottom: 2rem;
    font-size: 0.5em;
    color: #666;
}

/* Two-column layout */
.reveal .two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: start;
}

.reveal .column {
    text-align: left;
}

/* Fragments (incremental reveals) */
.reveal .fragment {
    opacity: 0.3;
}

.reveal .fragment.visible {
    opacity: 1;
}

/* Highlight important content */
.reveal .highlight {
    background-color: rgba(139, 69, 19, 0.2);
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

/* Small text */
.reveal .small {
    font-size: 0.7em;
}

/* Center content explicitly */
.reveal .center {
    text-align: center;
}

/* Interactive visualization containers */
#transformer-viz-container,
#transformer-flow-container,
#transformer-architecture-container {
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    background: #FFF8E7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 60px; /* Space for controls at bottom */
}

#transformer-viz-container button:hover,
#transformer-flow-container button:hover {
    background: #654321;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#transformer-viz-container button:active,
#transformer-flow-container button:active {
    transform: translateY(0);
}

/* Center visualization slides */
.reveal .slides section.center-slide,
.reveal .slides section[id="transformer-viz-slide"],
.reveal .slides section[id="transformer-flow-slide"] {
    text-align: center !important;
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
}

.reveal .slides section.center-slide h2,
.reveal .slides section[id="transformer-viz-slide"] h2,
.reveal .slides section[id="transformer-flow-slide"] h2 {
    text-align: center !important;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

