/* Lesson 5 Specific Styles - Number Bonds */

.number-bond {
    position: relative;
    width: 220px;
    height: 160px;
}

.bond-circle {
    position: absolute;
    border: 3px solid #000;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 600;
    z-index: 2;
}

.bond-big {
    width: 70px;
    height: 70px;
    left: 10px;
    top: 45px;
}

.bond-small {
    width: 60px;
    height: 60px;
    right: 10px;
}

.bond-small.top {
    top: 0;
}

.bond-small.bottom {
    bottom: 0;
}

.bond-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Magic Tracing */
.bond-dotted {
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
    color: transparent;
    -webkit-text-stroke: 2px #ccc;
    cursor: pointer;
    transition: color 0.5s ease, -webkit-text-stroke 0.5s ease;
    user-select: none;
    position: relative;
}

.bond-dotted.traced {
    color: #2c2c2c;
    -webkit-text-stroke: 0px transparent;
}

.trace-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.trace-wrapper.untraced::before {
    content: '👆';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    pointer-events: none;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

/* Practice Row Layout */
.practice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 2px dashed #eee;
}

.objects-area {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 3rem;
    max-width: 350px;
    align-items: center;
}

.obj-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 10px;
}

/* Input boxes inside circles */
.bond-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 2.2rem;
    font-family: inherit;
    font-weight: 600;
    color: #222;
    outline: none;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.bond-input:focus {
    background-color: rgba(175, 82, 222, 0.1);
}

.bond-circle.correct {
    border-color: #34c759;
    background-color: rgba(52, 199, 89, 0.1);
}
.bond-circle.wrong {
    border-color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.1);
    animation: shake 0.4s;
}

/* Checkmark indicator for each row */
.row-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s;
}

.row-status.done {
    background-color: #34c759;
}

@media (max-width: 600px) {
    .practice-row {
        flex-direction: column;
        gap: 20px;
    }
    .objects-area {
        justify-content: center;
    }
}
