.pendulum{
	position: relative; 
	position: fixed;
	animation: pendulum ease-in-out 1.5s infinite alternate;
    transform-origin: center -20px;
    *float: right;
    right: 0;
    margin-top: 37px;
    margin-right: 20px;
   -webkit-box-shadow: 25px 25px 20px 10px rgba(0,0,0,0.2);
   -moz-box-shadow: 25px 25px 20px 10px rgba(0,0,0,0.2);
	box-shadow: 25px 25px 20px 10px rgba(0,0,0,0.2);
	z-index: 9999;
	opacity: 1;
}


/* NAIL */

.pendulum:before{
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    top: -45px;
    left: 52%;
    z-index: 5;
    border-radius: 50% 50%;
    background: #19a6ce;
    display: block;
}


/* HANGER */

.pendulum:after{
    content: '';
    position: absolute;  
    width: 20px; height: 20px;  
    border: 1px solid #999;
    top: -40px;
    left: 47%;
    z-index: 0;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}


/* IMAGE */

.adv-img {
    background: url('WindowsBanner.jpg');
    width: 150px;
	height: 225px;
    border: 2px solid #f8f8f8;
    border-radius: 3px;
    display: block;
    margin-top: -32px;
    outline: 15px solid transparent;
   -webkit-box-shadow: inset 2px 2px 5px 0px rgba(0,0,0,0.4);
   -moz-box-shadow: inset 2px 2px 5px 0px rgba(0,0,0,0.4);
	box-shadow: inset 2px 2px 5px 0px rgba(0,0,0,0.4);
	z-index: 450;
}


/* CLOSE */

input[type=checkbox]#close-adv {
	position: absolute;  
	display: none;
	top: 20px;
	z-index: 505;
}
a.close-bg-box{
    width: 20px;
    height: 20px;
    position: absolute;
    display: block;
	background: white;
	font-size: 30px;
    border: 2px solid #8e93b3;
    border-radius: 120px;
    cursor: pointer;
    z-index: 502;
    top: -40px;
    margin-left: 145px;
}
a.close-content {
	position: absolute;
	left: 149.3px;
	margin-top: -44.55px;
	font-size: 28px;
	display: block;
	color: #8e93b3;
	cursor: pointer;
	z-index: 505;
}


/* FADE-OUT */

input[type=checkbox]#close-adv:checked ~ .pendulum,
input[type=checkbox]#close-adv:checked{
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s linear;
}
 
@keyframes pendulum {
    0% { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
}