/* CSS for Worksheet 32 - Time (Reading Clocks) - Optimized */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

.problem-box {
    display: inline-block;
    width: 45%;
    margin: 5px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px 10px 5px 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    vertical-align: top;
    position: relative;
    font-family: 'Noto Sans KR', sans-serif;
}

.pb_num {
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    background-color: #f0f0f0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 5;
    font-family: 'Noto Sans KR', sans-serif;
}

.clock-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.question-text {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.answer-input-area {
    margin-top: 10px;
    font-size: 17px;
    font-family: 'Noto Sans KR', sans-serif;
}

.input-underline {
    display: inline-block;
    width: 35px;
    border-bottom: 2px solid #333;
    margin: 0 4px;
    height: 22px;
    vertical-align: bottom;
}

.answer-text {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #e67e22;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Digital Clock Styles */
.digital-clock-box {
    background-color: #fff9c4;
    border: 4px solid #ffb74d;
    border-radius: 12px;
    padding: 8px 20px;
    display: inline-block;
    box-shadow: 0 3px 0 #f57c00;
}

.digital-time {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    font-weight: bold;
    color: #3e2723;
    letter-spacing: 2px;
}

.hint-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    font-family: 'Noto Sans KR', sans-serif;
}

.input-box {
    display: inline-block;
    width: 35px;
    height: 26px;
    border: 1px solid #333;
    vertical-align: middle;
    margin: 0 4px;
}

.answer-val {
    color: #e67e22;
    font-weight: 700;
    font-size: 22px;
    margin: 0 4px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Clock Description Styles */
.item-36-box {
    width: 90%;
    max-width: 600px;
    text-align: left;
    padding: 15px;
}

.desc-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.clock-side {
    flex: 0 0 140px;
}

.text-side {
    flex: 1;
    font-size: 17px;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
}

.desc-line {
    margin-bottom: 6px;
    word-break: keep-all;
    font-family: 'Noto Sans KR', sans-serif;
}

.desc-num {
    font-weight: 700;
    color: #333;
    font-size: 19px;
}

/* Item 37 Styles */
.time-text-display {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 12px 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
    min-width: 140px;
}

/* Matching Game Styles */
.item-39-box {
    width: 95%;
    max-width: 800px;
    padding: 15px;
    text-align: left;
}

.matching-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.matching-game-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 15px;
}

.match-col {
    width: 30%;
    display: flex;
    flex-direction: column;
}

.match-item {
    height: 45px;
    margin-bottom: 8px;
    border: 2px solid #ccc;
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    background-color: #fff;
    position: relative;
    box-sizing: border-box;
}

.match-text {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.match-text.digital {
    font-family: 'Courier New', monospace;
    font-size: 18px;
}

.match-dot {
    width: 9px;
    height: 9px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.right-dot {
    right: -4px;
}

.left-dot {
    left: -4px;
}

.right-item {
    justify-content: flex-end;
}

/* Multiple Choice Clock */
.item-40-box {
    width: 45%;
    text-align: center;
    border: 3px solid #FFCC80;
    margin: 5px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px 10px 10px 10px;
}

.mc-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px;
}

.options-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 130px;
}

.mc-option {
    border: 3px solid #ddd;
    padding: 10px 0;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s;
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #555;
    box-shadow: 0 3px 0 #ddd;
}

@media (max-width: 600px) {
    .desc-container {
        flex-direction: column;
        text-align: center;
    }

    .item-36-box {
        text-align: center;
    }

    .matching-game-container {
        flex-direction: column;
        gap: 15px;
    }

    .match-col {
        width: 100%;
    }
}