.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;}
.addition-problem-container591 {
    display: inline-block;
    margin: 10px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 3px solid var(--theme-color, #FF6B6B);
    position: relative;
}

.problem-number591 {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--theme-color, #FF6B6B);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.addition-box591 {
    background: white;
    padding: 10px;
    border-radius: 10px;
    min-width: 100px;
    font-family: 'Courier New', monospace;
}

.number-row591 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.first-number591 {
    color: #333;
}

.second-number591 {
    color: #333;
}

.third-number591 {
    color: #333;
}

.tens591, .ones591 {
    width: 35px;
    text-align: center;
    padding: 2px 5px;
    margin: 2px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.carry-row591 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 4px;
    height: 30px;
    padding-left: 10px; /* plus-sign 공간만큼 들여쓰기 */
}

.carry-number591 {
    width: 28px;
    height: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #333; 
    border-radius: 50%;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--theme-color, #FF6B6B);
    position: relative;
}

.carry-number591::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.carry-space591 {
    width: 35px;
    height: 28px;
    margin: 2px;
}

.plus-sign591 {
    width: 35px;
    text-align: center;
    font-size: 24px;
    color: var(--theme-color, #FF6B6B);
    font-weight: bold;
    margin-right: 5px;
}

.divider-line591 {
    height: 3px;
    background: var(--theme-color, #FF6B6B);
    margin: 5px 0;
    border-radius: 2px;
}

.answer-row591 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 28px;
    font-weight: bold;
    margin-top: 5px;
}

.answer-digit591 {
    width: 35px;
    height: 45px;
    text-align: center;
    padding: 5px;
    margin: 2px;
    border: 2px solid var(--theme-color, #FF6B6B);
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.answered591 .answer-digit591.highlight591 {
    background: #fff;
    border: 2px solid var(--theme-color, #FF6B6B);
    color: var(#333, #FF6B6B);
    font-weight: bold;
}








.grid-problem-container973 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 3px solid #4ECDC4;
    border-radius: 20px;
    padding: 5px;
    margin: 5px auto;
    max-width: 400px;
}

.grid-pb-num973 {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #4ECDC4;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

.grid-3x3-973 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    width: 300px;
    height: 250px;
    padding: 10px;
    border-radius: 5px;
}

.grid-cell973 {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;

}

.number-cell973 {
    background: white;
    border: 3px solid #aaa;
    color: #333;
}

 

.center-cell973 {
    color: white;
    font-size: 30px;

    position: relative;
    overflow: hidden;
}

.center-cell973::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 
}

 

.addition-problem973 {
    position: relative;
    z-index: 1;
}

.correct-answer973 {
    background: #ff3fc2 !important;

    color: white !important;
}
 

.problem736-container {
    position: relative;
    display: inline-block;
    margin: 10px;
    padding: 15px;
    background: #fff;
    border: 3px solid var(--accent-color, #FF6B6B);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
}

.pb_num736 {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: var(--accent-color, #FF6B6B);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.addition-table736 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calc-table736 {
    border-collapse: separate;
    border-spacing: 3px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0px;
}

.calc-table736 td {
    width: 65px;
    height: 45px;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
}

.plus-cell736 {
    background: var(--accent-color, #FF6B6B);
    color: white;
    border: 2px solid var(--accent-color, #FF6B6B);
    font-size: 28px  !important ;
	font-weight:bold !important ;
}

.header-cell736 {
    background: #e9ecef;
    color: #495057;
    border: 2px solid #ced4da;
    font-weight: bold;
}

.answer-cell736 {
    background: #fff;
    border: 2px dashed var(--accent-color, #FF6B6B);
    color: #6c757d;
    min-height: 45px;
}

.answer-highlight736 {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    color: #856404 !important;
    font-weight: bold;
}

 
/* 문제지 전체 레이아웃 */
.worksheet736-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.worksheet736-title {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 호버 효과 */
.answer-cell736:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.problem736-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}





.number-grid-container003 {
    max-width: 700px;
    margin: 00px auto;
    padding: 0px;
 
 
}

.grid-title003 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #FF1493;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    background: linear-gradient(45deg, #FF1493, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number-grid003 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px;
}

.number-box003 {
    border-radius: 20px;
    padding: 5px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 120px;
	margin-top:-10px;
}
 

.problem-section003 {
    border: 2px solid #FF69B4;
    border-radius: 60px;
    margin: 5px auto;
    min-height: 60px;
	padding:0;
    display: flex;
    align-items: center;
    justify-content: center;
	width:80px;
}

.answer-section003 {
    border: 2px solid #00CED1;
    border-radius: 15px;
    padding: 8px;
    margin: 5px 0;
    min-height: 50px;
	height:70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb_num003 {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
 
}

.transformed-number003 {
    font-size: 48px;
    font-weight: bold;
    color: #FF1493;
    line-height: 1;
    margin: 15px 0;
    display: inline-block;
    position: relative;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

/* 6과 9에 밑줄 추가 - 숫자 자체에 밑줄 */
.with-underline003 {
    text-decoration: underline;
    text-decoration-color: #333;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.number-underline003 {
    width: 20px;
    height: 3px;
    background: #333;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* 더 다양한 변형 효과들 */
.rotate30 {
    transform: rotate(30deg);
}

.rotate45 {
    transform: rotate(45deg);
}

.rotate60 {
    transform: rotate(60deg);
}

.rotate90 {
    transform: rotate(90deg);
}

.rotate120 {
    transform: rotate(120deg);
}

.rotate135 {
    transform: rotate(135deg);
}

.rotate150 {
    transform: rotate(150deg);
}

.rotate180 {
    transform: rotate(180deg);
}

.rotate210 {
    transform: rotate(210deg);
}

.rotate225 {
    transform: rotate(225deg);
}

.rotate240 {
    transform: rotate(240deg);
}

.rotate270 {
    transform: rotate(270deg);
}

.rotate300 {
    transform: rotate(300deg);
}

.rotate315 {
    transform: rotate(315deg);
}

.flipH {
    transform: scaleX(-1);
}

.flipV {
    transform: scaleY(-1);
}

.flipHR45 {
    transform: scaleX(-1) rotate(45deg);
}

.flipVR45 {
    transform: scaleY(-1) rotate(45deg);
}

.answer-line003 {
    border-bottom: 3px solid #9E9E9E;
    height: 25px;
    margin: 10px 15px;
    position: relative;
}

.answer-number003 {
    font-size: 48px;
    font-weight: bold;
    color: #4CAF50;
    border-radius: 8px;
    padding: 5px;
    margin: 5px 15px;
}

/* 정답에도 밑줄 적용 */
.answer-number003.with-underline003 {
    text-decoration: underline;
    text-decoration-color: #4CAF50;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

 

.korean-grid-container001 {
    max-width: 700px;
    margin: 10px auto;
    padding: 5px;
    background: #FFFFFF;
}

.korean-grid001 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px 15px;
    padding: 15px;
}

.korean-box001 {
    background: #FFFFFF;
    border: 2px solid #CCCCCC;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 120px;
}

.korean-box001:hover {
    border-color: #4A90E2;
    box-shadow: 0 3px 8px rgba(74,144,226,0.2);
}

.problem-section001 {
    border-radius: 35px;
    padding: 10px;
    margin: 5px 0;
    min-height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.answer-section001 {
    background: #F0F8FF;
    border: 1px solid #D0E7FF;
    border-radius: 8px;
    padding: 8px;
    margin: 5px 0;
    min-height: 45px;
	height:55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb_num001 {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 28px;
    height: 28px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.transformed-korean001 {
    font-size: 36px;
    font-weight: bold;
    color: #FFF;
    line-height: 1;
    display: inline-block;
    position: relative;
    font-family: 'Malgun Gothic', 'Apple Gothic', sans-serif;
}

/* 변형 효과들 */
.rotate30 {
    transform: rotate(30deg);
}

.rotate45 {
    transform: rotate(45deg);
}

.rotate60 {
    transform: rotate(60deg);
}

.rotate90 {
    transform: rotate(90deg);
}

.rotate120 {
    transform: rotate(120deg);
}

.rotate135 {
    transform: rotate(135deg);
}

.rotate150 {
    transform: rotate(150deg);
}

.rotate180 {
    transform: rotate(180deg);
}

.rotate210 {
    transform: rotate(210deg);
}

.rotate225 {
    transform: rotate(225deg);
}

.rotate240 {
    transform: rotate(240deg);
}

.rotate270 {
    transform: rotate(270deg);
}

.rotate300 {
    transform: rotate(300deg);
}

.rotate315 {
    transform: rotate(315deg);
}

.flipH {
    transform: scaleX(-1);
}

.flipV {
    transform: scaleY(-1);
}

.flipHR45 {
    transform: scaleX(-1) rotate(45deg);
}

.flipVR45 {
    transform: scaleY(-1) rotate(45deg);
}

.answer-line001 {
    border-bottom: 2px solid #CCCCCC;
    height: 20px;
    margin: 0 10px;
    position: relative;
}

.answer-korean001 {
    font-size: 26px;
    font-weight: bold;
    display: inline-block;
    position: relative;
    font-family: 'Malgun Gothic', 'Apple Gothic', sans-serif;
}

 
.worksheet017 {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    font-family: Arial, sans-serif;
    background: white;
    border: 3px solid #333;
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header017 {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.instruction017 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.4;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.targets017 {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 25px;
}

.target-circle017 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    border: 4px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.operations-grid017 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.operation-box017 {
    padding: 20px;
    border: 3px solid #333;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    background: white;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

 

.operation-box017.answer017 {
    font-weight: 500;
    border-width: 4px;
}



















.stroop-container128 {
 
    border: 3px solid #4a90e2;
    border-radius: 20px;
    padding: 20px;
    margin: 10px 0;
 
}

 
.pb-num-stroop128 { 
    color: white;
    font-size: 24px;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
 
 
}
 

.stroop-grid128 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: white;
    padding: 15px;
    border-radius: 15px;
 
 
}

.stroop-item128 {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
	width:120px; height:120px;
}

 

.stroop-item128.wrong-item128 {
    border: 3px solid #e74c3c;
    animation: wrongItemPulse128 1s ease-in-out;
    color: white;
}

.stroop-item128.wrong-item128::before {
    content: '✗';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}




.stroop-container160 {
    border: 3px solid #4a90e2;
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
}

.pb-num-stroop160 { 
    color: white;
    font-size: 20px;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stroop-grid160 {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 6열로 변경하여 더 많은 항목 */
    gap: 6px;
    background: white;
    padding: 12px;
    border-radius: 12px;
}

.stroop-item160 {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    font-size: 26px; /* 폰트 크기 축소 */
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* 크기 축소 */
    height: 80px; /* 크기 축소 */
}

.stroop-item160.wrong-item160 {
    border: 3px solid #e74c3c;
    animation: wrongItemPulse160 1s ease-in-out;
    color: white;
}
 




.size-problem-container527 {
    background: #ffffff;
    border: 3px solid #ff6b9d;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 0;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	width:100%;
}

.size-pb-num527 {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #ff6b9d;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border: 3px solid #fff;
}

.size-images-row527 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.size-image-box527 {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 120px;
	min-width:120px;
    justify-content: center;
}

.size-image-box527.correct-answer527 {
    border-color: #28a745;
    background: #d4edda;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.fruit-image527 {
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.fruit-image527.size527-1 {
    width: 35px;
    height: 35px;
}

.fruit-image527.size527-2 {
    width: 50px;
    height:50px;
}

.fruit-image527.size527-3 {
    width: 75px;
    height: 75px;
}

.fruit-image527.size527-4 {
    width: 90px;
    height: 90px;
}

.position-number527 {
    position: absolute;
    bottom: 5px;
    right: 8px;
    background: #6c757d;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.size-answer-row527 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.size-question527 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.size-answer-box527 {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-answer-box527.answer-filled527 {
    background: #d4edda;
    border-color: #28a745;
}

.size-answer-number527 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

 









.size-problem-container384 {
    background: #ffffff;
    border: 3px solid #ff6b9d;
    border-radius: 15px;
    padding: 15px;
    margin: 5px 0;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.size-pb-num384 {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #ff6b9d;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border: 3px solid #fff;
}

.size-images-row384 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.size-image-box384 {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 5px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    min-width: 120px;
}

.fruit-image384 {
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.fruit-image384.size384-1 {
    width: 35px;
    height: 35px;
}

.fruit-image384.size384-2 {
    width: 50px;
    height: 50px;
}

.fruit-image384.size384-3 {
    width: 75px;
    height: 75px;
}

.fruit-image384.size384-4 {
    width: 90px;
    height: 90px;
}

.answer-row384 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.answer-input384 {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    flex: 1;
    max-width: 160px;
}

.answer-input384.answer-filled384 {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

 




 .color-code-header098 {
    background: #f5f7fa  ;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 10px;
    text-align: center;
 
		width:100%;
}

.code-circles098 {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.code-circle098 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
 

.table-container098 {
    background: white;
    border-radius: 15px;
    overflow: hidden;
 
    border: 2px solid #e3f2fd;
	width:100%;
}

.pattern-table098 {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
}

.pattern-table098 thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header-codigo098, .header-numeros098 {
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: none;
}

.header-codigo098 {
    width: 50%;
    border-right: 2px solid rgba(255,255,255,0.3);
}

.header-numeros098 {
    width: 50%;
}

.pattern-row098 {
    border-bottom: 2px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.pattern-row098:hover {
    background-color: #f8f9ff;
}

.pattern-row098:last-child {
    border-bottom: none;
}

.codigo-cell098, .numeros-cell098 {
    padding: 15px 40px;
    text-align: center;
    vertical-align: middle;
}

.codigo-cell098 {
    background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%);
    border-right: 2px solid #e3f2fd;
}

.numeros-cell098 {
    background: #fafcff;
	display:flex;
}

.color-pattern098 {
    display: flex;
    justify-content: center;
    gap: 10px 20px;
    align-items: center;
}

.pattern-circle098 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.pattern-circle098:hover {
    transform: scale(1.1);
}

.number-input098 {
    min-height: 45px;
    background: white;
    border: 2px dashed #ccc;
    border-radius: 10px;
	width:50px;
    font-size: 18px;
    color: #999;
    margin: 0 10px;
}

 

.number-answer098 {
    min-height: 45px;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
    margin: 0 10px;
width:50px;

}

 
.color-arrow-container260 {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    background: #f8f9fa;
    border-radius: 10px;
    padding:5px 10px;
    border: 1px solid #dee2e6;
	width:100%;
}

.problem-number260 {
    /* background: #007bff; */
    color: #272727;
    font-size: 16px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid #8a8b8b;
    flex-shrink: 0;
}

.pattern-row260 {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.color-sequence260, .arrow-sequence260 {
    display: flex;
    gap: 2px;
    border: 0px solid #6c757d;
    border-radius: 8px;
    padding: 0px 10px;
    background: white;
	width:45%;
}

.color-square260 {
    width: 50px;
    height: 50px;
    border: 1px solid #333;
    border-radius: 4px;
 	margin:0 5px;
}

.arrow-box260 {
    width: 50px;
    height: 50px;
    border: 1px solid #28a745;
    border-radius: 4px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
	margin:0 5px;
}

.answer-arrow260 {
    border: 1px solid #28a745;
    background: #e8f5e9;
    color: #155724;
    border-style: solid;
}

.arrow-sequence260 {
    border-color: #28a745;
}

/* 상단 방향 가이드 */
.direction-guide260 {
    display: flex;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 10px;
    border: 2px solid #adb5bd;
	width:100%;
}

.guide-item260 {
    display: flex;
    align-items: center;
    gap: 2px 8px;
    font-size: 14px;
    font-weight: bold;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.guide-color260 {
    width: 34px;
    height: 34px;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.guide-arrow260 {
    font-size: 30px;
	font-weight:bold'
    color: #495057;
}


.problem727-container {
    position: relative;
    background: white;
    border: 3px solid #4CAF50;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	width:100%;
}

.pb_num727 {
    position: absolute;
    top: -15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    border: 3px solid white;
}

.color-reference727 {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.reference-title727 {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.reference-row727 {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.reference-row727:last-child {
    margin-bottom: 10px;
}

.color-box727 {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid #333;
}

.number-label727 {
    width: 45px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.color-codes727 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.color-code727 {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.grids-container727 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.grid-section727 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-title727 {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.number-grid727, .color-grid727 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
    border: 3px solid #333;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.grid-cell727 {
    width: 50px;
    height: 50px;
    border: 2px solid #666;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.number-cell727 {
    background: #f8f9fa;
    color: #333;
}

.color-cell727 {
    background: white;
    transition: background-color 0.3s ease;
}

.arrow727 {
    font-size: 36px;
    font-weight: bold;
    color: #FF5722;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

 


 .problem923-container {
    position: relative;
    background: white;
    border: 3px solid #FFF;
    border-radius: 15px;
    padding: 20px 20px 0 20px;
    margin: 5px 0;
 
}

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

.color-table-section923 { width:100%;}

.color-reference923 {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
	width:100%;
}

.reference-title923 {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.reference-row923 {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.reference-row923:last-child {
    margin-bottom: 10px;
}

.color-box923 {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid #333;
}

.number-label923 {
    width: 45px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.color-codes923 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.color-code923 {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.grids-container923 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.grid-section923 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-title923 {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.number-grid923 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    border: 3px solid #333;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.grid-cell923 {
    width: 50px;
    height: 50px;
    border: 2px solid #666;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    position: relative;
}

.paint-cell923 {
    background: white;
    transition: background-color 0.3s ease;
}

.number-overlay923 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 18px;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    z-index: 2;
}

.arrow923 {
    font-size: 36px;
    font-weight: bold;
    color: #FF5722;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}






.problem581-container {
    position: relative;
    background: white;
    border: 1px solid #d1d1d1;
    border-radius: 15px;
    padding: 5px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.pb_num581 {
    position: absolute;
    top: -15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #FF6B6B;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    border: 3px solid white;
}

.instruction581 {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    background: #fff3cd;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #ffeaa7;
}

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

.picture-section581 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.picture-title581 {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
}

.picture-grid581 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
    border: 2px solid #979797;
    border-radius: 8px;
    padding: 5px;
    background: #f8f9fa;
}

.shape-cell581 {
    width: 44px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.shape-cell581.small581 svg {
    transform: scale(0.6);
}

.shape-cell581.large581 svg {
    transform: scale(1.4);
}

.shape-cell581.highlight581 {
    border: 3px solid #ff5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
    animation: blink581 1s infinite;
}

 .problem119-container {
    position: relative;
    background: white;
    border: 3px solid #FF6B6B;
    border-radius: 15px;
    padding: 5px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.pb_num119 {
    position: absolute;
    top: -15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #FF6B6B;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    border: 3px solid white;
}

.instruction119 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    background: #fff3cd;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #ffeaa7;
}

.pictures-container119 {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.picture-section119 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.picture-title119 {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.picture-grid119 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 3px;
    border: 2px solid #939393;
    border-radius: 10px;
    padding: 8px;
    background: #f8f9fa;
}

.shape-cell119 {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.shape-cell119.small119 svg {
    transform: scale(0.7);
}

.shape-cell119.large119 svg {
    transform: scale(1.3);
}

.shape-cell119.highlight119 {
    border: 2px solid #ff5722;
 
}



.direction-guide159 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	width:100%;
}

.guide-item159 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guide-color159 {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.guide-shape159 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.color-shape-container159 {
    position: relative;
    background: white;
    border: 3px solid #4ECDC4;
    border-radius: 20px;
    padding: 10px;
    margin: 3px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
	width:100%;
}

.problem-number159 {
    position: absolute;
    top: -15px;
    left: -10px;
    background: #555;
    color: white;
    font-size: 20px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pattern-row159 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.color-sequence159 {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.color-square159 {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 3px solid #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.color-square159:hover {
    transform: scale(1.05);
}

.shape-sequence159 {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.shape-box159 {
    width: 50px;
    height: 50px;
    border: 3px dashed #bbb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.answer-shape159 {
    border: 3px solid #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: fadeInScale 0.5s ease-in-out;
}




.problem357-container {
     border-radius: 20px;
    padding: 0px;
    margin: 10px auto; /* 중앙 정렬을 위해 auto 추가 */
    position: relative;
    max-width: 700px; /* 최대 너비 설정 */
}
.pb_num357 {
    position: absolute;
    top: -15px;
    left: -10px;
    background: #FF6B6B;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.grids357-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 작은 화면에서 줄 바꿈 */
}
.grid357-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grid357 {
    background: white;
    border: 3px solid #333;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 320px; /* SVG width에 맞춰 조정 */
    height: 380px; /* SVG height에 맞춰 조정 (6줄) */
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid357 svg {
    border-radius: 10px;
    display: block; /* SVG 자체의 여백 제거 */
}
 
/* 호버 효과 */
.problem357-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
/* 그리드 라벨 */
.grid357-section::before {
    content: '';
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}
 
.problem978-container {
 
    border-radius: 20px;
    padding: 0px;
    margin: 10px auto; /* 중앙 정렬을 위해 auto 추가 */
    position: relative;
    max-width: 760px; /* 가로 칸이 늘었으므로 최대 너비 조정 */
}
.pb_num978 {
    position: absolute;
    top: -15px;
    left: -10px;
    background: #FF6B6B;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.grids978-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 작은 화면에서 줄 바꿈 */
}
.grid978-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grid978 {
    background: white;
    border: 3px solid #333;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 320px; /* SVG width에 맞춰 조정 */
    height: 380px; /* SVG height에 맞춰 조정 (8줄) */
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid978 svg {
    border-radius: 10px;
    display: block; /* SVG 자체의 여백 제거 */
}
 
/* 호버 효과 */
.problem978-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
/* 그리드 라벨 */
.grid978-section::before {
    content: '';
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}
 
.problem504-container {
    border-radius: 20px;
    padding: 0px;
    margin: 10px auto; /* 중앙 정렬을 위해 auto 추가 */
    position: relative;
    max-width: 760px; /* 문제 + 정답 그리드 너비 */
}
.pb_num504 {
    position: absolute;
    top: -15px;
    left: -10px;
    background: #FF6B6B;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.grids504-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 작은 화면에서 줄 바꿈 */
}
.grid504-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grid504 {
    background: white;
    border: 3px solid #333;
    border-radius: 15px;
    padding: 0px; /* SVG가 직접 border를 가짐으로 패딩 제거 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px; /* SVG width에 맞춰 조정 */
    height: 360px; /* SVG height에 맞춰 조정 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* SVG가 넘치는 것을 방지 */
}
.grid504.empty-grid {
    /* 빈 칸 박스에는 화살표가 없어야 하므로, 만약 generateProblemGrid504에서 화살표를 그렸다면 여기서 숨김 */
}
.grid504 svg {
    border-radius: 10px;
    display: block; /* SVG 자체의 여백 제거 */
}
 
/* 그리드 라벨 */
.grid504-section::before {
    content: '';
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}
 