.reveal h2 {
    text-transform: none;
    color: #0ea5e9;
    font-size: 1.8em;
}

.reveal h3 {
    text-transform: none;
    color: #0ea5e9;
    font-size: 1.4em;
}

.reveal pre code {
    max-height: 600px;
    font-size: 1.3em;
    line-height: 1.3;
}

.reveal {
    font-size: 32px;
    /* Increased base font size */
}

.reveal {
    height: 60vh !important;
}

/* Theory slide styling */
.reveal ul {
    text-align: left;
}

.reveal .theory-box {
    background: rgba(14, 165, 233, 0.2);
    border-left: 4px solid #0ea5e9;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: left;
}

.reveal .warning-box {
    background: rgba(255, 85, 85, 0.15);
    border-left: 4px solid #ff5555;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: left;
}

.reveal .note-box {
    background: rgba(139, 233, 253, 0.15);
    border-left: 4px solid #8be9fd;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: left;
}

.reveal .concept-box {
    background: rgba(255, 184, 108, 0.15);
    border-left: 4px solid #ffb86c;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: left;
}

.reveal .checkpoint-box {
    background: rgba(14, 165, 233, 0.2);
    border: 2px dashed #0ea5e9;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border-radius: 8px;
}

.reveal .checkpoint-answer {
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid #50fa7b;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.reveal .ascii-diagram {
    background: #282a36;
    border: 1px solid #6272a4;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.70em;
    line-height: 1.2;
    text-align: left;
    border-radius: 5px;
    white-space: pre;
    overflow-x: hidden;
    display: inline-block;
    margin: 20px auto;
}

/* Styled Tables */
.reveal table.memory-table {
    margin: 20px auto;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    border: 2px solid #6272a4;
}

.reveal .memory-table td,
.reveal .memory-table th {
    border: 1px solid #6272a4;
    padding: 10px 5px;
    text-align: center;
    width: 100px;
    box-sizing: border-box;
}

.reveal .memory-table th {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

.reveal .memory-table tr:nth-child(1) td {
    color: #50fa7b;
    /* Values */
    font-weight: bold;
    font-size: 1.2em;
}

.reveal .memory-table tr:nth-child(2) td {
    color: #f1fa8c;
    /* Subscripts */
}

.reveal .memory-table tr:nth-child(3) td {
    color: #8be9fd;
    /* Addresses */
    font-size: 0.8em;
}

.reveal table.dual-table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 80%;
}

.reveal .dual-table th {
    background: #6272a4;
    color: #f8f8f2;
    padding: 10px;
}

.reveal .dual-table td {
    border: 1px solid #6272a4;
    padding: 10px;
    text-align: left;
}

.reveal .dual-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.reveal .bounds-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.reveal .bounds-item {
    border: 2px solid #6272a4;
    border-radius: 8px;
    padding: 10px;
    background: rgba(40, 42, 54, 0.5);
}

.reveal .bounds-item.danger {
    border-color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.reveal .bounds-grid {
    display: flex;
    border: 1px solid #6272a4;
    margin-top: 5px;
}

.reveal .bounds-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #6272a4;
}

.reveal .bounds-cell:last-child {
    border-right: none;
}

.reveal .bounds-danger .bounds-cell {
    border-color: #ff5555;
}

.reveal .key-rule {
    background: rgba(80, 250, 123, 0.15);
    border: 2px solid #50fa7b;
    padding: 20px;
    font-size: 1.3em;
    text-align: center;
    border-radius: 10px;
}

/* Console Container */
#console-container {
    position: fixed;
    bottom: 20vh;
    left: 0;
    width: 100%;
    height: 20vh;
    background-color: #1e1e1e;
    border-top: 2px solid #6272a4;
    border-bottom: 2px solid #6272a4;
    color: #50fa7b;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    text-align: left;
    padding: 15px 40px;
    box-sizing: border-box;
    z-index: 500;
    overflow-y: auto;
    display: none;
}

#console-container.visible {
    display: block;
}

.console-title {
    color: #f8f8f2;
    font-weight: bold;
    border-bottom: 1px solid #6272a4;
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.output-history {
    color: #6272a4;
}

.output-current {
    color: #50fa7b;
    font-weight: bold;
    background-color: rgba(80, 250, 123, 0.15);
    border-left: 3px solid #50fa7b;
    padding-left: 8px;
    display: block;
}

/* Instructor Script */
#instructor-script-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background-color: #000;
    border-top: 3px solid #0ea5e9;
    color: #f8f8f2;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 1.4em;
    padding: 15px;
    box-sizing: border-box;
    direction: rtl;
}

/* Reveal.js UI Overrides */
.reveal .progress {
    color: #0ea5e9;
}

.reveal .controls {
    color: #0ea5e9;
}