/* Body class when network transition is active */
body.network-transition-active {
    overflow: hidden;
}

.network-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    z-index: 99999; /* Extremely high z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, background-color 0.8s ease, visibility 0s linear 0.8s;
    pointer-events: none; /* Don't block clicks when inactive */
}

.network-transition-overlay.active {
    pointer-events: all; /* Block all clicks when active */
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.95); /* Almost completely black for better stacking effects */
    transition: opacity 0.8s ease, background-color 0.8s ease, visibility 0s;
}

.network-connection-message {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    opacity: 1;
    letter-spacing: 0.5px;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 85, 184, 0.3);
}

.network-transition-overlay.active .network-connection-message {
    opacity: 1;
    transform: translateY(0);
}

/* Style for the message text */
.message-text {
    color: white;
    position: relative;
}

/* Add blue glow to text */
.message-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #0055b8, transparent);
    opacity: 0.7;
    animation: pulse 2s infinite;
}

/* Simple clean transition styles */
.transition-title {
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.transition-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.connecting-dots {
    display: inline-block;
    position: relative;
    width: 10px;
    text-align: left;
}

.connecting-dots:after {
    content: '...';
    position: absolute;
    left: 0;
    width: 0;
    opacity: 1;
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Removed progress bar for simpler design */