/*== Video PopUp Addon ==*/

.YouTubePopUp-Wrap {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    z-index: 9999999999999;
}
.YouTubePopUp-animation {
    opacity: 0;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: YouTubePopUp;
    animation-name: YouTubePopUp;
}
@-webkit-keyframes YouTubePopUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes YouTubePopUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
body.logged-in .YouTubePopUp-Wrap {
    top: 32px;
    z-index: 99998;
}
.YouTubePopUp-Content {
    max-width: 1200px;
    display: block;
    margin: 0 auto;
    height: 100%;
    position: relative;
}
.YouTubePopUp-Content iframe {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    height: 680px !important;
    border: none !important;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}
.YouTubePopUp-Hide {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-name: YouTubePopUpHide;
}
@-webkit-keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
.YouTubePopUp-Close {
    position: absolute;
    top: 62px;
    cursor: pointer;
    right: 0px;
    margin: auto 0;
    width: 24px;
    height: 24px;
    background: url(../images/close.svg) no-repeat;
    background-size: 24px 24px;
    display: inline-block;
}
.YouTubePopUp-Close:hover {
    opacity: 0.5;
}
@media (max-width:1200px) {
    .YouTubePopUp-Content {
        max-width: 950px;
    }
    .YouTubePopUp-Content iframe {
        height: 500px !important;
    }
}
@media (max-width:992px) {
    .YouTubePopUp-Content {
        max-width: 750px;
    }
    .YouTubePopUp-Content iframe {
        height: 400px !important;
    }
}
@media (max-width:768px) {
    .YouTubePopUp-Content {
        max-width: 500px;
    }
    .YouTubePopUp-Content iframe {
        height: 362px !important;
    }
}
@media (max-width:600px) {
    .YouTubePopUp-Content {
        max-width: 95%;
    }
    .YouTubePopUp-Content iframe {
        height: 320px !important;
    }
    .YouTubePopUp-Close {
        bottom: 362px;
    }
}
@media (max-width:480px) {
    .YouTubePopUp-Content {
        max-width: 95%;
    }
    .YouTubePopUp-Content iframe {
        height: 220px !important;
    }
    .YouTubePopUp-Close {
        bottom: 262px;
    }
}
.upstudy-video-popup-wrapper {
    position: relative;
}
/*=== PopUp video style-1 ===*/

.upstudy-video-popup-wrapper.style-1 a {
    width: 80px;
    height: 80px;
    font-size: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-radius: 50%;
    background: var(--upstudy-primary-color);
    color: #ffffff;
    transition: all 0.3s linear;
}
.upstudy-video-popup-wrapper.style-1 a::before {
    content: "";
    border: 2px solid var(--upstudy-primary-color);
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    -webkit-animation: zoombig 3.25s linear infinite;
    animation: zoombig 3.25s linear infinite;
    -webkit-animation-delay: .8s;
    animation-delay: .8s;
}
.upstudy-video-popup-wrapper.style-1 a::after {
    content: "";
    border: 2px solid var(--upstudy-primary-color);
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    -webkit-animation: zoombig 3.25s linear infinite;
    animation: zoombig 3.25s linear infinite;
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}
.upstudy-video-popup-wrapper.style-1 a:hover {
    background: var(--upstudy-primary-color);
}
@-webkit-keyframes zoombig {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        border-width: 3px;
    }
    40% {
        opacity: .5;
        border-width: 3px;
    }
    65% {
        border-width: 2px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        border-width: 2px;
    }
}
@keyframes zoombig {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        border-width: 3px;
    }
    40% {
        opacity: .5;
        border-width: 3px;
    }
    65% {
        border-width: 2px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        border-width: 2px;
    }
}
/* Style 2 */

.upstudy-video-popup-wrapper.style-2 a {
    width: 80px;
    height: 80px;
    text-align: center;
    background: var(--upstudy-primary-color);
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s linear;
}
.upstudy-video-popup-wrapper a>i {
    line-height: 1;
    transition: all 0.3s linear
}
.upstudy-video-popup-wrapper.style-2 a:hover {
    background: #0f0948;
    color: #ffffff;
}