/*
    Name: YouTubePopUp
    Description: jQuery plugin to display YouTube video in PopUp, responsive and retina, easy to use.
    Version: 1.0.0
    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:
        https://www.opensource.org/licenses/mit-license.php
        http://www.gnu.org/licenses/gpl.html
    Copyright (c) 2016 - Qassim Hassan
*/

/* 
    Modded by: Sudipto Mondal
*/

.YouTubePopUp-Wrap{
    position:fixed;
    width:100%;
    height:100%;
    min-width: 300px;
    background-color:#000;
    background-color:rgba(0,0,0,0.8);
    top:0;
    left:0;
    opacity: 0;
    z-index:9999;
    -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;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
}

@-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:680px;
    margin:0 auto;
    position:relative;
}

.YouTubePopUp-Content:after {
  padding-top: 56.25%;
  /* 16:9 ratio */
  display: block;
  content: '';
}

.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;
    -webkit-box-shadow: 0px 6px 14px 0px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 0px 6px 14px 0px rgba(0, 0, 0, 0.35);
    box-shadow: 0px 6px 14px 0px rgba(0, 0, 0, 0.35);
}

.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{
    position:absolute;
    top:0;
    cursor:pointer;
    bottom:125%;
    right:0px;
    margin:auto 0;
    width:38px;
    height:38px;
    opacity:0.3;
    background:url('https://s32.postimg.org/5kq8b1m11/popup_close.png') no-repeat;
    background-size:38px 38px;
    -webkit-background-size:38px 38px;
    -moz-background-size:38px 38px;
    -o-background-size:38px 38px;
    transition: opacity .25s ease;
}

.YouTubePopUp-Close:hover{
    opacity:0.8;
}

.YouTubePopUp-Close:active{
    opacity:1;
}

@media all and (max-width: 800px){
    .YouTubePopUp-Content{
        max-width: 90%;
    }
}