.flashcard-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
}

.flashcard {
    width: 300px;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    margin: 20px auto;
}


.flashcard-inner {
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f9fafb;
    padding: 20px;
    flex-direction: column;
}

.flashcard-back {
    transform: rotateY(180deg);
    background: var(--brand-dark);
    color: white;
}




.flashcard-french {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.flashcard-ipa {
    font-size: 16px;
    color: #666;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.flashcard-english {
    font-size: 22px;
}



.flashcard-gender {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 16px;
    opacity: 0.8;
}


.flashcard-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--brand-dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.flashcard-nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.flashcard-nav.left {
    left: 20px;
}

.flashcard-nav.right {
    right: 20px;
}


.hint-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    top: 40px;
    left: 0;
}

.hint-answer {
    font-family: "Noto Sans IPA", "Arial", sans-serif;
    font-style: normal;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 5px;
    opacity: 0.8;
    font-size: 16px;
    margin-top: 8px;
    padding: 5px 10px;
}

.hint-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}


.hint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}