@charset "UTF-8";

/*
    Name: YouTubePopUp
    Description: jQuery plugin to display YouTube or Vimeo video in PopUp, responsive and retina, easy to use.
    Version: 1.0.1
    Plugin URL: http://wp-time.com/youtube-popup-jquery-plugin/
    Written By: Qassim Hassan
    Twitter: @QQQHZ
    Websites: wp-time.com | qass.im | wp-plugins.in
    Dual licensed under the MIT and GPL licenses:
        http://www.opensource.org/licenses/mit-license.php
        http://www.gnu.org/licenses/gpl.html
    Copyright (c) 2016 - Qassim Hassan
*/

.YouTubePopUp-Wrap{
    position:fixed;
    width:100%;
    height:100%;
    background-color:#D8F1F6;
    background-color:rgba(216,241,246,0.88);
    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{ /* For WordPress */
    top:32px;
    z-index:99998;
}

.YouTubePopUp-Content{
    width: 1120px;
    height: 630px;
    display:block;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.YouTubePopUp-Content iframe{
    max-width:100% !important;
    width:100% !important;
    display:block !important;
    height: 100% !important;
    border:none !important;
    position:absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
}

.YouTubePopUp-Hide{
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: YouTubePopUpHide;
    animation-name: YouTubePopUpHide;
}

@-webkit-keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.YouTubePopUp-Close{
    align-items: center;
    position: absolute;
    display: flex;
    top: -74px;
    cursor:pointer;
    left: 50%;
    margin:auto 0;
    width: auto;
    height: 42px;
    transform: translateX(-50%);
}
.YouTubePopUp-Close:before {
    align-items: center;
    background: #D54F7F;
    border-radius: 50%;
    color: #fff;
    content: "X";
    display: flex;
    font-size: 11.31px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    width: 42px;
    transition: background 0.4s ease-in-out;
}
.YouTubePopUp-Close:after {
    align-items: center;
    color: #D54F7F;
    content: "Close";
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: flex-start;
    padding-left: 10px;
    text-transform: uppercase;
    transition: color 0.4s ease-in-out;
}

.YouTubePopUp-Close:hover:before{
    background: #C1285E;
}
.YouTubePopUp-Close:hover:after{
    color: #C1285E;
}

@media all and (max-width:1280px) {
    .YouTubePopUp-Content{
        width: 700px;
        height: 394px;
        top: 50%;
        transform: translateY(-50%);
    }

    .YouTubePopUp-Close{
        top: -65px;
        height: 36px;
        transform: translateX(-50%);
    }
    .YouTubePopUp-Close:before {
        font-size: 10px;
        height: 36px;
        width: 36px;
    }
    .YouTubePopUp-Close:after {
        font-size: 11px;
        padding-left: 10px;
    }
}

@media all and (max-width:959px) {
    .YouTubePopUp-Content{
        width: 472px;
        height: 266px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media all and (max-width:599px) {
    .YouTubePopUp-Content{
        width: 245px;
        height: 138px;
        top: 50%;
        transform: translateY(-50%);
    }

    .YouTubePopUp-Close{
        top: -47px;
        height: 28px;
        transform: translateX(-50%);
    }
    .YouTubePopUp-Close:before {
        font-size: 7.71px;
        height: 28px;
        width: 28px;
    }
    .YouTubePopUp-Close:after {
        font-size: 8.49px;
        padding-left: 7px;
    }
}
