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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.game-title {
    font-size: 48px;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #ff4500, 0 0 40px #ff1493;
}

/* Story Selector */
.story-selector {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
}

.story-selector h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #ff4500;
}

.instructions {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 30px;
}

.story-selector h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 30px;
    text-shadow: 0 0 10px #ff1493;
}

/* Difficulty Selector */
.difficulty-selector {
    margin-bottom: 30px;
}

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

.difficulty-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}

.difficulty-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    border-color: #ff4500;
}

.difficulty-btn.active {
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    border-color: white;
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.8);
}

/* Story Buttons */
.story-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.story-btn {
    padding: 30px 20px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.story-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #ff4500;
}

.story-icon {
    font-size: 48px;
}

.story-title {
    font-size: 18px;
}

/* Reading Area */
.reading-area {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
}

.reading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.timer-display {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 2px solid #ff4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

.timer-label {
    font-size: 12px;
    color: #ff1493;
    font-weight: 600;
    text-shadow: 0 0 5px #ff1493;
}

.timer-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px #ff4500;
}

.story-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.story-content h3 {
    color: #ff1493;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

.story-content p {
    margin-bottom: 15px;
}

.reading-controls {
    display: flex;
    justify-content: center;
}

/* Quiz Area */
.quiz-area {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
}

.quiz-header {
    margin-bottom: 30px;
}

.quiz-header h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #ff4500;
}

.quiz-progress {
    color: #ff1493;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 10px #ff1493;
}

.question-container {
    margin-bottom: 30px;
}

.question-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #ff4500;
    line-height: 1.5;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.answer-btn {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #ff1493;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: left;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}

.answer-btn:hover:not(.correct):not(.incorrect) {
    background: rgba(0, 0, 0, 0.7);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    border-color: #ff4500;
}

.answer-btn.correct {
    background: rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
}

.answer-btn.incorrect {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

.feedback {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    min-height: 30px;
    text-shadow: 0 0 10px currentColor;
}

.feedback.correct {
    color: #00ff00;
}

.feedback.incorrect {
    color: #ff0000;
}

.quiz-controls {
    display: flex;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #ff4500;
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.7);
    border-color: white;
}

.btn-primary {
    padding: 20px 40px;
    font-size: 20px;
}

/* Results Modal */
.results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 3px solid #ff1493;
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.8);
}

.modal-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #ff4500, 0 0 40px #ff1493;
}

.results-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 20, 147, 0.2);
    border-radius: 10px;
    border: 2px solid #ff4500;
}

.result-label {
    color: #ff1493;
    font-weight: 600;
    text-shadow: 0 0 5px #ff1493;
}

.result-value {
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 10px #ff4500;
}

.performance-rating .result-value {
    font-size: 24px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 36px;
    }

    .story-content {
        font-size: 16px;
        padding: 20px;
    }

    .question-text {
        font-size: 20px;
    }

    .story-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

