* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* Standard */
}




select, button {
    width: 100%;
    padding: clamp(10px, 2vw, 12px);
    margin: 5px 0;
    border: none;
    border-radius: 10px;
    font-size: clamp(0.9em, 2.5vw, 1em);
    background: #2ecc71;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

select:hover, button:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.flashcard-container {
    text-align: center;
    margin: clamp(20px, 5vw, 30px) 0;
    padding: 10px;
}

.flashcard {
    position: relative;
    width: clamp(250px, 85vw, 450px); /* Mobil va desktop uchun moslashuvchan */
    height: clamp(150px, 50vw, 300px);
    margin: 0 auto;
    perspective: 1000px;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: clamp(1em, 3.5vw, 1.8em);
    padding: clamp(10px, 2vw, 20px);
    text-align: center;
    transition: transform 0.6s ease, box-shadow 0.3s;
}

.front {
    transform: rotateY(0deg);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    color: #2c3e50;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.flashcard.flipped .front {
    transform: rotateY(180deg);
}

.flashcard.flipped .back {
    transform: rotateY(0deg);
}

.controls {
    margin-top: clamp(15px, 3vw, 25px);
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
}

.controls button {
    padding: clamp(8px, 2vw, 12px) clamp(15px, 3vw, 25px);
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.3s;
}

#correct-btn {
    background: linear-gradient(90deg, #27ae60, #219653);
}

#wrong-btn {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

#correct-btn:hover {
    background: linear-gradient(90deg, #219653, #1b7a43);
}

#wrong-btn:hover {
    background: linear-gradient(90deg, #c0392b, #992d22);
}

.progress {
    font-size: clamp(1em, 3vw, 1.2em);
    color: #2c3e50;
    margin-top: 20px;
    text-align: center;
}

.reset-btn {
    background: linear-gradient(90deg, #3498db, #2980b9);
    padding: clamp(8px, 2vw, 12px) clamp(15px, 3vw, 25px);
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    border-radius: 25px;
    margin-top: 20px;
    transition: transform 0.2s, background 0.3s;
    display: none;
}

.reset-btn:hover {
    background: linear-gradient(90deg, #2980b9, #1f6391);
    transform: translateY(-2px);
}

.missed-words {
    margin-top: clamp(15px, 3vw, 20px);
    padding: clamp(10px, 2vw, 15px);
    background: #f9ebeb;
    border-radius: 10px;
}

.missed-words h3 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: clamp(1.2em, 3vw, 1.5em);
}

.missed-words ul {
    list-style-type: none;
    padding: 0;
}

.missed-words li {
    margin: clamp(5px, 1.5vw, 10px) 0;
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    color: #333;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    .filter-form {
        gap: 10px;
    }
    .flashcard-container {
        margin: 20px 0;
    }
    .controls {
        flex-direction: column;
        gap: 10px;
    }
    .controls button {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    .progress {
        font-size: 1em;
    }
    .reset-btn {
        width: 100%;
        max-width: 200px;
        margin: 20px auto 0;
        display: block;
    }
}
/* Custom gradientlar */
.bgGradientLight {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.bgGradientBlue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Animatsiya qo‘shish */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}