.math-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.number-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    min-width: 100px;
    max-width: 180px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;

}

.count-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s ease;
    animation: imagePopIn 0.3s ease backwards;
}

.count-image:hover {
    transform: scale(1.1);
}

/* Képek megjelenési animációja */
@keyframes imagePopIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Késleltetett animáció minden képre */
.count-image:nth-child(1) {
    animation-delay: 0ms;
}

.count-image:nth-child(2) {
    animation-delay: 50ms;
}

.count-image:nth-child(3) {
    animation-delay: 100ms;
}

.count-image:nth-child(4) {
    animation-delay: 150ms;
}

.count-image:nth-child(5) {
    animation-delay: 200ms;
}

.count-image:nth-child(6) {
    animation-delay: 250ms;
}

.count-image:nth-child(7) {
    animation-delay: 300ms;
}

.count-image:nth-child(8) {
    animation-delay: 350ms;
}

.count-image:nth-child(9) {
    animation-delay: 400ms;
}

.count-image:nth-child(10) {
    animation-delay: 450ms;
}

.operator-slot {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #f7fafc, #e2e8f0);
    color: #a0aec0;
    border: 4px dashed #a0aec0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

.operator-slot.highlight {
    border-color: #48bb78;
    background: linear-gradient(145deg, #c6f6d5, #9ae6b4);
    box-shadow: 0 0 20px rgba(72, 187, 120, 0.5);
    transform: scale(1.05);
}

.operator-slot.filled {
    border-style: solid;
    border-color: #48bb78;
    background: linear-gradient(145deg, #c6f6d5, #68d391);
}

.operator-tray {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.operator-piece {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 3px solid #cbd5e0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a5568;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    user-select: none;
}

.operator-piece:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1);
}