/* Анимация тряски экрана */
@keyframes screen-shake {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-50px, -50px);
    }

    20% {
        transform: translate(50px, 50px);
    }

    30% {
        transform: translate(-50px, 50px);
    }

    40% {
        transform: translate(50px, -50px);
    }

    50% {
        transform: translate(-50px, -50px);
    }

    60% {
        transform: translate(50px, 50px);
    }

    70% {
        transform: translate(-50px, 50px);
    }

    80% {
        transform: translate(50px, -50px);
    }

    90% {
        transform: translate(-50px, -50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.body-shaking {
    animation: screen-shake 0.5s cubic-bezier(.36, .07, .19, .97) both infinite;
    /* Тряска в течение 1 секунды */
    /* animation: screen-shake 0.5s cubic-bezier(.36,.07,.19,.97) both; */
    /* Только один раз */
    animation-iteration-count: 2;
    /* Повторить дважды за 1 секунду, чтобы эффект был более заметным */
    animation-duration: 1s;
    /* Общая длительность анимации тряски */
}


/* Существующие стили */
@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes intense-blink {
    0% {
        opacity: 1;
        transform: scale(1.1);
    }

    25% {
        opacity: 0.1;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    75% {
        opacity: 0.2;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes glowing-red {
    0% {
        box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 15px 7px rgba(255, 0, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.5);
    }
}

.blinking-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: yellow;
    border-radius: 50%;
    animation: blink 1s infinite;
    box-shadow: 0 0 50px 30px rgb(255, 0, 0);
}



.static-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 200, 200, 0.377);
    border-radius: 50%;
    /* box-shadow: 0 0 50px 30px rgb(255, 0, 0); */
}
.static-dot.green{
    background-color: rgb(0, 255, 0);
    box-shadow: 0 0 20px 20px rgb(0, 143, 0);
}

.flash-effect {
    position: fixed;
    background-color: red;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

@keyframes dot-flash-out {
    0% {
        opacity: 1;
        box-shadow: 0 0 50px 30px rgba(255, 0, 0), 0 0 40px 20px rgba(255, 0, 0, 0.5);
        transform: translate(-50%, -50%) scale(0.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
        box-shadow: 0 0 3px 3px rgb(255, 0, 0);
    }
}

.flash-effect.active {
    animation: dot-flash-out 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
}

@keyframes full-screen-sequence {

    /* Белая вспышка */
    0% {
        background-color: white;
        opacity: 1;
    }

    2% {
        background-color: white;
        opacity: 1;
    }

    /* Желтая вспышка */
    3% {
        background-color: yellow;
        opacity: 1;
    }

    5% {
        background-color: yellow;
        opacity: 1;
    }

    /* Красная вспышка */
    6% {
        background-color: red;
        opacity: 1;
    }

    8% {
        background-color: red;
        opacity: 1;
    }

    /* Черный экран на 2 секунды */
    9% {
        background-color: black;
        opacity: 1;
    }

    59% {
        background-color: black;
        opacity: 1;
    }

    /* Затухание черного экрана */
    100% {
        background-color: black;
        opacity: 0;
    }
}

.full-screen-overlay.active-sequence {
    animation: full-screen-sequence 4s forwards;
    /* Общая длительность 4 секунды */
}


@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fast-yellow-blink {
    0%, 100% { 
        opacity: 1;
        background-color: yellow;
        box-shadow: 0 0 30px 30px rgba(255, 255, 0, 0.8);
    }
    50% { 
        opacity: 0.2;
        background-color: #ffdd00;
        box-shadow: 0 0 10px 5px rgba(255, 221, 0, 0.6);
    }
}










/* Стили для модального окна */
        #warning-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: #8b0000;
            /* Темно-красный */
            border-radius: 20px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            position: relative;
            border: 3px solid #ff5252;
            color: white;
            text-align: center;
        }

        .close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 28px;
            color: #ff9e9e;
            cursor: pointer;
            transition: all 0.3s;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
        }

        .close-button:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .modal-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .warning-text {
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 30px;
            padding: 0 10px;
        }

        .confirm-button {
            background-color: #ff5252 !important;
            color: white !important;
            font-weight: bold;
            font-size: 18px;
            padding: 12px 40px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .confirm-button:hover {
            background-color: #ff0000;
            transform: scale(1.05);
        }

        .bomb-icon {
            font-size: 40px;
            margin-bottom: 15px;
            display: block;
        }