.math-problems {display: flex;flex-wrap: wrap;gap: 0.5em 0.5em;justify-content: flex-start;padding: 0.5em 0;flex-direction: row;font-size:12px; margin-top:-30px;}
.sproblem129 {display: flex;flex-direction: row;margin: 5px;border: 3px solid #5B9BD5;border-radius: 10px;padding: 10px;background-color: #EAF1FB;width: 100%;max-width: 750px;box-shadow: 0 3px 5px rgba(0,0,0,0.1);}
.spb_num129 {background-color: #5B9BD5;color: white;font-weight: bold;width: 30px;height: 30px;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-bottom: 15px;box-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.store_scenario129 {display: flex;flex-direction: row;gap: 15px;width:100%;}
.product_info129 {display: flex;align-items: center;background-color: white;border-radius: 8px;padding: 10px;border: 2px solid #B3E5FC;box-shadow: 0 2px 4px rgba(0,0,0,0.1);width:35%;}
.product_img129 {width: 80px;height: 80px;margin-right: 15px;display: flex;align-items: center;justify-content: center;background-color: #F5F5F5;border-radius: 8px;padding: 5px;}
.product_img129 img {max-width: 100%;max-height: 100%;}
.product_details129 {flex-grow: 1;}
.product_name129 {font-size: 18px;font-weight: bold;color: #333;margin-bottom: 5px;text-align:center;}
.product_price129 {color: #E74C3C;font-weight: bold;font-size: 16px;background-color: #FFEBEE;display: inline-block;padding: 3px 8px;border-radius: 4px;}
.payment_info129 {background-color: #F8F9FA;border-radius: 8px;padding: 15px;border: 2px dashed #A5D6A7;width:33%;}
.payment_text129 {color: #2E7D32;margin-bottom: 10px;font-weight: bold;}
.money_img129 {display: flex;justify-content: center;margin:   0;padding: 0px;border-radius: 8px;}
.money_img129 img {max-width: 100%;height: auto;}
.calculation129 {display: flex;justify-content: center;gap: 10px;margin-top: 10px;font-weight: bold;color: #333;background-color: #E8F5E9;padding: 8px;border-radius: 5px;}
.question_box129 {background-color: #FFEBEE;border-radius: 8px;padding: 10px;border: 2px solid #FFCDD2;width:32%;}
.question_text129 {color: #C62828;margin-bottom: 10px;font-weight: bold;text-align: center;}
.answer_box129 {border: 2px dashed #F44336;padding: 5px 15px;min-width: 100px;height: 40px;display: flex;align-items: center;justify-content: flex-end;border-radius: 5px;background-color: white;margin: 0 auto;position: relative;}
.answer_box129.filled129 {border: 2px solid #F44336;background-color: #FFF3F0;}
.answer_value129 {font-weight: bold;color: #333;margin-right: 10px;font-size: 18px;}
.answer_unit129 {color: #999;position: absolute;right: 10px;}
.change_breakdown129 {background-color: #E3F2FD;border-radius: 8px;padding: 10px;border: 2px solid #90CAF9;margin-top: 10px;}
.change_title129 {color: #1565C0;font-weight: bold;margin-bottom: 10px;text-align: center;}
.change_list129 {display: flex;flex-wrap: wrap;gap: 10px;justify-content: center;}
.change_item129 {display: flex;align-items: center;background-color: white;padding: 5px;border-radius: 5px;border: 1px solid #BBDEFB;}
.change_img129 {margin-right: 5px;}
.change_count129 {background-color: #42A5F5;color: white;border-radius: 3px;padding: 2px 5px;margin: 0 5px;font-size: 12px;font-weight: bold;}
.change_value129 {color: #0D47A1;font-weight: bold;font-size: 14px;}
/* 추가 문제 유형 스타일 */
.worksheet_container129 {display: flex;flex-wrap: wrap;justify-content: center;gap: 20px;margin: 20px 0;}
.sproblem142 {display: flex;flex-direction: row;margin: 2px;border: 2px solid #5B9BD5;border-radius: 10px;padding: 5px;background-color: #EAF1FB;width: 100%;max-width: 750px;box-shadow: 0 3px 5px rgba(0,0,0,0.1);}
.spb_num142 {background-color: #5B9BD5;color: white;font-weight: bold;width: 30px;height: 30px;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-bottom: 15px;box-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.store_scenario142 {display: flex;flex-direction: row;gap: 5px;width: 100%; padding: 0 0 0 5px;}
.product_info142 {display: flex;align-items: center;background-color: white;border-radius: 8px;padding: 10px;border: 2px solid #B3E5FC;box-shadow: 0 2px 4px rgba(0,0,0,0.1);width: 25%;    flex-wrap: wrap;    flex-direction: column; padding-top:20px;}
.product_img142 {width: 80px;height: 80px; display: flex;align-items: center;justify-content: center;background-color: #F5F5F5;border-radius: 8px;padding: 5px;}
.product_img142 img {max-width: 100%;max-height: 100%;}
.product_details142 {flex-grow: 1;}
.product_name142 {font-size: 18px;font-weight: bold;color: #333;margin-bottom: 5px;text-align: center;}
.product_price142 {color: #E74C3C;font-weight: bold;font-size: 16px;background-color: #FFEBEE;display: inline-block;padding: 3px 8px;border-radius: 4px;text-align: center;}
.payment_info142 {background-color: #F8F9FA;border-radius: 8px;padding: 5px;border: 2px dashed #A5D6A7;width: 45%;}
.payment_text142 {color: #2E7D32;margin-bottom: 5px;font-weight: bold; text-align:center;}
.calculation142 {display: flex;justify-content: center;gap: 10px;margin-top: 10px;font-weight: bold;color: #333;background-color: #E8F5E9;padding: 8px;border-radius: 5px;}
.question_box142 {background-color: #FFEBEE;border-radius: 8px;padding: 10px;border: 2px solid #FFCDD2;width: 30%;}
.question_text142 {color: #C62828;margin-bottom: 10px;font-weight: bold;text-align: center;}
.answer_box142 {border: 2px dashed #F44336;padding: 5px 15px;min-width: 100px;height: 40px;display: flex;align-items: center;justify-content: flex-end;border-radius: 5px;background-color: white;margin: 0 auto;position: relative;}
.answer_box142.filled142 {border: 2px solid #F44336;background-color: #FFF3F0;}
.answer_value142 {font-weight: bold;color: #333;margin-right: 10px;font-size: 18px;}
.answer_unit142 {color: #999;position: absolute;right: 10px;}
/* 추가된 CSS - 복수 지폐 표시용 */
.money_count_text142 {text-align: center;color: #FF5722;font-weight: bold;font-size: 16px;margin-bottom: 4px;background-color: #FFF3E0;padding: 4px 8px;border-radius: 15px;display: inline-block;border: 2px solid #FFB74D;}
.money_container142 {position: relative;display: flex;justify-content: center;margin:   0;height: 85px;min-width: 300px;padding: 10px;}
.money_bill142 {position: absolute;border: 1px solid #ddd;border-radius: 4px;box-shadow: 0 3px 6px rgba(0,0,0,0.3);transition: all 0.3s ease;}
.money_bill142:hover {transform: translateY(-3px) scale(1.02);box-shadow: 0 5px 12px rgba(0,0,0,0.4);}
.total_payment142 {text-align: center;color: #4CAF50;font-weight: bold;font-size: 14px;margin-top:0px;background-color: #E8F5E9;padding: 5px;border-radius: 5px;border: 1px solid #81C784;}

.bill_count_row142 {     display: flex;    justify-content: space-around;    gap: 16px;    margin-bottom: 0px;}
.bill_count_circle142 { width: 30px; height: 30px; border-radius: 50%; background-color: #5B9BD5; color: white; font-weight: bold; display: flex; justify-content: center; align-items: center; }


.worksheet927 {width: 100%;max-width: 800px;margin: 2px auto;background-color: #FFF;border-radius: 15px; ;padding: 2px;position: relative;}
.problem_number927 {position: absolute;top: 15px;left: 15px;background: linear-gradient(135deg, #FF6B35 0%, #F4511E 100%);color: white;font-weight: bold;width: 35px;height: 35px;border-radius: 50%;display: flex;justify-content: center;align-items: center;font-size: 16px;box-shadow: 0 3px 6px rgba(244, 81, 30, 0.3);}
/* 상점 진열대 스타일 */
.store_display927 {background: linear-gradient(135deg, #8D6E63 0%, #6D4C41 100%);border-radius: 15px 15px 10px 10px;padding: 10px;margin: 10px auto 10px;max-width: 700px;box-shadow: 0 8px 20px rgba(109, 76, 65, 0.3);position: relative;}
.store_roof927 {position: absolute;top: -15px;left: -10px;right: -10px;height: 20px;background: linear-gradient(135deg, #D7CCC8 0%, #A1887F 100%);border-radius: 20px 20px 0 0;border: 3px solid #8D6E63;}
.store_roof927::before {content: '';position: absolute;top: -8px;left: 50%;transform: translateX(-50%);width: 100px;height: 15px;background: repeating-linear-gradient(90deg,#D7CCC8 0px,#D7CCC8 10px,#A1887F 10px,#A1887F 20px);border-radius: 20px;border: 2px solid #8D6E63;}
.shelf_container927 {background: linear-gradient(135deg, #EFEBE9 0%, #D7CCC8 100%);border-radius: 10px;padding: 15px;border: 3px solid #A1887F;}
.shelf_row927 {display: flex;justify-content: space-between;margin-bottom: 15px;gap: 10px;}.shelf_row927:last-child {margin-bottom: 0;}
.shelf_item927 {flex: 1;background: linear-gradient(135deg, #FFF 0%, #F5F5F5 100%);border-radius: 8px;padding: 10px;text-align: center;border: 2px solid #BCAAA4;min-height: 120px;display: flex;flex-direction: column;justify-content: space-between;box-shadow: 0 2px 8px rgba(188, 170, 164, 0.3);position: relative;}
.shelf_item927.empty927 {background: transparent;border: 2px dashed #BCAAA4;opacity: 0.3;}
.product_image927 {flex: 1;display: flex;align-items: center;justify-content: center;margin-bottom: 8px;}
.product_image927 img {max-width: 60px;max-height: 60px;object-fit: contain;}
.price_tag927 {background: linear-gradient(135deg, #FF5722 0%, #D32F2F 100%);color: white;font-weight: bold;padding: 4px 8px;border-radius: 15px;font-size: 14px;border: 2px solid #FFFFFF;box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);}
/* 계산 문제 섹션 */
.calculation_problem927 {background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);border-radius: 15px;padding: 10px;margin-top: 5px;border: 3px solid #BA68C8;box-shadow: 0 4px 12px rgba(186, 104, 200, 0.2);}
.calculation_row927 {display: flex;align-items: center;justify-content: center;gap:  0 10px;flex-wrap: wrap;}
.item_section927 {display: flex;flex-direction: column;align-items: center;gap: 2px;}
.problem_image927 {width: 50px;height: 50px;object-fit: contain;background: linear-gradient(135deg, #FFF 0%, #F5F5F5 100%);border-radius: 10px;padding: 5px;border: 2px solid #CE93D8;box-shadow: 0 2px 6px rgba(206, 147, 216, 0.3);}
.item_label927 {font-weight: bold;color: #6A1B9A;font-size: 14px;text-align: center;}
.price_blank927, .answer_blank927 {border-bottom: 3px solid #8E24AA;padding: 10px 30px;min-width: 80px;text-align: center;font-weight: bold;color: transparent;background: linear-gradient(135deg, #FFF 0%, #F8F8F8 100%);border-radius: 5px 5px 0 0;}
.price_filled927, .answer_filled927 {border-bottom: 3px solid #8E24AA;padding: 5px 10px;min-width: 80px;text-align: center;font-weight: bold;color: #4A148C;background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);border-radius: 5px;font-size: 16px;border: 2px solid #66BB6A;box-shadow: 0 2px 4px rgba(102, 187, 106, 0.3);}
.plus_sign927, .equals_sign927 {font-size: 30px;font-weight: bold;color: #8E24AA;background: linear-gradient(135deg, #FFF 0%, #F5F5F5 100%);border-radius: 50%;width: 50px;height: 50px;display: flex;align-items: center;justify-content: center;border: 3px solid #CE93D8;box-shadow: 0 3px 8px rgba(206, 147, 216, 0.4);}
.answer_section927 {display: flex;flex-direction: column;align-items: center;gap: 8px;}

.worksheet182 {
    width: 100%;
    max-width: 800px;
    margin: 5px auto;
    background: #FFFFFF;
    border: 0px solid #333;
    padding: 5px;
    font-family: Arial, sans-serif;
	display:flex;
	gap: 0px 15px;
}

.problem_number182 {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: white;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

/* 돈 표시 섹션 */
.money_display182 {
    text-align: center;
    margin: 0px 0 0px 0;
    padding: 10px;
    background: #F8F8F8;
    border: 2px solid #DDD;
    border-radius: 10px;
	width:260px;
}

.money_title182 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.money_container182 {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 15px 0;
    height: 80px;
	width:260px;
    align-items: center;
}

.money_bill182 {
    position: absolute;
    border: 1px solid #999;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.total_money182 {
    font-size: 20px;
    font-weight: bold;
    color: #2E7D32;
    background: #E8F5E8;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #4CAF50;
}

/* 상품 가로 배치 */
.products_row182 {
    display: flex;
    justify-content: space-around;
    gap: 5px 10px;
    flex-wrap: nowrap;
	width:380px
}

.product_card182 {
    background: #FFFFFF;
    border: 3px solid #DDD;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    width: 120px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product_image182 {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9F9F9;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
}

.product_image182 img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.product_price182 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: #FFF3CD;
    padding: 8px 12px;
    border-radius: 15px;
    border: 2px solid #FFE066;
}

.selection_circle182 {
    width: 40px;
    height: 40px;
    border: 3px solid #DDD;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    background: #FFFFFF;
    cursor: pointer;
}

.selection_circle182.correct_circle182 {
    border-color: #4CAF50;
    color: #4CAF50;
    background: #E8F5E8;
}

/* 정답/오답 표시 */
.product_card182.can_buy182 {
    border-color: #F44336;
    background: #F8FFF8;
}

.product_card182.cannot_buy182 {
 
    background: #FFF8F8;
    opacity: 0.8;
}

.instruction_text182 {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    margin-top: 20px;
    padding: 10px;
    background: #F0F0F0;
    border-radius: 5px;
}

 
/* 질문 섹션 */
.question_section182 {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 3px solid #E91E63;
    text-align: center;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.question_text182 {
    color: #AD1457;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(173, 20, 87, 0.1);
}

.answer_choices182 {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.choice182 {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    border: 3px dashed #E91E63;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    color: #AD1457;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice182:hover {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
    transform: scale(1.05);
}

.answer_display182 {
    margin-top: 15px;
}

.correct_answer182 {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    color: #2E7D32;
    font-weight: bold;
    font-size: 20px;
    padding: 15px;
    border-radius: 25px;
    border: 3px solid #4CAF50;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

 
.question_section182 {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 3px solid #E91E63;
    text-align: center;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.question_text182 {
    color: #AD1457;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(173, 20, 87, 0.1);
}

.answer_choices182 {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.choice182 {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    border: 3px dashed #E91E63;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    color: #AD1457;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice182:hover {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
    transform: scale(1.05);
}

.answer_display182 {
    margin-top: 15px;
}

.correct_answer182 {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    color: #2E7D32;
    font-weight: bold;
    font-size: 20px;
    padding: 15px;
    border-radius: 25px;
    border: 3px solid #4CAF50;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}


.bill_count182 {
    position: absolute;
    bottom: -20px;
    right: 0;
    background: #FF5722;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid #D32F2F;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}


 .problem1-container {
    position: relative;
    display: flex;
    width: 100%;
    margin-top: -0.5em;
    align-items: center;
    border-radius: 15px;
    padding: 5px;
    background: var(--bg-color, #fff3f0);
}

.pb_num1 {
    position: absolute;
    top: 0em;
    left: -0.5em;
    width: 2.5em;
    height: 2.5em;
    background: var(--main-color, #ff6b9d);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
    line-height: 1;
    border: 3px solid #fff;
    color: white;
}

.problem1-container .problem1 {
    display: flex;
    width: 20%;
    height: 100%;
    border: 3px solid var(--main-color, #ff6b9d);
    background: #fff;
    box-sizing: border-box;
    border-radius: 15px;
    margin-right: 20px;
}

.problem1-container .problem2 {
    display: flex;
    width: 100%;
    height: 100%;
    background: var(--main-color, #ff6b9d);
    box-sizing: border-box;
    border-radius: 15px;
    margin-right: 0px;
}

.box1 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #FFF;
    position: relative;
}

.problem1 .box1 {
    border-right: 2px solid var(--light-color, #ffcce0);
}

.box1:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.box1:last-child {
    border-right: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.number1 {
    font-size: 1.7em;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px;
}

.problem1-container span {
    display: inline-block;
    font-size: 24px;
    text-align: center;
    margin-right: 15px;
    color: var(--main-color, #ff6b9d);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.problem1-container .as {
    border: 4px solid #ff1313;
    border-radius: 60px;
}

/* 그림자 효과 - 원본 이미지를 흰색 실루엣으로 만들기 */
.shadow-img {
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: all 0.3s ease;
}
