.game-3-section {
    font-family: 'Arial', sans-serif;
}

/* Images Container */
#images-container {
    min-height: 150px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.draggable-image {
    width: 150px;
    height: 150px;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
}

.draggable-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.draggable-image.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.draggable-image.correct img {
    border-color: #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.draggable-image.incorrect img {
    border-color: #dc3545;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

@keyframes shakeAnimation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.draggable-image.incorrect {
    animation: shakeAnimation 0.4s ease-in-out;
}

/* Label Boxes */
.label-boxes {
    margin-top: 2rem;
}

.label-box {
    height: 120px;
    background-color: #6a1b9a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.label-box.highlight {
    background-color: #9c27b0;
}

.label-box.matched {
    visibility: hidden;
    pointer-events: none;
}

/* Floating label for correct matches */
.floating-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.label-content {
    text-align: center;
    color: white;
}

.label-content h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: bold;
}

/* Tutorial Steps */
.tutorial-steps .step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tutorial-steps .number {
    width: 30px;
    height: 30px;
    background-color: #6a1b9a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Progress Bar */
.progress-bar {
    background-color: #6a1b9a;
    transition: width 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .draggable-image {
        width: 120px;
        height: 120px;
    }

    .label-box {
        height: 100px;
    }

    .floating-label {
        font-size: 0.75rem;
        top: -25px;
        padding: 3px 8px;
    }

    .label-content h4 {
        font-size: 0.75rem;
    }
}

/* Animation for correct matches */
@keyframes correctMatch {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.correct-match {
    animation: correctMatch 0.5s ease;
}

/* Confetti container for success message */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
} 