/* Styles for the background overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, 0.192);
}

/* Styles for the modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 10px;
    max-width: 450px;
    border-radius: 10px;
    background-color: var(--light);
    box-shadow: 0px 0px 3px var(--box-shadow);
    animation: fadeIn 0.2s ease-in-out;
    text-align: center;
}

.modal > p {
    margin-top: -5px;
}

.modal > h3 {
    margin-top: -13px;
    margin-bottom: 5px;
}

.modal .text-box {
    width: 90%;
    min-width: 200px;
    height: 35px;
    margin: 7px;
    padding-left: 10px;
    border-radius: 10px;
    border: 0.1px solid var(--grey);
    box-shadow: 0px 0px 2px var(--box-shadow);
    outline: 0;
}

.modal .area {
    max-width: 90%;
    min-width: 90%;
    min-height: 100px;
    max-height: 150px;
    margin: 7px;
    margin-bottom: -5px;
    padding-left: 10px;
    padding-top: 7px;
    border-radius: 10px;
    border: 0.1px solid var(--grey);
    box-shadow: 0px 0px 2px var(--box-shadow);
    outline: 0;
}

.modal .drop-down {
    width: 93%;
    min-width: 200px;
    height: 38px;
    margin: 7px;
    padding-left: 10px;
    border-radius: 10px;
    border: 0.1px solid var(--grey);
    box-shadow: 0px 0px 2px var(--box-shadow);
    outline: 0;
}

/* Center align text within the modal */
.modal .center-text {
    text-align: center;
}

.modal .right-text {
    text-align: right;
}

.modal .close-btn {
    border: none;
    background-color: transparent;
    color: var(--orange);
    cursor: pointer;
}

.modal .tiny {
    color: var(--grey);
    font-size: 11px;
}

/* Animation for modal fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}