﻿/* Overlay to block interaction with the background content (including modals) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
    z-index: 1050; /* Behind the alert modal */
    display: none;
    pointer-events: all; /* Ensure that it blocks interaction */
}

/* Style for the custom alert modal */
.custom-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    z-index: 1051; /* Sit on top of the overlay */

    left: 50%; /* Center horizontally */
    top: 50%; /* Center vertically */
    transform: translate(-50%, -50%); /* Perfect centering */
    /*left: 0;
    top: 0;*/
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background */
    pointer-events: auto;
}

/* Modal content */
.custom-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #f09103;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 5px;
}

/* Modal header style */
.custom-modal-header {
    height: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-title {
    font-size: 24px;
    margin: 0;
    text-align: left; /* Align title to the left */
    flex-grow: 1; /* Ensures the title takes up space */
    text-align-last: center;
}

.custom-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    border: none;
    background: transparent;
}

    .custom-modal-close:hover {
        color: #000; /* Change color on hover */
    }

/* Modal footer style */
.custom-modal-footer {
    text-align: center;
}

.custom-modal-btn {
    padding: 10px 20px;
    background-color: #f09103;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-weight: bold;
    margin-top: 20px;
}

    .custom-modal-btn:hover {
        background-color: #aaa;
        color: black;
    }

#alertMessage {
    margin-top: 15px;
    text-align-last: center;
}

.custom-modal-line {
    border-top: 1px solid #ccc;
    margin: 10px 0;
}
