/* Story learning activity – scoped to #stories so it can share a page with the puzzle */

#stories{
    max-width:1100px;
    margin:0 auto;
}

#stories .panel-head{
    text-align:center;
    padding:10px 20px 10px;
}

#stories .panel-head h2{
    margin-bottom:12px;
    color:var(--navy);
}

#stories .panel-head p{
    color:var(--muted);
}

#stories .progress-container{
    width:90%;
    max-width:1000px;
    height:18px;
    background:#ddd;
    border-radius:50px;
    margin:20px auto;
    overflow:hidden;
}

#stories #progress-bar{
    width:25%;
    height:100%;
    background:var(--green);
    border-radius:50px;
    transition:.3s;
}

#stories .tabs{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    padding:20px;
}

#stories .tab-btn{
    border:none;
    background:var(--navy);
    color:#fff;
    padding:12px 20px;
    cursor:pointer;
    border-radius:8px;
    font-size:15px;
}

#stories .tab-btn.active{
    background:var(--green);
}

#stories #question-container{
    padding:20px;
}

#stories .question-card{
    background:#fff;
    margin-bottom:20px;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

#stories .question{
    font-size:20px;
    font-weight:bold;
    margin-bottom:15px;
}

#stories .dropzone{
    border:2px dashed #2196f3;
    min-height:60px;
    border-radius:8px;
    margin-bottom:15px;
    padding:10px;
}

#stories .option-bank{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

#stories .option{
    background:#2a5a50;
    color:#fff;
    padding:10px 15px;
    border-radius:6px;
    cursor:grab;
}

#stories .correct{
    border-color:green !important;
}

#stories .wrong{
    border-color:red !important;
}

#stories .navigation{
    text-align:center;
    margin:25px;
}

#stories .navigation button{
    border:none;
    color:#fff;
    background:var(--navy);
    padding:12px 20px;
    border-radius:6px;
    margin:5px;
    cursor:pointer;
    font-size:15px;
}

#stories .navigation button:hover{
    background:var(--green);
}

#stories #scoreBox{
    text-align:center;
    font-size:22px;
    font-weight:bold;
    margin-bottom:25px;
}

@media(max-width:768px){

    #stories .option-bank{
        flex-direction:column;
    }

    #stories .option{
        width:100%;
        text-align:center;
    }
}
