/* MODAL */

.overlay {
    background: rgba(0, 0, 0, .7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.blured:before {
    content: '';
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px)
}

.modal {
    visibility: hidden;
    z-index: 530;
    position: relative
}

.modal__contents {
    width: 32rem;
    position: fixed;
    left: 50%;
    margin-left: -16rem;
    bottom: 25vh;
    min-height: 50vh;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 16px 0;
    color:#333;
    border-radius:3px;
    background-color:#eaf1f7;
}

.modal-content {
    height: 50vh;
    height: calc(50vh - 2.8rem);
    overflow: auto
}

.modal.small .modal__contents {
    width: 20rem;
    left: 50%;
    margin-left: -10rem;
    bottom: 30vh;
    min-height: 40vh
}

.modal.small .modal-content {
    height: 40vh;
    height: calc(40vh - 2.8rem)
}

.modal.large .modal__contents {
    width: 48rem;
    left: 50%;
    margin-left: -24rem;
    bottom: 20vh;
    min-height: 60vh
}

.modal.large .modal-content {
    height: 60vh;
    height: calc(60vh - 2.8rem)
}

.modal__close {
    position: absolute;
    right: 8px;
    top:8px;
    padding: 1rem;
    text-decoration: none;
    transform: scale(0.8);
    background-image:url('../images/cross.svg');
    background-position: 50% 50%;
    background-size:auto auto;
    background-repeat: no-repeat;
    transition: transform 0.2s ease
}

.modal__close:hover {
    transform: scale(1);
}

.modal__close:before {
    margin: 0 !important
}

.modal-content {
    padding: 1.5rem 1rem 1rem 1rem
}

.modal--show {
    visibility: visible;
}

.modal-header {
    line-height: 2.8rem
}

.modal-header span {
    margin-left: 1rem;
    font-weight:500;
    font-size:120%
}

.modal--transition {
    -webkit-transform: translateY(-270px);
    -moz-transform: translateY(-270px);
    -ms-transform: translateY(-270px);
    transform: translateY(-270px);
    opacity: 0;
    -webkit-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55)
}

.modal--show .modal--transition {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1
}

@media screen and (max-width: 48rem),
screen and (max-height: 42rem) {
    .modal__contents {
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important
    }
    .modal-content {
        height: 100vh !important;
        height: calc(100vh - 3rem) !important
    }
    .modal--transition {
        -webkit-transform: translateX(-0) translateY(150%);
        -moz-transform: translateX(-0) translateY(150%);
        -ms-transform: translateX(-0) translateY(150%);
        transform: translateX(-0) translateY(150%)
    }
}