/* ============================================================
   FlipDeck -- Frontend Styles  v1.0.8
   ============================================================ */

.fd-wrapper {
    font-family: inherit;
    max-width: 100%;
    box-sizing: border-box;
    padding: 4px 0;
}

.fd-track {
    position: relative;
}

.fd-scene {
    display: none;
}

.fd-scene.fd-active {
    display: block;
}

/* ============================================================
   Card: fixed height container. Both faces always overlap.
   ============================================================ */

.fd-card {
    position: relative;
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================================
   Faces: both absolutely positioned, full size.
   Crossfade via opacity only -- no movement, no height change.
   ============================================================ */

.fd-face {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    padding: 18px 20px 14px !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.4s ease;
    background-clip: padding-box;
}

.fd-face--a {
    opacity: 1;
    pointer-events: auto !important;
    z-index: 2;
}

.fd-face--b {
    opacity: 0;
    pointer-events: none !important;
    z-index: 1;
}

.fd-card.is-flipped .fd-face--a {
    opacity: 0;
    pointer-events: none !important;
    z-index: 1;
}

.fd-card.is-flipped .fd-face--b {
    opacity: 1;
    pointer-events: auto !important;
    z-index: 2;
}

/* ============================================================
   Content
   ============================================================ */

.fd-label {
    font-size: 2em !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    color: #fff !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 8px;
    margin: 0 0 12px 0 !important;
    flex-shrink: 0;
}

.fd-text {
    font-size: 1.05em;
    line-height: 1.55;
    color: #fff !important;
    margin: 0;
    flex: 1;
    overflow: auto;
}

.fd-source {
    font-size: 0.72em;
    line-height: 1.35;
    opacity: 0.82;
    font-style: italic;
    color: #fff !important;
    margin: 8px 0 0 0;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* ============================================================
   Face footer: flip / back / next links
   ============================================================ */

.fd-face-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    padding-top: 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.fd-flip-link,
.fd-advance-link {
    font-size: 0.8em !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    cursor: pointer;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.fd-flip-link:hover,
.fd-flip-link:focus,
.fd-advance-link:hover,
.fd-advance-link:focus {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ============================================================
   Empty state
   ============================================================ */

.fd-empty {
    color: #999;
    font-style: italic;
    padding: 8px 0;
}
