/* Lesson 8 - Solving Word Problems */

.word-problem-container {
    display: flex;
    gap: 40px;
    background-color: #fcecd9;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #dcb38a;
    margin-bottom: 40px;
    align-items: center;
}

.wp-image-side {
    flex: 1;
    font-size: 4rem;
    text-align: center;
    background-color: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 10px;
}

.wp-text-side {
    flex: 2;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #2c2c2c;
}

.highlight-num {
    display: inline-block;
    background-color: #ffcc00;
    color: #000;
    padding: 2px 12px;
    border-radius: 8px;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wp-question {
    font-style: italic;
    color: #ff3b30;
    margin-top: 15px;
    font-weight: 600;
}

.final-sentence {
    margin-top: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    background-color: #e6e6e6;
    border-radius: 10px;
}

.inline-input {
    width: 60px;
    height: 50px;
    border: 3px solid #ccc;
    border-radius: 8px;
    font-size: 1.8rem;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.3s;
    background: white;
    margin: 0 10px;
}

.inline-input:focus {
    border-color: #007bb5;
    box-shadow: 0 0 10px rgba(0, 123, 181, 0.3);
}

.inline-input.correct {
    border-color: #34c759;
    background-color: rgba(52, 199, 89, 0.1);
}

.inline-input.wrong {
    border-color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.1);
    animation: shake 0.4s;
}
