﻿
/** Modal 
    REF: W3schools.com. 2020. How To Make A Modal Box With CSS And Javascript. [online] Available at: <https://www.w3schools.com/howto/howto_css_modals.asp> [Accessed 4 June 2020].
*/

.modal {
    display: none;
    position: fixed;
    z-index: 19;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.4);
}

#footer_sticky.modal {
    background-color: rgba(0,0,0, 0);
    display: block;
    width: 100%;
    height: inherit;
    top: auto;
}

.shadow {
    background-color: rgb(0,0,0) !important;
    background-color: rgba(0,0,0, 0.4) !important;
    width: 100% !important;
    height: 100% !important;
}

#footer_sticky.modal .container {
    display: none;
}

/* Footer fix for Safari */
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) {
    @media {
        #footer_sticky.modal {
            position: static;
        }
    }
}

@media not all and (min-resolution:.001dpcm) {
    @media {
        #footer_sticky.modal {
            position: static;
        }
    }
}

.modal-content {
    position: relative;
    background-color: #FEFEFE;
    margin: auto;
    padding: 0;
    border: 1px solid #888888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: slideInTop;
    -webkit-animation-duration: 0.4s;
    animation-name: slideInTop;
    animation-duration: 0.4s;
    border-radius: 4px;
    max-width: 750px;
    max-height: calc(100% - 100px);
}

.modal.bottom .modal-content {
    left: 0;
    right: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    -webkit-animation-name: slideInBottom;
    -webkit-animation-duration: 0.4s;
    animation-name: slideInBottom;
    animation-duration: 0.4s
}

#footer_sticky.modal.bottom .modal-content {
    max-width: 1000px;
    box-shadow: 0px 2px 9px 0px;
}

#footer_sticky.modal .material-icons {
    font-size: 28px;
    text-align: center;
    padding: 0;
}

#footer_sticky.modal .as-button {
    margin: 0;
    box-shadow: none;
}

#footer_sticky.modal .modal-header h2 {
    margin-left: 10px;
    margin-right: 10px;
}

@-webkit-keyframes slideInTop {
    from { top: -30px; opacity: 0; }

    to { top: 0; opacity: 1; }
}

@keyframes slideInTop {
    from { top: -300px; opacity: 0; }
    to { top: 0; opacity: 1; }
}

@-webkit-keyframes slideInBottom {
    from { bottom: -300px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}

@keyframes slideInBottom {
    from { bottom: -300px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close {
    color: inherit;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: #848484;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    border-bottom: 1px solid #DADADA;
    padding: 10px 15px;
}

.modal-footer {
    border-top: 1px solid #DADADA;
    padding: 10px 15px 15px;
}

.modal-body {
    margin: 10px 16px 15px;
}

.modal-body {
    height: calc(90% - 65px);
    overflow: auto;
}

.modal.bottom {
    -webkit-animation-name: fadeIn;
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s
}

.modal-content button, .modal-content input[type=button], .modal-content input[type=reset], .modal-content input[type=submit] {
    margin: 2px 0;
}

.modal-header h3 {
    font-weight: 500;
}

.countdown-holder{
    font-weight: 600;
}

.text-align-right {
    text-align: right;
}

