/**
 * Custom Video Player Styles
 * Cross-browser compatible video player controls
 * 
 * This replaces native <video> controls with a fully custom UI
 * to ensure consistent behavior across Chrome, Firefox, Edge, Safari, and iOS Safari.
 */

/* ============================================
   CORE PLAYER CONTAINER
   ============================================ */

.webthinker-video-player {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--webthinker-player-bg, #000);
    overflow: hidden;
    line-height: 1;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Prevent text selection during interactions */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Touch action for mobile */
    touch-action: manipulation;
}

/* Keep layout stable before stream metadata is available */
.webthinker-video-player.webthinker-initial-loading {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

.webthinker-video-player.webthinker-initial-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.04) 8%,
            rgba(255, 255, 255, 0.18) 18%,
            rgba(255, 255, 255, 0.04) 33%
        ),
        #111;
    background-size: 200% 100%;
    animation: webthinker-skeleton-shimmer 1.2s linear infinite;
    pointer-events: none;
}

.webthinker-video-player.container,
.webthinker-video-player-shortcode.container{
    padding: 0;
}


.webthinker-video-player video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--webthinker-player-bg, #000);
    /* Disable native controls */
    pointer-events: none;
}

.webthinker-video-player.webthinker-initial-loading video {
    width: 100%;
    height: 100%;
    opacity: 0;
}

.webthinker-video-player:not(.webthinker-initial-loading) video {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* Re-enable pointer events when needed for click-to-play */
.webthinker-video-player.webthinker-allow-video-click video {
    pointer-events: auto;
    cursor: pointer;
    height: 100%;
    width: 100%;

}

/* Fullscreen video sizing */
.webthinker-video-player:-webkit-full-screen video,
.webthinker-video-player:-moz-full-screen video,
.webthinker-video-player:-ms-fullscreen video,
.webthinker-video-player:fullscreen video,
.webthinker-video-player video:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

/* ============================================
   CONTROL BAR
   ============================================ */

.webthinker-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: linear-gradient(transparent, var(--webthinker-controls-bg, rgba(0, 0, 0, 0.85)));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Show controls on hover or when paused */
.webthinker-video-player:hover .webthinker-controls,
.webthinker-video-player.webthinker-paused .webthinker-controls,
.webthinker-video-player.webthinker-show-controls .webthinker-controls {
    opacity: 1;
}

/* Always show controls on touch devices until user taps elsewhere */
.webthinker-video-player.webthinker-touch-active .webthinker-controls {
    opacity: 1;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.webthinker-progress-container {
    width: 100%;
    padding: 10px 15px 5px;
    cursor: pointer;
}

.webthinker-progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: visible;
    transition: height 0.15s ease;
}

.webthinker-progress-container:hover .webthinker-progress-bar {
    height: 8px;
}

.webthinker-progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    pointer-events: none;
}

.webthinker-progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--webthinker-gold, #F5B505);
    border-radius: 3px;
    pointer-events: none;
}

.webthinker-progress-handle {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--webthinker-gold, #F5B505);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.webthinker-progress-container:hover .webthinker-progress-handle,
.webthinker-video-player.webthinker-seeking .webthinker-progress-handle {
    opacity: 1;
}

.webthinker-progress-container:hover .webthinker-progress-handle {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Seek preview tooltip */
.webthinker-progress-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--webthinker-control-text, #fff);
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.webthinker-progress-container:hover .webthinker-progress-tooltip {
    opacity: 1;
}

/* Disabled progress bar for QR users */
.webthinker-video-player.webthinker-qr-user .webthinker-progress-container {
    cursor: default;
    pointer-events: none;
}

.webthinker-video-player.webthinker-qr-user .webthinker-progress-handle {
    display: none;
}

/* ============================================
   CONTROL BUTTONS ROW
   ============================================ */

.webthinker-controls-row {
    display: flex;
    align-items: center;
    padding: 8px 15px 12px;
    gap: 10px;
}

.webthinker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--webthinker-control-text, #fff);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.webthinker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    line-height: 1;
    pointer-events: none;
}

.webthinker-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.webthinker-icon svg [stroke] {
    vector-effect: non-scaling-stroke;
}

.webthinker-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--webthinker-gold, #F5B505);
}

.webthinker-btn:active {
    transform: scale(0.95);
}

.webthinker-btn:focus {
    outline: none;
}

.webthinker-btn:focus-visible {
    outline: 2px solid var(--webthinker-gold, #F5B505);
    outline-offset: 2px;
}

/* Play/Pause button - slightly larger */
.webthinker-btn-play {
    width: 42px;
    height: 42px;
    font-size: 22px;
}

/* ============================================
   VOLUME CONTROLS
   ============================================ */

.webthinker-volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.webthinker-volume-slider-wrap {
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease;
}

.webthinker-volume-container:hover .webthinker-volume-slider-wrap,
.webthinker-volume-container:focus-within .webthinker-volume-slider-wrap,
.webthinker-video-player.webthinker-volume-active .webthinker-volume-slider-wrap {
    width: 80px;
}

.webthinker-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    margin: 0;
}

