.flashcard-container {
    perspective: 1000px;
    margin: 20px auto;
    max-width: 600px;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 300px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

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

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

.flashcard-front {
    background: linear-gradient(135deg, #5b2a86 0%, #7785ac 100%);
    color: white;
}

.flashcard-back {
    background: linear-gradient(135deg, #7785ac 0%, #9ac6c5 100%);
    color: white;
    transform: rotateY(180deg);
}

.flashcard-content {
    font-size: 1.5rem;
    text-align: center;
    word-wrap: break-word;
}

.flashcard-label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: bold;
}

.flashcard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.topic-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.admin-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.btn-admin {
    font-size: 0.875rem;
}

.quiz-card {
    transition: transform 0.2s;
}

.quiz-card:hover {
    transform: translateY(-2px);
}

.definition-text {
    font-size: 1.1rem;
    line-height: 2rem;
    display: inline;
}

.blank-input {
    display: inline-block;
    width: 120px;
    padding: 4px 8px;
    margin: 0 4px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.blank-input:focus {
    outline: none;
    border-color: #5b2a86;
    box-shadow: 0 0 0 3px rgba(91, 42, 134, 0.1);
}

.blank-input.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.blank-input.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.quiz-question {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #5b2a86;
}

.feedback {
    font-weight: bold;
    margin-top: 10px;
}

/* Custom color palette buttons */
.btn-primary {
    background-color: #360568 !important;
    border-color: #360568 !important;
}

.btn-primary:hover {
    background-color: #5b2a86 !important;
    border-color: #5b2a86 !important;
}

.btn-info {
    background-color: #7785ac !important;
    border-color: #7785ac !important;
}

.btn-info:hover {
    background-color: #5b2a86 !important;
    border-color: #5b2a86 !important;
}

.btn-success {
    background-color: #9ac6c5 !important;
    border-color: #9ac6c5 !important;
    color: #212529 !important;
}

.btn-success:hover {
    background-color: #7785ac !important;
    border-color: #7785ac !important;
    color: white !important;
}

.btn-warning {
    background-color: #a5e6ba !important;
    border-color: #a5e6ba !important;
    color: #212529 !important;
}

.btn-warning:hover {
    background-color: #9ac6c5 !important;
    border-color: #9ac6c5 !important;
}

.btn-outline-secondary:hover {
    background-color: #7785ac !important;
    border-color: #7785ac !important;
    color: white !important;
}
