/* The Modal (background) */
.mainIndexModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top was 10000 (JFM mod) */
    left: 0;
    top: 0;
    width: 100%; /* 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 */
}

/* Modal Content/Box */
.mainIndexModal-content {
    background-color:  #fefefe; /* #ff0000; #fefefe; */
    margin: 15% auto; /* 15% from the top and centered */
    display: inline-block;
    max-width:400px;
    padding: 0px;
    border: 1px solid #888;
    float:right; /* width: 80%;*/
    position: relative;
    z-index: 1000; /* JFM to try to fix getresponse overlay */
    animation-name: modalIndex_animatetop;
    animation-duration: 0.5s
}

/* The Close Button */
.mainIndexClose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin:20px;
}

.mainIndexClose:hover,
.mainIndexClose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Position index button at bottom right JFM. now changes for screen size alters top to bot position. */
@media screen and (min-device-width: 900px) {   /* changed from min-width */
   #ModalIndexBtnID {
       position: fixed;
       bottom: 50px;           /*   Above share this on desktop and mob? THIS IS THE DIFF */
       right: 0;
       border: 3px solid blue;
       z-index: 100000000;
       cursor: pointer;
   }
}

@media screen and (max-device-width: 900px) {
   #ModalIndexBtnID {
       position: fixed;
       top: 50px;            /*   Above share this on desktop and mob? THIS IS THE DIFF */
       right: 0;
       border: 3px solid blue;
       z-index: 100000000;
       cursor: pointer;
   }
}

@keyframes modalIndex_animatetop {
    from {top:-900px; opacity:0}
    to {top:0; opacity:1}
}