.flashcard-icon, .exercise-icon {
    display: inline-flex !important; /* Use inline-flex to keep the icon inline but also make it a flex container */
    border-radius: 100px;
    height: 24px;
    width: 24px;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
    position: relative; /* Ensure the tooltip is positioned relative to this container */
}
.flashcard-icon {
    background-color: #d9f1fb;
}
.exercise-icon {
    background-color: #FEE3CD;
}

.flashcard-icon svg {
    transform: rotate(90deg); /* Rotate 90 degrees */
}

.flashcard-icon:hover {
    cursor: pointer;
    background-color: #bae9fc;
}
.exercise-icon:hover {
    cursor: pointer;
    background-color: #F8B496;
}

/* Tooltip (hidden by default) */
.flashcard-icon::after, .exercise-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 10px;
    font-size: 14px;
    border-radius: 12px;
    font-family: 'Inter Tight';
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.flashcard-icon::after {
    border: 3px solid #042A39;
    background-color: #D9F1FB;
    color: #042A39;
}
.exercise-icon::after {
    border: 3px solid #7C2A04;
    background-color: #FEE3CD;
    color: #7C2A04;
}

/* Show the tooltip on hover */
.flashcard-icon:hover::after, .exercise-icon:hover::after {
    opacity: 1; /* Make tooltip visible */
    visibility: visible; /* Make tooltip visible */
}

/* Lightbox background (blue) */
.flashcard-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    z-index: 10000; /* Ensure the content appears on top */
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(50px);
}

/* Content inside the lightbox (flashcard and close button) */
.flashcard-lightbox-content {
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    position: relative;
    max-width: 80%;
    max-height: 80%;
    z-index: 1000;
}

/* Close button */
.close-btn {
    display: none;
    line-height: 1em;
    color: #959595;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    z-index: 1001;
    align-self: end;
    margin-bottom: 10px;
}
.close-btn svg {
    width: 28px;
    height: 28px;
    transition: all 200ms;
}
.close-btn svg:hover {
    color: #323232;
}
.flashcard-container {
    display: inline-flex;
}
.flashcard-header {
    font-size: 34px !important;
    color: #191919 !important;
    margin-bottom: 0 !important;
    letter-spacing: -1px;
}
.flashcard-header-outer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px !important;
}
.flashcard-header-outer svg {
    transform: rotate(90deg);
    width: 36px;
    height: 36px;
}

.flashcard-content {
    width: 100%;
}