/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="75" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.floating-numbers {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-numbers .number {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-numbers .number:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-numbers .number:nth-child(2) {
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.floating-numbers .number:nth-child(3) {
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.floating-numbers .number:nth-child(4) {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
}

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

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    border-radius: 2px;
}

/* Calculator Section */
.calculator-section {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calculator-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.fraction-input {
    margin: 2rem 0;
}

.fraction-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.fraction input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.fraction input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.fraction-line {
    width: 50px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    border-radius: 2px;
}

.operator,
.equals {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin: 0 0.5rem;
}

.result-fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #28a745;
    font-weight: bold;
}

.result-fraction span {
    font-size: 1.2rem;
}

/* Steps Container */
.steps-container {
    background: transparent;
    padding: 1rem 0;
    border-radius: 15px;
    border: none;
    max-height: 600px;
    overflow-y: auto;
}

/* Child-friendly step cards */
.step-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.step-card.final-step {
    border-left-color: #ffa726;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.step-card.celebration {
    border-left-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    text-align: center;
}

.step-card.welcome {
    border-left-color: #2196f3;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    text-align: center;
}

.example-hint {
    background: rgba(33, 150, 243, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px dashed #2196f3;
}

.example-hint p {
    margin: 0.5rem 0;
}

.example-hint em {
    color: #1976d2;
    font-style: italic;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.step-explanation {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, #fff3e0, #ffecb3);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    color: #ef6c00;
}

/* Visual math display */
.visual-math {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

.math-part {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196f3;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.math-operator {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
}

.math-equals {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
}

.math-result {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4caf50;
    background: #e8f5e8;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    animation: highlight 0.6s ease-in-out;
}

@keyframes highlight {
    0% { background: #ffeb3b; }
    100% { background: #e8f5e8; }
}

/* Mini fraction display */
.problem-display-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

.fraction-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.fraction-mini .num,
.fraction-mini .den {
    color: #2196f3;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.fraction-mini .line {
    width: 30px;
    height: 2px;
    background: #333;
    margin: 3px 0;
    border-radius: 1px;
    display: block;
}

/* Result display */
.result-display {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.fraction-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4caf50;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.fraction-result .num,
.fraction-result .den {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.fraction-result.celebration {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
    animation: bounce 0.6s ease-in-out;
}

.fraction-result.final {
    background: linear-gradient(135deg, #ffa726, #ffb74d);
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.fraction-result .line {
    width: 50px;
    height: 3px;
    background: currentColor;
    margin: 5px 0;
    border-radius: 2px;
    display: block;
}

/* Simplification visual */
.simplification-visual {
    margin: 1rem 0;
}

.before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.before, .after {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
}

.arrow {
    font-size: 2rem;
    color: #ff6b6b;
    font-weight: bold;
}

/* Final answer highlight */
.final-answer-highlight {
    display: inline-block;
    margin: 1rem 0;
}

.encouragement {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e1f5fe, #f3e5f5);
    border-radius: 8px;
    font-weight: bold;
    color: #4a148c;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b6b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Tips Section */
.quick-tips {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.example {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Lessons Page Styles */
.lessons-nav {
    background: white;
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 20px;
}

.lesson-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border-color: transparent;
}

.lesson-content {
    background: white;
    padding: 3rem 0;
    border-radius: 20px;
    margin: 2rem 0;
}

.lesson-tab {
    display: none;
}

.lesson-tab.active {
    display: block;
}

.lesson-overview {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #2196f3;
}

.lesson-step {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.example-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
}

.fraction-large {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
}

.fraction-large .num,
.fraction-large .den {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.fraction-large .line {
    width: 40px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    border-radius: 1px;
    display: block;
}

/* Ensure no text decoration on fraction numbers */
.fraction-large .num,
.fraction-large .den {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Global rule to remove any text decorations from all numbers */
span[class*="num"],
span[class*="den"],
.num,
.den {
    text-decoration: none !important;
    border-top: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Specifically target spans inside fraction display */
.problem-equation .fraction-large .den,
.problem-equation .fraction-large .num {
    text-decoration: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

/* Remove all text decorations from numbers in step cards */
.step-card span,
.step-card .num,
.step-card .den,
.steps-container span,
.steps-container .num,
.steps-container .den,
.visual-math span,
.result-display span,
.simplification-visual span,
.final-answer-highlight span {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

.arrow {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin: 0;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.practice-box {
    background: #fff3e0;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #ffa726;
}

.practice-box .operator {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    height: 60px;
    justify-content: center;
}

.practice-box .fraction-large {
    height: 60px;
    justify-content: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.practice-box p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.practice-box .fraction-large .line {
    width: 40px !important;
    height: 2px !important;
    background: #333 !important;
    margin: 5px 0 !important;
    border-radius: 1px !important;
    display: block !important;
}

.practice-box .example .fraction-large .line {
    width: 40px !important;
    height: 2px !important;
    background: #333 !important;
    margin: 5px 0 !important;
    border-radius: 1px !important;
    display: block !important;
}

.practice-box .answer .example .fraction-large .line {
    width: 40px !important;
    height: 2px !important;
    background: #333 !important;
    margin: 5px 0 !important;
    border-radius: 1px !important;
    display: block !important;
}

.practice-box .line {
    width: 40px !important;
    height: 2px !important;
    background: #333 !important;
    margin: 5px 0 !important;
    border-radius: 1px !important;
    display: block !important;
}

.answer {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 10px;
}

.answer.hidden {
    display: none;
}

/* Practice Page Styles */
.user-stats {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 2rem 0;
}

.stats-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.badges-section {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.badge-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.badge-card.locked {
    opacity: 0.6;
    filter: grayscale(100%);
}

.badge-card:not(.locked) {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.difficulty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.difficulty-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.difficulty-card[data-level="easy"] {
    border-color: #28a745;
}

.difficulty-card[data-level="medium"] {
    border-color: #ffc107;
}

.difficulty-card[data-level="hard"] {
    border-color: #dc3545;
}

.difficulty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.difficulty-card ul {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
}

.difficulty-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.difficulty-card li:last-child {
    border-bottom: none;
}

/* Game Area Styles */
.game-area {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.difficulty-badge {
    background: #17a2b8;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc3545;
}

.problem-card {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.problem-equation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.question-mark {
    font-size: 2rem;
    color: #6c757d;
    margin: 0 1rem;
}

.answer-input {
    margin: 2rem 0;
}

.answer-fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.answer-fraction input {
    width: 80px;
    height: 50px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px 0;
}

.feedback {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.solution-steps {
    background: #e8f5e8;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: left;
}

.game-results {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.results-card {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
}

/* About Page Styles */
.mission-section {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.features-detailed {
    background: #f8f9fa;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.feature-detailed {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid #ff6b6b;
}

.feature-detailed ul {
    list-style: none;
    margin-top: 1rem;
}

.feature-detailed li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.feature-detailed li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.educational-approach {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.approach-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.target-audience {
    background: #f8f9fa;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.audience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.audience-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.commitment {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
}

.commitment-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.commitment-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.get-started {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem 0;
    text-align: center;
}

.get-started-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.get-started-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fraction-group {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .lesson-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .difficulty-cards {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .problem-equation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .commitment-content {
        grid-template-columns: 1fr;
    }
    
    .get-started-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .calculator-card,
    .steps-container {
        padding: 1rem;
    }
    
    .fraction input {
        width: 50px;
        height: 35px;
        font-size: 1rem;
    }
    
    .answer-fraction input {
        width: 60px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-success {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    /* Mobile responsive for step cards */
    .visual-math {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .before-after {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .fraction-result {
        font-size: 1.5rem;
    }
    
    .fraction-result.celebration {
        font-size: 1.8rem;
    }
    
    .steps-container {
        max-height: 400px;
    }
} 