/* Styling for centered max size notification */
.max-size-notification {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid #ddd;
    border-left: 4px solid #f0ad4e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    max-width: 400px;
    width: 90%;
    z-index: 1500;
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

.max-size-notification.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out;
}

.max-size-notification-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #e67e22;
}

.max-size-notification-title::before {
    content: "⚠️";
    margin-right: 8px;
}

.max-size-notification-message {
    line-height: 1.5;
    margin-bottom: 20px;
}

.max-size-notification-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    transition: background-color 0.2s;
}

.max-size-notification-button:hover {
    background-color: #3a7bc8;
}

/* Modal overlay to prevent interaction with the page while notification is shown */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

.notification-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out;
}