.webthinker-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--webthinker-gold, #F5B505);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.webthinker-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.webthinker-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--webthinker-gold, #F5B505);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.webthinker-volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.3);
    height: 4px;
    border-radius: 2px;
}

/* ============================================
   TIME DISPLAY
   ============================================ */

.webthinker-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.webthinker-time-separator {
    opacity: 0.6;
}

/* Spacer to push right controls to end */
.webthinker-spacer {
    flex: 1;
}

/* ============================================
   OVERLAY STATES
   ============================================ */

/* Big play button overlay */
.webthinker-big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid var(--webthinker-control-text, rgba(255, 255, 255, 0.9));
    border-radius: 50%;
    color: var(--webthinker-control-text, #fff);
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 2;
    padding: 0;
}

.webthinker-big-play i {
    display: block;
    line-height: 1;
    pointer-events: none;
}

.webthinker-big-play .webthinker-icon,
.webthinker-play-feedback .webthinker-icon,
.webthinker-error-icon .webthinker-icon {
    width: 1em;
    height: 1em;
}

.webthinker-video-player.webthinker-paused .webthinker-big-play,
.webthinker-video-player.webthinker-ended .webthinker-big-play {
    opacity: 1;
}

.webthinker-big-play:hover {
    background: var(--webthinker-gold, #F5B505);
    border-color: var(--webthinker-gold, #F5B505);
    transform: translate(-50%, -50%) scale(1.1);
}

.webthinker-big-play:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Hide big play for QR users (they can't control playback) */
.webthinker-video-player.webthinker-qr-user .webthinker-big-play {
    display: none;
}

/* Loading spinner overlay */
.webthinker-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 6;
}

.webthinker-video-player.webthinker-buffering .webthinker-loading {
    display: block;
}

.webthinker-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--webthinker-gold, #F5B505);
    border-radius: 50%;
    animation: webthinker-spin 0.8s linear infinite;
}

@keyframes webthinker-spin {
    to { transform: rotate(360deg); }
}

@keyframes webthinker-skeleton-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Error overlay */
.webthinker-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    padding: 20px;
    z-index: 20;
}

.webthinker-video-player.webthinker-error .webthinker-error-overlay {
    display: flex;
}

.webthinker-error-icon {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.webthinker-error-message {
    font-size: 16px;
    margin-bottom: 15px;
    max-width: 300px;
}

.webthinker-error-retry {
    padding: 10px 25px;
    background: var(--webthinker-gold, #F5B505);
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webthinker-error-retry:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 181, 5, 0.4);
}

/* ============================================
   QR USER SPECIFIC STYLES
   ============================================ */

/* Waiting for host overlay */
.webthinker-waiting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 20px;
    z-index: 15;
}

.webthinker-video-player.webthinker-waiting .webthinker-waiting-overlay {
    display: flex;
}

.webthinker-waiting-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.webthinker-waiting-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--webthinker-gold, #F5B505);
    border-radius: 50%;
    animation: webthinker-spin 1s linear infinite;
}

/* Host disconnected state */
.webthinker-video-player.webthinker-host-disconnected .webthinker-waiting-overlay {
    display: flex;
}

.webthinker-host-disconnected .webthinker-waiting-text {
    color: #e74c3c;
}

/* Disable play button for QR users */
.webthinker-video-player.webthinker-qr-user .webthinker-btn-play {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   COUNTDOWN OVERLAY (for sync)
   ============================================ */

.webthinker-countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    z-index: 25;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.webthinker-video-player.webthinker-countdown-active .webthinker-countdown-overlay {
    display: flex;
}

.webthinker-countdown-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--webthinker-gold, #F5B505);
    line-height: 1;
    animation: webthinker-countdown-pulse 1s ease-in-out infinite;
}

.webthinker-countdown-text {
    font-size: 18px;
    margin-top: 15px;
    opacity: 0.9;
}

@keyframes webthinker-countdown-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   FULLSCREEN STYLES
   ============================================ */

