.image-match-game {
    text-align: center;
}

.image-match-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.image-match-hint {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.image-match-example{
color: #777;
font-size: 13px;
}

.image-match-sentence-area {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-match-selected-words {
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #e9ecef;
    border-radius: 15px;
    border: 2px dashed #667eea;
}

.image-match-available-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.image-match-word {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    user-select: none;
}

.image-match-word.available:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.image-match-word.available:active {
    transform: translateY(0);
}

.image-match-word.used {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.5;
}

.image-match-word.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
}

.image-match-word.selected:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.image-match-feedback {
    min-height: 0;
    margin: 10px 0;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    display: none;
}

.image-match-feedback.show {
    display: block;
}

.image-match-feedback.correct {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    animation: correctPulse 0.6s ease-in-out;
}

.image-match-feedback.wrong {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    animation: wrongShake 0.6s ease-in-out;
}

.image-match-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-match-clear-btn,
.image-match-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.image-match-clear-btn:hover,
.image-match-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.image-match-clear-btn:active,
.image-match-submit-btn:active {
    transform: translateY(0);
}

.image-match-clear-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

@keyframes correctPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes wrongShake {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-10px);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(-10px);
    }
    80% {
        transform: translateX(10px);
    }
}

@media (max-width: 1024px) {
    .image-match-image {
        max-width: 250px;
        max-height: 250px;
    }
    
    .image-match-hint {
        font-size: 18px;
    }
    
    .image-match-word {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .image-match-clear-btn,
    .image-match-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
   
    
    .image-match-image {
        max-width: 200px;
        max-height: 200px;
    }
    
    .image-match-hint {
        font-size: 16px;
    }
    
    .image-match-sentence-area {
        padding: 15px;
    }
    
    .image-match-selected-words,
    .image-match-available-words {
        gap: 8px;
    }
    
    .image-match-word {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    .image-match-feedback {
        font-size: 16px;
    }
    
    .image-match-buttons {
        gap: 10px;
    }
    
    .image-match-clear-btn,
    .image-match-submit-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .image-match-image {
        max-width: 160px;
        max-height: 160px;
    }
    
    .image-match-hint {
        font-size: 14px;
    }
    
    .image-match-sentence-area {
        padding: 10px;
    }
    
    .image-match-selected-words {
        min-height: 50px;
        padding: 8px;
    }
    
    .image-match-available-words {
        gap: 6px;
    }
    
    .image-match-word {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
    
    .image-match-feedback {
        font-size: 14px;
    }
    
    .image-match-buttons {
        gap: 8px;
    }
    
    .image-match-clear-btn,
    .image-match-submit-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .image-match-image {
        max-width: 140px;
        max-height: 140px;
    }
    
    .image-match-hint {
        font-size: 13px;
    }
    
    .image-match-word {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .image-match-feedback {
        font-size: 12px;
    }
    
    .image-match-clear-btn,
    .image-match-submit-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
}
