@charset "UTF-8";

/*
    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:
        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:rgba(0,0,0,0.8);
    top:0;
    left:0;
    opacity: 0;
    z-index:9999999999999;
    -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: flex;
    align-items: center;
    justify-content: 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:0;
    z-index:99998;
}

.YouTubePopUp-Content{
    width: 50%;
    max-width: 1500px;
    position: relative;
}


.YouTubePopUp-vdbox{position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; width: 100%; background: #369; z-index: 0;}
.YouTubePopUp-vdbox iframe,
.YouTubePopUp-vdbox object, 
.YouTubePopUp-vdbox embed,
.YouTubePopUp-vdbox video{
  position: absolute; top: 0; left: 0; width: 100% ; height: 100%; outline: none; border: none;
}


/*.YouTubePopUp-Content iframe{
    max-width:100% !important;
    width:100% !important;
    display:block !important;
    height:auto !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{
    position: absolute; 
    top:-40px;
    cursor:pointer;
    right:-70px;
    margin:auto 0;
    width:50px;
    height:50px;
    background:url(https://storage-asset.msi.com/global/picture/images/close.svg) center center no-repeat;
    background-size: cover;
    opacity: .5;
    z-index: 111;
    text-align: center;
    line-height: 30px;
}

.YouTubePopUp-Close:hover{
    opacity: 1;
}

@media screen and (max-width:960px){
    .YouTubePopUp-Content{
        width: 90%;
        margin: 0 auto;
        max-width: none;
    }
    .YouTubePopUp-Close{
        top: auto;
        right: 0;
        top: -50px;
    }
}

/*@media all and (max-width: 768px) and (min-width: 10px){
    .YouTubePopUp-Content{
        max-width:90%;
    }
}

@media all and (max-width: 600px) and (min-width: 10px){
    .YouTubePopUp-Content iframe{
        height:320px !important;
    }

    .YouTubePopUp-Close{
        bottom:362px;
    }
}

@media all and (max-width: 480px) and (min-width: 10px){
    .YouTubePopUp-Content iframe{
        height:220px !important;
    }

    .YouTubePopUp-Close{
        bottom:262px;
    }
}*/