.warning-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff5757, #ff2e2e); /* Catchy Red Gradient */
    color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
    border-left: 8px solid #ff0000;
    z-index: 99999;
    animation: fadeIn 0.4s ease-in-out;
}

/* Mobile-Friendly Full-Screen Mode */
@media (max-width: 768px) {
    .warning-box {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
}

/* Title */
.warning-box strong {
    font-size: 22px;
    color: #fff;
    display: block;
    margin-bottom: 15px;
}

/* Warning Message */
.warning-box p {
    font-size: 18px;
    color: #fff;
    line-height: 1.6;
    max-width: 90%;
}

/* Button */
.warning-box button {
    background: #fff;
    color: #ff2e2e;
    border: none;
    padding: 14px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

/* Hover Effect for Button */
.warning-box button:hover {
    background: #28a745; /* Green when hovered */
    color: white;
    transform: scale(1.05);
}

/* Smooth Fade-in Animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translate(-50%, -60%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* Additional pulse effect for extra attention */
@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 15px 40px rgba(255, 0, 0, 0.8); }
    100% { box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5); }
}

.warning-box:hover {
    animation: pulse 2s infinite;
}