.webthinker-video-player:-webkit-full-screen,
.webthinker-video-player:-moz-full-screen,
.webthinker-video-player:-ms-fullscreen,
.webthinker-video-player:fullscreen {
    width: 100%;
    height: 100%;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webthinker-video-player:-webkit-full-screen .webthinker-controls,
.webthinker-video-player:-moz-full-screen .webthinker-controls,
.webthinker-video-player:-ms-fullscreen .webthinker-controls,
.webthinker-video-player:fullscreen .webthinker-controls {
    padding-bottom: 10px;
}

/* iOS Safari fullscreen - uses native fullscreen on video element */
@supports (-webkit-touch-callout: none) {
    .webthinker-video-player video::-webkit-media-controls {
        display: none !important;
    }
}

/* ============================================
   SUBTITLE BUTTON ACTIVE STATE
   ============================================ */

.webthinker-btn-subtitles.webthinker-active,
.webthinker-btn-audio.webthinker-active {
    color: var(--webthinker-gold, #F5B505);
}

.webthinker-subtitle-overlay {
    position: absolute;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%);
    width: min(88%, 820px);
    color: #fff;
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 8;
}

.webthinker-subtitle-overlay.webthinker-visible {
    opacity: 1;
}

.webthinker-subtitle-overlay:empty {
    display: none;
}

.webthinker-subtitle-menu,
.webthinker-audio-menu {
    position: absolute;
    right: 12px;
    bottom: 72px;
    min-width: 180px;
    max-width: min(280px, calc(100% - 24px));
    display: grid;
    gap: 4px;
    padding: 8px;
    background: rgba(12, 15, 21, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    z-index: 12;
}

.webthinker-subtitle-menu[hidden],
.webthinker-audio-menu[hidden] {
    display: none;
}

.webthinker-subtitle-option,
.webthinker-audio-option {
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--webthinker-control-text, #fff);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.webthinker-subtitle-option:hover,
.webthinker-subtitle-option:focus-visible,
.webthinker-audio-option:hover,
.webthinker-audio-option:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    outline: none;
}

.webthinker-subtitle-option.is-active,
.webthinker-audio-option.is-active {
    background: rgba(245, 181, 5, 0.16);
    color: var(--webthinker-gold, #F5B505);
}

.webthinker-video-embed {
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .webthinker-controls-row {
        padding: 6px 10px 10px;
        gap: 6px;
    }

    .webthinker-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .webthinker-btn-play {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .webthinker-time {
        font-size: 11px;
    }

    .webthinker-progress-container {
        padding: 8px 10px 4px;
    }

    .webthinker-volume-container:hover .webthinker-volume-slider-wrap,
    .webthinker-volume-container:focus-within .webthinker-volume-slider-wrap,
    .webthinker-video-player.webthinker-volume-active .webthinker-volume-slider-wrap {
        width: 60px;
    }

    .webthinker-volume-slider {
        width: 60px;
    }

    .webthinker-big-play {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

    .webthinker-countdown-number {
        font-size: 56px;
    }

    .webthinker-countdown-text {
        font-size: 16px;
    }

    .webthinker-subtitle-overlay {
        bottom: 96px;
        width: calc(100% - 20px);
        font-size: 15px;
    }

    .webthinker-subtitle-menu,
    .webthinker-audio-menu {
        right: 10px;
        left: 10px;
        bottom: 78px;
        max-width: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .webthinker-controls {
        opacity: 1;
    }

    .webthinker-video-player.webthinker-playing .webthinker-controls {
        opacity: 0;
    }

    .webthinker-video-player.webthinker-touch-active .webthinker-controls {
        opacity: 1;
    }

    .webthinker-volume-slider-wrap {
        width: 60px !important;
    }

    .webthinker-progress-bar {
        height: 8px;
    }

    .webthinker-progress-handle {
        opacity: 1;
        width: 18px;
        height: 18px;
    }

    .webthinker-btn {
        width: 44px;
        height: 44px;
    }

    .webthinker-btn-play {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   HIDE NATIVE CONTROLS COMPLETELY
   ============================================ */

.webthinker-video-player video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
}

.webthinker-video-player video::-webkit-media-controls-enclosure {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-panel {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-play-button {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-timeline {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-mute-button {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.webthinker-video-player video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.webthinker-video-player video::-moz-media-controls {
    display: none !important;
}

/* ============================================
   CONTROL RESTRICTION INDICATOR
   ============================================ */

.webthinker-control-restriction {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    display: none;
    z-index: 30;
    animation: webthinker-slide-down 0.3s ease-out;
}

.webthinker-video-player.webthinker-show-restriction .webthinker-control-restriction {
    display: block;
}

@keyframes webthinker-slide-down {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ============================================
   DISCLAIMER OVERLAY (positioned for custom player)
   ============================================ */

.webthinker-video-player .video-disclaimer-overlay {
    top: 15px;
    left: 15px;
    z-index: 8;
}

/* ============================================
   SETTINGS/OPTIONS MENU (future expansion)
   ============================================ */

.webthinker-settings-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    min-width: 200px;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 6px;
    overflow: hidden;
    display: none;
    z-index: 35;
}

.webthinker-settings-menu.webthinker-visible {
    display: block;
}

.webthinker-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.webthinker-settings-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in/out for overlays */
.webthinker-fade-in {
    animation: webthinker-fade-in 0.3s ease-out;
}

.webthinker-fade-out {
    animation: webthinker-fade-out 0.3s ease-out;
}

@keyframes webthinker-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes webthinker-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Play icon animation on click */
.webthinker-play-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    pointer-events: none;
    opacity: 0;
    z-index: 4;
}

.webthinker-play-feedback.webthinker-animate {
    animation: webthinker-play-feedback 0.5s ease-out;
}

@keyframes webthinker-play-feedback {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}
