
.custom-model-main {
    text-align: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    opacity: 0;
    -webkit-transition: opacity 0.15s linear, z-index 0.15;
    -o-transition: opacity 0.15s linear, z-index 0.15;
    transition: opacity 0.15s linear, z-index 0.15;
    z-index: -1;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
}

.model-open {
    z-index: 99999;
    opacity: 1;
    overflow: hidden;
}
.custom-model-inner {
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: -webkit-transform 0.3s ease-out;
    -o-transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    display: inline-block;
    vertical-align: middle;
    width: 450px;
    margin: 30px auto;
    max-width: 97%;
}
.custom-model-wrap {
    display: block;
    width: 100%;
    position: relative;
    text-align: left;
    padding: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}
.model-open .custom-model-inner {
    background: #BDF58D;
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
    position: relative;
    z-index: 999;
    border-radius: 10px;
}
.model-open .bg-overlay {
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}
.bg-overlay {
    background: rgba(0, 0, 0, 0);
    height: 100vh;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    -webkit-transition: background 0.15s linear;
    -o-transition: background 0.15s linear;
    transition: background 0.15s linear;
}
.link-block .close-btn {
    background-color: transparent !important;
    color: #4F4F4F;
    text-decoration: underline !important;
    border: 0 !important;
    font-size: 18px;
}

.pop-up-content-wrap {
    text-align: center;
}

.custom-model-main h2 {
    font-size: 46px;
    font-weight: 700;
    line-height: .9;
    margin-bottom: 30px;
    color: #324EA2;
}

.custom-model-main p {
    margin-bottom: 20px !important;
    font-weight: 700;
    color: #324EA2 !important;
    font-size: 18px;
}

.link-block {
    margin-top: 20px;
}

.link-block a {
    display: block;
    margin-bottom: 20px;
}

.primary-link {
    background: #405FBC;
    border-radius: 50px;
    color: #fff !important;
    padding: 15px 20px;
    font-size: 25px;
    font-weight: 600;
}

.popup-event {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 30px;
    z-index: 998 !important;
}

@media screen and (min-width:800px){
    .custom-model-main:before {
        content: "";
        display: inline-block;
        height: auto;
        vertical-align: middle;
        margin-right: -0px;
        height: 100%;
    }
}
@media screen and (max-width:799px){
    .custom-model-inner {
        margin-top: 45px;
    }

    .custom-model-main p {
        font-size: 15px !important;
    }
    .custom-model-main h2 {
        font-size: 36px;
    }

    .primary-link {
        font-size: 18px;
    }

    .link-block .close-btn {
        font-size: 15px;
    }

}

@media screen and (max-width:550px){
    .custom-model-inner {
        width: 350px;
    }

}

.link-block .primary-link.delayed-reveal, .link-block .close-btn.delayed-reveal{
    opacity:0;
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    transition: all .3s ease;
}
.link-block .primary-link.delayed-reveal.enable, .link-block .close-btn.delayed-reveal.enable{
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}
#json-video{
    width: 100%;
    height: 100%;
}
.fortune-wrapper{
    max-height: 410px;
}
.model-open.video-modal .custom-model-inner {
    background: transparent!important;
}
.video-modal #json-video{
    cursor:pointer;
}
body.mod-opened{
    position: fixed;
    width: 100%;
}