/* =====================================================
   Simplifying Fractions
   Part 1
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f9fc;
    color:#333;
    line-height:1.6;
}

.container{
    width:90%;
    max-width:1000px;
    margin:40px auto;
    background:#fff;
    padding:40px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

/* =====================================
   Headings
===================================== */

h1{
    text-align:center;
    color:#0f766e;
    font-size:38px;
    margin-bottom:20px;
}

h2{
    color:#0f766e;
    margin-bottom:15px;
    font-size:30px;
}

h3{
    color:#155e75;
    margin-bottom:12px;
    font-size:22px;
}

.intro{
    text-align:center;
    font-size:18px;
    max-width:800px;
    margin:0 auto 35px;
    color:#555;
}

.section-intro{
    text-align:center;
    margin-bottom:30px;
    color:#555;
    font-size:17px;
}

/* =====================================
   Tips Box
===================================== */

.tips-box{
    background:#ecfeff;
    border-left:6px solid #14b8a6;
    padding:22px;
    border-radius:12px;
    margin:35px 0;
}

.tips-box h2{
    font-size:26px;
    margin-bottom:10px;
}

.tips-box ul{
    margin-top:10px;
    padding-left:20px;
}

.tips-box li{
    margin:10px 0;
    font-size:17px;
}

/* =====================================
   Sections
===================================== */

section{
    margin-top:55px;
}

/* =====================================
   Fraction Design
===================================== */

.fraction{
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:70px;
    margin:0 8px;
}

.fraction.big{
    font-size:34px;
    font-weight:bold;
}

.fraction.small{
    font-size:24px;
    font-weight:bold;
}

.top,
.bottom{
    display:block;
    text-align:center;
    white-space:nowrap;
}

.bar{
    width:100%;
    min-width:55px;
    height:2px;
    background:#000;
    margin:4px 0;
}

.answer{
    color:#15803d;
}

.equal{
    font-size:28px;
    font-weight:bold;
    margin:0 12px;
}

/* =====================================
   Example Cards
===================================== */

.example-card{
    background:#ffffff;
    border:1px solid #dbeafe;
    border-radius:14px;
    padding:30px;
    margin-top:25px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
}

/* =====================================
   Buttons
===================================== */

.buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin:25px 0;
}

.buttons button{
    background:#14b8a6;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:12px 20px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
}

.buttons button:hover{
    background:#0f766e;
    transform:translateY(-2px);
}

/* =====================================
   Hint Box
===================================== */

.hint-box{
    background:#fffbeb;
    border-left:5px solid #f59e0b;
    padding:18px;
    border-radius:10px;
    text-align:left;
    margin-top:20px;
}

.hint-box h3{
    color:#b45309;
}

.hint-box ul{
    margin-top:10px;
    padding-left:20px;
}

.hint-box li{
    margin:8px 0;
}

/* =====================================
   Feedback
===================================== */

#feedback,
#feedback1,
#feedback2,
#feedback3{
    margin-top:20px;
    font-size:18px;
    font-weight:bold;
}

.correct{
    background:#dcfce7;
    border-left:5px solid #22c55e;
    padding:18px;
    border-radius:10px;
}

.wrong{
    background:#fee2e2;
    border-left:5px solid #ef4444;
    padding:18px;
    border-radius:10px;
}
/* =====================================================
   Simplifying Fractions
   Part 2
===================================================== */

/* =====================================
   Worked Examples
===================================== */

.worked-examples{
    margin-top:60px;
}

.worked-box{
    background:#ffffff;
    border:1px solid #dbeafe;
    border-left:6px solid #3b82f6;
    border-radius:14px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
}

.worked-box h3{
    color:#2563eb;
    margin-bottom:20px;
}

.math-row{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin:20px 0;
}

.note{
    text-align:center;
    color:#555;
    font-size:17px;
    margin-top:15px;
}

/* =====================================
   Interactive Practice
===================================== */

.practice-section{
    margin-top:70px;
}

.practice-card{
    background:#ffffff;
    border:1px solid #d1fae5;
    border-left:6px solid #10b981;
    border-radius:14px;
    padding:25px;
    margin-bottom:30px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
}

.practice-card h3{
    color:#047857;
    margin-bottom:20px;
}

.practice-card .fraction{
    margin:20px auto;
}

/* =====================================
   Practice Questions
===================================== */

.worksheet{
    margin-top:70px;
}

.practice-table{
    width:100%;
    border-collapse:collapse;
    margin-top:25px;
    overflow:hidden;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.practice-table th{
    background:#14b8a6;
    color:#fff;
    padding:15px;
    font-size:17px;
    text-align:center;
}

.practice-table td{
    padding:16px;
    text-align:center;
    border-bottom:1px solid #e5e7eb;
    background:#fff;
}

.practice-table tr:nth-child(even) td{
    background:#f9fafb;
}

.practice-table input{
    width:90px;
    padding:8px;
    border:2px solid #d1d5db;
    border-radius:8px;
    text-align:center;
    font-size:16px;
    transition:.2s;
}

.practice-table input:focus{
    outline:none;
    border-color:#14b8a6;
}

/* =====================================
   Worksheet Buttons
===================================== */

.worksheet-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin-top:30px;
}

