/* Random Operator Popup */
.random-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    animation: popIn 0.3s ease-out;
    /* Remove animation property from original */
    transition: opacity 0.2s, transform 0.2s;
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.random-popup img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.random-popup .operator-name {
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

.random-popup .close-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.fading-in {
    animation: popIn 0.3s ease-out forwards;
}

.fading-out {
    animation: popOut 0.2s ease-in forwards;
}

@keyframes popOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .random-popup img {
        width: 150px;
        height: 150px;
    }
    
    .random-popup .operator-name {
        font-size: 1.2rem;
    }
}