/* RETRO CRT ALERT MODAL STYLING */

#alertModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', 'Lucida Console', monospace;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

#alertModalOverlay.fade-out {
    opacity: 0;
}

#alertModalContainer {
    width: 600px;
    background: linear-gradient(45deg, #001100 0%, #000800 100%);
    border: 8px solid #003300;
    border-radius: 25px;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0, 255, 0, 0.1),
        0 0 50px rgba(0, 255, 0, 0.2),
        0 0 100px rgba(0, 255, 0, 0.1);
    overflow: hidden;
}

/* CRT Monitor Effect with scanlines */
#alertModalContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.alertModalScreen {
    background: #000;
    padding: 30px;
    position: relative;
}

#alertModalTitle {
    color: #00ff00;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
    animation: flicker 3s infinite;
}

#alertModalMessage {
    color: #00ff00;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 0 5px #00ff00;
    animation: textGlitch 5s infinite;
}

#alertModalButton {
    display: block;
    width: 100%;
    padding: 12px;
    background: #000;
    color: #00ff00;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Courier New', 'Lucida Console', monospace;
    border: 2px solid #00ff00;
    border-radius: 4px;
    cursor: pointer;
    text-shadow: 0 0 8px #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transition: all 0.2s ease;
    animation: buttonFlicker 4s infinite;
}

#alertModalButton:hover {
    background: #003300;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    transform: scale(1.02);
}

/* Flickering animations for that authentic CRT short circuit look */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    41.99% { opacity: 1; }
    42% { opacity: 0.8; }
    43% { opacity: 1; }
    45.99% { opacity: 1; }
    46% { opacity: 0.6; }
    46.5% { opacity: 1; }
    47% { opacity: 0.9; }
    47.99% { opacity: 1; }
}

@keyframes textGlitch {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 0 5px #00ff00;
    }
    23% { 
        opacity: 0.95; 
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    }
    24% { 
        opacity: 0.85; 
        text-shadow: -2px 0 5px #00ff00;
    }
    25% { 
        opacity: 1; 
        text-shadow: 0 0 5px #00ff00;
    }
}

@keyframes buttonFlicker {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
    67% { 
        opacity: 0.92;
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    }
    68% { 
        opacity: 0.85;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    }
    69% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
}
