/*-------------------------------------------------------------------------------
  Modals
-------------------------------------------------------------------------------*/

.popup {
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 1005;
}
.popup * {
    box-sizing: border-box;
}
.popup.active .popup-content {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.popup.show {
    display: block;
}

.popup.show .popup-content {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.popup-table {
    height: 100%;
    table-layout: fixed;
    overflow: hidden;
}

.popup-table > .cell {
    height: 100%;
    vertical-align: middle;
    padding: 5% 10px;
    overflow-y: scroll;
}

.popup-content {
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -webkit-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.popup-md .popup-content{
    max-width:75%;
    background: #fff;
    border-radius: 8px;
}

.popup-lg .popup-content{
    max-width:95%;
    background: #fff;
    border-radius: 8px;
}

.popup-head {
    padding: 15px 30px;
    border-bottom: 1px solid #d7e4e2;
    background: #daeae7;
    border-radius: 5px 5px 0 0;
}
.popup-body {
    padding: 20px 30px;
}

.popup-video .popup-content {
    max-width: 800px;
    background: #000;
}
.popup-video__value {
    line-height: 0;
}
.popup-close {
    width: 15px;
    height: 15px;
    position: absolute;
    top: -14px;
    right: -14px;
    cursor: pointer;
    font-size: 2rem;
    line-height: 0;
    color: #e6e6e6;
}

iframe {
    width: 800px;
    height: 450px;
    border: none;
}

.popup__body.load:before {
    content:'';
    position:absolute;
    width:100%;
    height:100%;
    background-color:#fff;
    background-repeat:  no-repeat;
    background-position: center;
    z-index: 1005;
}

.popup .popup__title {
    padding: 10px;
    background: #f5f5f5;
    text-align: center;
    border-radius: 0;
}
.popup .popup__body {
    padding: 0 20px 20px;
    border-radius: 0;
}
@media only screen and (min-device-width: 180px) and (max-device-width: 768.98px){
    .popup-md .popup-content {
        max-width: 100%;
    }
}

.popup-quiz .success {
    padding: 30px 0 50px;
    text-align: center;
    font-size: 150%;
}