.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    text-align: center;
    z-index: 9999;
    overflow: visible; /* Ensure the close button is visible even when partially outside */
    padding-right: 30px; /* Make space for the close button */
}

.alert-message {
    font-size: 18px;
    color: #721c24;
    font-weight: bold;
    text-align: center;
}

.close-button {
    position: absolute;
    top: -10px; /* Adjust the button position to be partially outside */
    right: -10px; /* Adjust the button position to be partially outside */
    cursor: pointer;
    color: #721c24; /* Dark red close button */
    font-size: 20px;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 5px;
    width: 30px;
    height: 30px;
    line-height: 18px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.close-button:hover {
    color: #c00; /* Darker red hover effect */
    background-color: #f2f2f2; /* Lighten the background color on hover */
}