/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    background: #fff;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notebook {
    background: #fff;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* ==========================================
   ASCII ART STYLES
   ========================================== */

/* Base class for all ASCII art */
.ascii-base {
    color: #333;
    margin: 0 auto;
    white-space: pre;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    text-align: center;
}

/* ASCII Header */
.ascii-header {
    text-align: center;
    margin-bottom: 30px;
}

.ascii-art {
    color: #333;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    white-space: pre;
    font-weight: bold;
}

/* ASCII Castle */
.castle-section {
    text-align: center;
    margin: 30px 0;
}

.ascii-castle {
    color: #333;
    font-size: 10px;
    line-height: 1;
    margin: 0 auto;
    white-space: pre;
    font-family: monospace;
}

/* ASCII Dragon */
.dragon-section {
    text-align: center;
    margin: 30px 0;
}

.ascii-dragon {
    font-size: 12px;
    line-height: 1;
}

/* ==========================================
   PAGE LAYOUT
   ========================================== */

.page {
    min-height: 400px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.start-btn,
.try-again-btn {
    background: #fff;
    color: #333;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.start-btn {
    padding: 15px 30px;
    font-size: 14px;
}

.start-btn:hover {
    background: #333;
    color: #fff;
}

.try-again-btn {
    padding: 8px 16px;
    font-size: 12px;
}

.try-again-btn:hover {
    background: #333;
    color: #fff;
}

/* ==========================================
   QUIZ COMPONENTS
   ========================================== */

.start-section,
.question-section {
    text-align: center;
}

.start-section {
    margin: 50px 0;
}

.question-section {
    margin: 40px 0;
}

.question-text {
    color: #333;
    font-size: 18px;
    line-height: 1.5;
    font-weight: bold;
}

.options-container {
    margin: 20px 0;
}

.option {
    background: #fff;
    border: 2px solid #333;
    color: #333;
    padding: 15px 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.option:hover,
.option.selected {
    background: #333;
    color: #fff;
}

.option.correct {
    background: #90EE90;
    color: #333;
    border-color: #90EE90;
}

.option.incorrect {
    background: #ffb6c1;
    color: #333;
    border-color: #ffb6c1;
}

/* ==========================================
   RESULTS
   ========================================== */

.big-result {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin: 100px 0;
    line-height: 1.2;
}

.try-again-section {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    gap: 10px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .notebook {
        padding: 20px;
        margin: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    .ascii-art {
        font-size: 14px;
    }
    
    .question-text {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .option {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .start-btn {
        font-size: 13px;
        padding: 12px 25px;
    }
    
    .ascii-castle {
        font-size: 8px;
    }
    
    .ascii-dragon {
        font-size: 10px;
    }
    
    .big-result {
        font-size: 32px;
    }
    
    /* Responsive for all ASCII art using .ascii-base */
    .ascii-base {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

