/*
CSS 
template: window_popup
description: CSS for the Challenge popup window
*/




/* CHALLENGE PANEL */

#popup_window {
    z-index: 99999;
    position: fixed;
    display: block;
    visibility: hidden;
    top:0; right:0; bottom:0; left:0;
	background: rgba(0,0,0, .75);
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

#popup_window.visible {
    visibility: visible;
    opacity: 100%;
    pointer-events: auto;
}

#popup_window .popup_container {
    position: fixed;
    display: block;
    top: 50%; left: 50%;
    width: 70vh;
    height: 0;
    max-width: 100vw;
    padding: 70vh 0 0 0;
    transform: translate(-50%, -50%);
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 1em;
}

#popup_window .popup_content {
    position: absolute;
    display: block;
    top: 50%; left: 0;
    width: 100%;
    height: 0;
    padding: 100% 0 0 0;
    transform: translateY(-50%);
	background: #12674b;
    overflow: hidden;
}

#popup_window .popup_content .challenge_rays,
#popup_window .popup_content .challenge_earth,
#popup_window .popup_content .challenge_title {
    
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover !important;
}

@keyframes popup_challenge_raysrotate {
    0% { transform:scale(.9) rotateZ(0deg) }
    50% { transform:scale(1.2) rotateZ(180deg) }
    100% { transform:scale(.9) rotateZ(360deg) }
}

#popup_window .popup_content .challenge_rays {
    top: -20%; right: -20%; bottom: -20%; left: -20%;
    background-size: contain !important;
	background: url('../images/home/challenge_rays.png') 0 0 no-repeat;
    animation-name: popup_challenge_raysrotate;
    animation-direction: normal;
	animation-duration: 60s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
    opacity: .9;
}

#popup_window .popup_content .challenge_title {
	background: url('../images/home/challenge_title.png?v0001') 0 0 no-repeat;
}

#popup_window .popup_content .challenge_earth {
	background: url('../images/home/challenge_earth.png?v0001') 0 0 no-repeat;
    transition: transform 1.5s ease;
	transform: translate3d(0, 0, 0) rotate(0deg);
}

#popup_window .popup_content:hover .challenge_earth {
	transform: perspective(100px) translate3d(0, 0, 5px) rotate(-5deg);
	transition: transform 1.5s ease;
}



#popup_window .popup_content .challenge_button_ok {
    position: absolute;
    display: block;
    /*
    650 x 650 - window original size
    238 x 71 - button original size
    divide button dimensions by window dimensions (eg. 238/650)
    0.366 x 0.109
    
    left:207 top:532 - button original placement
    31.846 x 81.846
    */
    left: 31.846%;
    top: 81.846%;
    width: 36.615%;
    height: 10.923%;
	background: url('../images/popup/challenge_button.png') 0 0 no-repeat;
    background-size: contain !important;
    opacity: .7;
    transition: opacity .5s ease-out;
}

#popup_window .popup_content .challenge_button_ok:hover {
	opacity: 1;
    transition: opacity .2s ease;
}

#popup_window .popup_content .challenge_button_cancel {
    position: absolute;
    display: block;
    /*
    position top: 611
    */
    left: 0;
    top: 92.7%;
    width: 100%;
    height: 7.3%;
    background: url('../images/popup/challenge_button_cancel.png') center 40% no-repeat;
    background-size: 21.538%;
}

#popup_window .popup_content .challenge_button_cancel:hover {
	color: #ceeb41;
    transition: opacity .2s ease;
}