body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

#dialog-box {
    background-color: #333;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 20px;
    width: 320px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    animation: floatIn 0.5s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes floatIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

#question {
    font-size: 18px;
    margin-bottom: 20px;
}

.buttons {
    position: relative;
    height: 100px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#yes-button {
    left: 20px;
    bottom: 10px;
    position: absolute;
}

/* тряска кнопки */
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, 2px); }
    100% { transform: translate(0, 0); }
}

#no-button.shake {
    animation: shake 0.3s infinite;
}
#no-button {
    position: fixed; /* чтобы могла бегать по всему экрану */
    top: 50%;
    left: 50%;
    z-index: 1000;
}

/* тряска кнопки */
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, 2px); }
    100% { transform: translate(0, 0); }
}

#no-button.shake {
    animation: shake 0.3s infinite;
}