.check-btn,
.reset-btn{
    border:none;
    border-radius:10px;
    padding:12px 24px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
}

.check-btn{
    background:#14b8a6;
    color:#fff;
}

.check-btn:hover{
    background:#0f766e;
}

.reset-btn{
    background:#e5e7eb;
    color:#333;
}

.reset-btn:hover{
    background:#d1d5db;
}
/* =====================================================
   Simplifying Fractions
   Part 3
===================================================== */


/* =====================================
   Score Box
===================================== */

.score-box{
    margin-top:30px;
    padding:20px;
    border-radius:12px;
    background:#ecfdf5;
    border-left:6px solid #22c55e;
    text-align:center;
    font-size:20px;
    font-weight:bold;
    color:#166534;
    display:none;
}


/* =====================================
   Challenge Section
===================================== */

.challenge{
    margin-top:70px;
    text-align:center;
}

.challenge .fraction{
    margin:25px auto;
}

.challenge input{
    width:120px;
    padding:10px;
    font-size:18px;
    text-align:center;
    border:2px solid #d1d5db;
    border-radius:8px;
}

.challenge input:focus{
    outline:none;
    border-color:#14b8a6;
}

.challenge button{
    margin-top:15px;
    padding:12px 25px;
    border:none;
    border-radius:8px;
    background:#14b8a6;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
}

.challenge button:hover{
    background:#0f766e;
}

#challengeFeedback{
    margin-top:20px;
    font-size:18px;
    font-weight:bold;
}


/* =====================================
   Summary Box
===================================== */

.summary{
    margin-top:70px;
    background:#eff6ff;
    border-left:6px solid #3b82f6;
    padding:25px;
    border-radius:14px;
}

.summary h2{
    margin-bottom:15px;
}

.summary ul{
    padding-left:25px;
}

.summary li{
    margin:12px 0;
    font-size:17px;
}


/* =====================================
   Mobile Responsive
===================================== */

@media (max-width:768px){

.container{
    width:95%;
    padding:20px;
}

h1{
    font-size:30px;
}

h2{
    font-size:24px;
}

h3{
    font-size:20px;
}

.intro,
.section-intro{
    font-size:16px;
}

.fraction.big{
    font-size:28px;
}

.fraction.small{
    font-size:20px;
}

.math-row{
    flex-direction:column;
    gap:12px;
}

.equal{
    font-size:24px;
}

.buttons{
    gap:8px;
}

.buttons button{
    width:70px;
    padding:10px 0;
    font-size:15px;
}

.practice-table{
    display:block;
    overflow-x:auto;
}

.practice-table th,
.practice-table td{
    padding:12px;
    font-size:15px;
}

.practice-table input{
    width:70px;
}

.worksheet-buttons{
    flex-direction:column;
    align-items:center;
}

.check-btn,
.reset-btn{
    width:220px;
}

.challenge input{
    width:100px;
}

.score-box{
    font-size:18px;
}

}


/* =====================================
   Small Phones
===================================== */

@media (max-width:480px){

h1{
    font-size:26px;
}

h2{
    font-size:22px;
}

.fraction.big{
    font-size:24px;
}

.fraction.small{
    font-size:18px;
}

.buttons button{
    width:60px;
    font-size:14px;
}

.practice-card,
.worked-box,
.example-card{
    padding:18px;
}

}
/* ===============================
   Back Home
=============================== */

.back-home{

text-align:center;
margin:50px 0 30px;

}

.home-btn{

display:inline-block;
padding:14px 30px;
background:#14b8a6;
color:#fff;
text-decoration:none;
font-size:18px;
font-weight:bold;
border-radius:10px;
transition:.3s;

}

.home-btn:hover{

background:#0f766e;

}
.top-nav{
    text-align:center;
    margin:40px 0;
}
footer{
    text-align:center;
    padding:20px;
    margin-top:40px;
    border-top:1px solid #ddd;
    color:#666;
    font-size:15px;
}
/* ===========================
   Quick Help Section
=========================== */

.quick-help{
    max-width:360px;
    margin:20px auto;
    padding:10px;
    text-align:center;
    background:#f8fffe;
    border:1px solid #14b8a6;
    border-radius:8px;
    font-size:13px;
    line-height:1.4;
}

.quick-help strong{
    color:#0f766e;
}

.quick-help-btn{
    display:inline-block;
    margin-top:8px;
    padding:6px 14px;
    background:#25D366;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:bold;
    border-radius:5px;
}

.quick-help-btn:hover{
    background:#1ebe5d;
}

/* Mobile */

@media (max-width:600px){

    .quick-help{
        max-width:300px;
        padding:8px;
        font-size:12px;
    }

    .quick-help-btn{
        font-size:12px;
        padding:6px 12px;
    }

}