/* Splash Screen Styles - Similar to loading indicator overlay */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none; /* Allow clicks to pass through */
}

.splash-bubble {
    background-color: white;
    color: #002244;
    border: 3px solid #002244;
    border-radius: 20px;
    padding: 30px 40px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    word-wrap: break-word;
    line-height: 1.3;
    min-width: 300px;
    max-width: 80%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Speech bubble tail pointing bottom-left */
.splash-bubble::before,
.splash-bubble::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 40px;
    width: 0;
    height: 0;
    border-style: solid;
}

.splash-bubble::before {
    border-width: 20px 20px 0 0;
    border-color: #002244 transparent transparent transparent;
}

.splash-bubble::after {
    border-width: 17px 17px 0 0;
    border-color: white transparent transparent transparent;
    bottom: -15px;
    left: 43px;
    z-index: 1;
}

/* Animation classes */
.splash-fade-in {
    animation: splashFadeIn 0.3s ease-out forwards;
}

.splash-fade-out {
    animation: splashFadeOut 0.3s ease-in forwards;
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .splash-bubble {
        font-size: 24px;
        padding: 25px 30px;
        max-width: 90%;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .splash-bubble {
        font-size: 20px;
        padding: 20px 25px;
        max-width: 95%;
        min-width: 200px;
    }
}
