/**************************\
  Basic Modal Styles
\**************************/

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal__container {
    padding: 60px 60px 25px;
    max-width: 1200px;
    max-height: 100vh;
    border-radius: 0px;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #ffffff;
    background-image: url("./../media/modalbg.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.modal-error .modal__container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 846px;
    top: 0;
    left: 0;
    z-index: -1;
}

.modal__header {
    font-size: 70px;
    line-height: 83px;
    text-align: center;
    color: #2b2083;
    margin: 50px 0;
}

.modal__close {
    background: transparent;
    border: 0;
}


/*
.modal__header .modal__close:before {
    content: "\2715";
}
*/

.modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, .8);
}

.modal__content p {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 100;
    font-size: 18px;
    line-height: 32px;
    padding: 0 0 30px;
}

.modal__content h3 {
    font-weight: 100;
    font-size: 33px;
    color: #2b2083;
    line-height: 40px;
    margin: 50px 0 0;
}

.modal__btn {
    float: right;
    position: relative;
    width: 40px;
    height: 40px;
    background: #342890;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 50%;
    border: none;
    border-width: 0;
    cursor: pointer;
    top: -25px;
    right: -25px;
    transition: all .3s;
    color: #fff;
}

.modal__btn>div {
    width: 100%;
}

.modal__btn>div>span {
    display: block;
    height: 3px;
    margin: 4px 0;
    width: 100%;
    border-radius: 5px;
    background: #ffffff;
    transition: all .3s;
    width: 20px;
}

.modal__btn:hover>div>span {
    background: #ffffff;
}

.modal__btn span {
    width: 20px;
    background: #ffffff;
}

.modal__btn:hover>div>span {
    background: #ffffff;
}

.modal__btn span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.modal__btn span:nth-child(2) {
    transform: rotate(-45deg);
    top: 19px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.modal__btn:focus,
.modal__btn:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

@media screen and (max-width:640px) {
    .modal__header {
        font-size: 30px;
        line-height: 40px;
        text-align: center;
        color: #2b2083;
        margin: 50px 0;
    }
    .modal__content h3 {
        font-size: 20px;
        line-height: 30px;
        margin: 50px 0 0;
    }
    .modal__content p {
        font-size: 16px;
        line-height: 30px;
    }
    .modal__container {
        /*padding: 60px 25px 25px;*/
        max-width: 1200px;
        max-height: 100vh;
        border-radius: 0px;
        overflow-y: auto;
        box-sizing: border-box;
        background-color: #ffffff;
        background-image: url("./../media/modalbg.png");
        background-size: contain;
        background-repeat: no-repeat;
    }
}


/**************************\
    Demo Animation Style
  \**************************/

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}