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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.presentation {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 60px 40px 150px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Center content for slides with just questions or minimal content */
.slide:has(.interactive-question:only-child),
.slide:has(.interactive-question) {
    justify-content: center;
}

/* Custom scrollbar styling */
.slide::-webkit-scrollbar {
    width: 10px;
}

.slide::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* CoderDojo Logo */
.logo-floating {
    width: 200px;
    height: auto;
    margin-top: 40px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
    padding: 20px;
}

.game-card {
    aspect-ratio: 1;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    font-size: 4em;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.game-card h3 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    font-size: 1.4em;
    text-align: center;
}

/* Code Flow */
.code-flow {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.code-flow-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.code-flow-section:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.code-flow-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.code-flow-section pre {
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 0;
}

.code-flow-section code {
    color: #66d9ef;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    line-height: 1.6;
}

/* Variable Introduction */
.variable-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.variable-explanation {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.variable-explanation h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.variable-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 15px;
}

.variable-box p {
    color: #333;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.variable-visual {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.var-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.var-box:hover {
    transform: translateY(-5px);
}

.var-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.var-content {
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-size: 1.2em;
    text-align: center;
}

.code-with-variables {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.code-with-variables h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.code-with-variables pre {
    background: #2c3e50;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-with-variables code {
    color: #66d9ef;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    line-height: 1.7;
}

.code-benefit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.code-benefit h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.code-benefit pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 0;
}

.code-benefit code {
    color: #fff;
}

/* Single Challenge Slide */
.single-challenge {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.challenge-intro {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.challenge-intro h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.task-description {
    font-size: 1.3em;
    color: #333;
    line-height: 1.6;
}

.challenge-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.step-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-top: 60px;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.step-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.step-card p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.step-card ul {
    list-style: none;
    padding: 0;
}

.step-card li {
    padding: 8px 0;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.step-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.step-card pre {
    background: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.step-card code {
    color: #66d9ef;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.bonus-challenge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bonus-challenge h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.bonus-challenge p {
    color: white;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.bonus-challenge pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.bonus-challenge code {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.slide.prev {
    transform: translateX(-100%);
}

/* Navigation */
.nav-buttons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-buttons button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-buttons button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#slideCounter {
    font-weight: bold;
    color: #333;
    font-size: 18px;
    min-width: 80px;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 3.5em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2em;
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 10px;
}

.highlight {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.3em;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.game-example, .ai-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.game-example:hover, .ai-card:hover {
    transform: translateY(-10px);
}

.game-example h3, .ai-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.game-example p, .ai-card p {
    color: #555;
    font-size: 1.1em;
}

.ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    max-width: 1200px;
}

.ai-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

/* XO Introduction */
.xo-intro {
    display: flex;
    gap: 50px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
}

.xo-rules ul {
    list-style: none;
    font-size: 1.2em;
}

.xo-rules li {
    padding: 10px 0;
    color: #555;
}

.mini-board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 5px;
    background: #34495e;
    padding: 5px;
    border-radius: 10px;
}

.mini-cell {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    color: #e74c3c;
}

.mini-cell:nth-child(even) {
    color: #3498db;
}

.win-text {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

/* Game Container */
.difficulty-selector {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.difficulty-selector h3 {
    color: #333;
    margin-bottom: 20px;
}

.difficulty-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.diff-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: 3px solid #ddd;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.diff-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.diff-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.diff-btn small {
    display: block;
    font-size: 0.8em;
    margin-top: 5px;
    opacity: 0.8;
}

.game-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.game-status {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    min-height: 40px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 10px;
    margin: 0 auto 30px;
    background: #34495e;
    padding: 10px;
    border-radius: 15px;
    width: fit-content;
}

.cell {
    background: white;
    border: none;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell:hover:not(.taken) {
    background: #ecf0f1;
    transform: scale(1.05);
}

.cell.taken {
    cursor: not-allowed;
}

.cell.x {
    color: #e74c3c;
}

.cell.o {
    color: #3498db;
}

.cell.winner {
    background: #f1c40f !important;
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reset-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Building Concept */
.building-concept {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.concept-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-10px);
}

.concept-card h2 {
    font-size: 4em;
    margin-bottom: 20px;
}

.concept-card p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* Code Examples */
.code-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    width: 100%;
    max-width: 1400px;
}

.code-card {
    background: #2c3e50;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.code-card:hover {
    transform: translateY(-5px);
}

.code-card h3 {
    color: white;
    margin-bottom: 15px;
}

.code-card pre {
    background: #1a252f;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-card code {
    color: #66d9ef;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Color Customizer */
.color-customizer {
    display: flex;
    gap: 50px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-controls {
    flex: 1;
    min-width: 300px;
}

.color-input-group {
    margin-bottom: 25px;
}

.color-input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1em;
}

.color-input-group input[type="text"] {
    width: 200px;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-right: 10px;
    font-family: 'Courier New', monospace;
}

.color-input-group input[type="color"] {
    width: 60px;
    height: 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.apply-btn, .reset-colors-btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-right: 10px;
}

.apply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.reset-colors-btn {
    background: #95a5a6;
    color: white;
}

.apply-btn:hover, .reset-colors-btn:hover {
    transform: translateY(-3px);
}

.preview-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 8px;
    padding: 8px;
    border-radius: 15px;
    background: #2c3e50;
    transition: background 0.3s ease;
}

.preview-cell {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    border-radius: 8px;
    transition: color 0.3s ease;
}

.preview-cell:nth-child(odd) {
    color: #e74c3c;
}

.preview-cell:nth-child(even) {
    color: #3498db;
}

.color-hint {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

.color-hint p {
    color: #555;
    font-size: 1.1em;
    margin: 5px 0;
}

/* Minimax Explanation */
.minimax-explanation {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.minimax-step {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.minimax-step:hover {
    transform: translateY(-10px);
}

.minimax-step h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.minimax-step p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

.minimax-visual {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
}

/* Final Slide */
.final-message {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.final-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 400px;
}

.final-card h2 {
    color: #667eea;
    margin-bottom: 25px;
}

.final-card ul {
    list-style: none;
    font-size: 1.2em;
}

.final-card li {
    padding: 12px 0;
    color: #555;
}

.call-to-action {
    margin-top: 50px;
    text-align: center;
}

.call-to-action h2 {
    font-size: 3em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.call-to-action p {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.95);
}

.thanks {
    margin-top: 20px;
    font-size: 1.3em !important;
}

/* Interactive Question Slides */
.interactive-question {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.big-question {
    font-size: 4em;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.xo-example-small {
    margin-top: 40px;
    text-align: center;
}

.xo-example-small .mini-board {
    display: inline-grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 5px;
    background: #34495e;
    padding: 5px;
    border-radius: 10px;
}

.xo-example-small .win-text {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Data Representation Slide */
.data-representation {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.representation-section {
    flex: 1;
    min-width: 300px;
}

.representation-section h3 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 8px;
    background: #34495e;
    padding: 8px;
    border-radius: 15px;
    margin: 0 auto;
    width: fit-content;
}

.grid-cell {
    background: white;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-content {
    font-size: 3em;
    font-weight: bold;
    color: #e74c3c;
    position: absolute;
}

.grid-cell:nth-child(even) .cell-content {
    color: #3498db;
}

.cell-index {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.9em;
    color: #95a5a6;
    font-weight: bold;
    background: #ecf0f1;
    padding: 2px 6px;
    border-radius: 4px;
}

.arrow-separator {
    font-size: 4em;
    color: #667eea;
}

.code-representation {
    background: #2c3e50;
    padding: 25px;
    border-radius: 15px;
}

.code-representation pre {
    background: #1a252f;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-representation code {
    color: #66d9ef;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    line-height: 1.8;
}

.representation-explanation {
    width: 100%;
    margin-top: 30px;
}

.explanation-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.explanation-box h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.explanation-box ul {
    list-style: none;
    padding: 0;
}

.explanation-box li {
    padding: 12px 0;
    color: #333;
    font-size: 1.1em;
    padding-left: 30px;
    position: relative;
}

.explanation-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.3em;
}

/* Python Structure Slide */
.python-structure {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.code-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.code-section h3 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.code-parts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.code-part {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.code-part:hover {
    transform: translateY(-5px);
}

.part-num {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.code-part strong {
    display: block;
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.code-part p {
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

/* Challenges Container */
.challenges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin-top: 30px;
    padding: 10px;
}

.challenge-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border-left: 5px solid;
}

.challenge-card:hover {
    transform: translateY(-5px);
}

.challenge-card.easy {
    border-left-color: #2ecc71;
}

.challenge-card.medium {
    border-left-color: #f39c12;
}

.challenge-card.hard {
    border-left-color: #e74c3c;
}

.challenge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.challenge-icon {
    font-size: 2em;
}

.challenge-header h3 {
    color: #333;
    font-size: 1.3em;
    flex: 1;
    min-width: 200px;
}

.challenge-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.challenge-card p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.challenge-card ul {
    list-style: none;
    padding-left: 0;
}

.challenge-card li {
    padding: 8px 0;
    color: #666;
    font-size: 1em;
    padding-left: 25px;
    position: relative;
}

.challenge-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.challenge-card code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-size: 0.95em;
}

/* Code Examples Scroll */
.code-examples-scroll {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
    padding: 10px;
}

.code-snippet {
    background: #2c3e50;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-snippet h3 {
    color: white;
    margin-bottom: 15px;
}

.code-snippet pre {
    background: #1a252f;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-snippet code {
    color: #66d9ef;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    line-height: 1.6;
}

.trinket-link {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 900px;
}

.trinket-link p {
    color: #555;
    font-size: 1.1em;
    margin: 5px 0;
}

/* Team Activity Section */
.team-activity {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.activity-instructions {
    flex: 1;
    min-width: 400px;
}

.activity-instructions h2 {
    color: white;
    margin-bottom: 20px;
}

.instruction-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.instruction-box h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.activity-steps {
    list-style: none;
    padding: 0;
}

.activity-steps li {
    padding: 15px;
    margin: 10px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    color: #333;
    font-size: 1.1em;
}

.activity-steps strong {
    color: #667eea;
    font-size: 1.3em;
    margin-right: 10px;
}

.strategy-hints {
    flex: 1;
    min-width: 400px;
}

.strategy-hints h3 {
    color: white;
    margin-bottom: 20px;
}

.hint-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hint-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.hint-card:hover {
    transform: translateY(-5px);
}

.hint-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.hint-card p {
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

/* Competition Section */
.competition-section {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.competition-rules {
    flex: 1.5;
    min-width: 400px;
}

.competition-rules h2 {
    color: white;
    margin-bottom: 20px;
}

.rules-box {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.rules-box h3 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.6em;
}

.competition-steps {
    padding-left: 0;
    counter-reset: competition-counter;
}

.competition-steps li {
    list-style: none;
    padding: 20px;
    margin: 15px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    position: relative;
    padding-left: 60px;
}

.competition-steps li::before {
    counter-increment: competition-counter;
    content: counter(competition-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.competition-steps strong {
    display: block;
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.competition-steps p {
    color: #666;
    font-size: 1em;
    margin: 0;
}

.competition-prizes {
    flex: 1;
    min-width: 300px;
}

.competition-prizes h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.prize-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.prize-card p {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.prize-card ul {
    list-style: none;
    padding: 0;
}

.prize-card li {
    padding: 12px 0;
    color: #555;
    font-size: 1.1em;
}

.challenge-final {
    margin-top: 40px;
    text-align: center;
}

.challenge-final h2 {
    color: white;
    margin-bottom: 15px;
}

.final-challenge {
    background: white;
    padding: 25px;
    border-radius: 15px;
    font-size: 1.4em;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-bottom: 15px;
}

.final-hint {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2em;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.5em;
    }

    .slide {
        padding: 40px 20px 180px;
    }

    .game-board {
        grid-template-columns: repeat(3, 90px);
        grid-template-rows: repeat(3, 90px);
    }

    .cell {
        font-size: 2.5em;
    }

    .xo-intro {
        flex-direction: column;
    }

    .color-customizer {
        flex-direction: column;
    }

    .final-card {
        min-width: 280px;
    }

    .nav-buttons {
        padding: 10px 20px;
    }

    .nav-buttons button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .challenges-container {
        grid-template-columns: 1fr;
    }

    .challenge-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-activity {
        flex-direction: column;
    }

    .activity-instructions,
    .strategy-hints {
        min-width: 280px;
    }

    .hint-cards {
        grid-template-columns: 1fr;
    }

    .competition-section {
        flex-direction: column;
    }

    .competition-rules,
    .competition-prizes {
        min-width: 280px;
    }

    .competition-steps li {
        padding-left: 50px;
        font-size: 0.95em;
    }

    .code-parts {
        grid-template-columns: 1fr;
    }

    .big-question {
        font-size: 2.5em;
        padding: 30px 20px;
    }

    .data-representation {
        flex-direction: column;
        padding: 25px;
    }

    .visual-grid {
        grid-template-columns: repeat(3, 70px);
        grid-template-rows: repeat(3, 70px);
    }

    .cell-content {
        font-size: 2em;
    }

    .arrow-separator {
        font-size: 3em;
        transform: rotate(90deg);
    }

    .representation-section {
        min-width: 100%;
    }

    .explanation-box {
        padding: 20px;
    }

    .explanation-box li {
        font-size: 1em;
        padding-left: 25px;
    }

    .logo-floating {
        width: 150px;
        margin-top: 30px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .game-card {
        padding: 20px;
    }

    .game-icon {
        font-size: 3em;
        margin-bottom: 10px;
    }

    .game-card h3 {
        font-size: 1.1em;
    }

    .code-flow-section {
        padding: 20px;
    }

    .code-flow-section h3 {
        font-size: 1.1em;
    }

    .code-flow-section pre {
        padding: 15px;
    }

    .code-flow-section code {
        font-size: 0.9em;
    }

    .variable-explanation,
    .code-with-variables {
        padding: 20px;
    }

    .variable-box p {
        font-size: 1em;
    }

    .variable-visual {
        flex-direction: column;
    }

    .var-box {
        min-width: 100%;
    }

    .code-with-variables h3 {
        font-size: 1.2em;
    }

    .code-benefit h4 {
        font-size: 1em;
    }

    .challenge-intro {
        padding: 20px;
    }

    .task-description {
        font-size: 1.1em;
    }

    .challenge-steps {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 20px;
        padding-top: 50px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .bonus-challenge {
        padding: 20px;
    }

    .bonus-challenge h3 {
        font-size: 1.2em;
    }
}
