﻿body.modal-open {
    overflow: hidden;
}

#mobileModal, #clusterModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    left: 0;
    top: 0;
    width: 100% !important; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    background-color: rgba(0,0,0,0.4) !important;
}

/* Modal Content/Box */
    #mobileModal .modal-content,
    #clusterModal .modal-content {
        min-height: calc(100% - 52px);
        width: 80% !important;
        background-color: white;
        padding: 0 20px !important;
        margin-top: 52px !important;
        border: none;
        max-width: 1650px;
        -webkit-animation-name: animateleft;
        -webkit-animation-duration: 0.4s;
        margin: 0px;
        position: relative;
        border-radius: 0;
    }

/* The Close Button */
    #mobileModal .close,
    #clusterModal .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#mobileModal .modalSearchBar,
#clusterModal .modalSearchBar {
    background-color: #f4f6f9;
    padding: 10px 15px;
    margin: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modalHeight {
    height: 100vh;
}

/* Add Animation */
@-webkit-keyframes animateleft {
    from {
        left: -300px;
        opacity: 0
    }

    to {
        left: 0;
        opacity: 1
    }
}

@keyframes animateleft {
    from {
        left: -300px;
        opacity: 0
    }

    to {
        left: 0;
        opacity: 1
    }
}
