@font-face {
 font-family: fg;
 src: url("../fonts/fg.ttf");
}
#fortune_main_box {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9);
	z-index: 1;
	display: none;
	font-family: fg;
}
#fortune_main_box h4{
	text-align: center;
	font-size: 50px;
	line-height: 0px;
	color: #fff;
	font-weight: bold;
	margin: 60px;
}
#fortune_main_box h3{
	text-align: center;
	font-size: 25px;
	line-height: 0;
	color: #fff;
	font-weight: bold;
}
#fortune_main_box p{
	text-align: center;
	font-size: 20px;
	color: #fff;
	font-weight: bold;
}
#fortune_main_box p.small{
	text-align: center;
	font-size: 10px;
	color: #fff;
	margin: 2px 2px 0 20px;
}
#fortune_main_box .small a{
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}
#fortune_box {
	width: 904px;
	height: 564px;
	background-image: url(../img/fortune_box.jpg);
	position: absolute;
	display: none;
	z-index: 9900;
	left: calc( ( 100% - 904px ) / 2);
	top: 50px;
}
#fortune_brown_box {
	width: 355px;
	height: 422px;
	background-image: url(../img/parted/bg2.png);
	background-size: cover;
	position: absolute;
	top: 123px;
	left: 281px;
}
#fortune_lights {
	width: 330px;
	height: 330px;
	background-image: url(../img/parted/lights.png);
	background-size: cover;
	position: absolute;
	top: 37px;
	left: 16px;
}
#close_fortune_box, #close_fortune_congratulations_box {
	background-image: url(../img/close_fortune_box.jpg);
	width: 28px;
	height: 28px;
	position: absolute;
	top: 11px;
	right: 19px;
}
#close_fortune_congratulations_box {
	top: 28px;
}
#close_fortune_box:hover, #close_fortune_congratulations_box:hover {
	background-image: url(../img/close_fortune_box_hovered.jpg);
}


#fortune_already_win_box {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	flex-align: center;
	justify-content: center;
	color: #fff;
	text-align: center;
}
#close_fortune_box, #close_fortune_already_win_box {
	background-image: url(../img/close_fortune_box.jpg);
	width: 28px;
	height: 28px;
	position: absolute;
	top: 11px;
	right: 19px;
}
#close_fortune_already_win_box {
	top: 28px;
}
#close_fortune_box:hover, #close_fortune_already_win_box:hover {
	background-image: url(../img/close_fortune_box_hovered.jpg);
}
#fortune_arrow {
	background-image: url(../img/parted/arrow.png);
	width: 15px;
	height: 20px;
	position: absolute;
	top: 15px;
	left: 174px;
	background-size: cover;
	animation-duration: 2s;
    animation-iteration-count: infinite;
}
.jumping {
	animation-name: bounce;
	animation-timing-function: ease;
}
@keyframes bounce {
	0%   { transform: scale(1,1)    translateY(0); }
	10%  { transform: scale(1.1,.9) translateY(0); }
	30%  { transform: scale(.9,1.1) translateY(-5px); }
	50%  { transform: scale(1,1)    translateY(0); }
	100% { transform: scale(1,1)    translateY(0); }
}
#fortune_disk {
	width: 308px;
	height: 308px;
	position: absolute;
	transition: 10s;
	background-size: cover;
	position: absolute;
	top: 48px;
	left: 27px;
}
#fortune_disk > div {
	width: 100%;
	height: 100%;
	transition: 1s;
	transform-origin: center center;
	background-size: cover;
	position: absolute;
	top: 0;
	left: 0;

}
#fortune_part1 {
	background-image: url(../img/parted4/1.png);
}
#fortune_part2 {
	background-image: url(../img/parted4/2.png);
}
#fortune_part3 {
	background-image: url(../img/parted4/3.png);
}
#fortune_part4 {
	background-image: url(../img/parted4/4.png);
}
#fortune_part5 {
	background-image: url(../img/parted4/5.png);
}
#fortune_part6 {
	background-image: url(../img/parted4/6.png);
}
#fortune_part1.active {
	background-image: url(../img/parted3/1.png);
	transform: scale(1.05) rotate(1deg);
	z-index: 9900;
}
#fortune_part2.active {
	background-image: url(../img/parted3/2.png);
	transform: scale(1.05) rotate(1deg);
	transform: ;
	z-index: 9900;
}
#fortune_part3.active {
	background-image: url(../img/parted3/3.png);
	transform: scale(1.05) rotate(1deg);
	z-index: 9900;
}
#fortune_part4.active {
	background-image: url(../img/parted3/4.png);
	transform: scale(1.05) rotate(1deg);
	z-index: 9900;
}
#fortune_part5.active {
	background-image: url(../img/parted3/5.png);
	transform: scale(1.05) rotate(1deg);
	z-index: 9900;
}
#fortune_part6.active {
	background-image: url(../img/parted3/6.png);
	transform: scale(1.05) rotate(1deg);
	z-index: 9900;
}
#fortune_start {
	width: 55px;
	height: 55px;
	background-image: url(../img/fortune_start.png);
	background-position: 0% 0%;
	position: absolute;
	top: 174px;
	left: 154px;
}
#fortune_start:hover {
	background-image: url(../img/fortune_start.png);
	background-position: 0% 100%;
}

#fortune_congratulations_box {
	left: calc( ( 100% - 904px ) / 2);
	top: 50px;
	width: 904px;
	height: 564px;
	background-image: url(../img/parted5/bg.jpg);
	background-size: cover;
	position: relative;
	display: none;
	z-index: 9901;
}
#fortune_already_win_box {
	left: calc( ( 100% - 904px ) / 2);
	top: 50px;
	width: 904px;
	height: 564px;
	background-image: url(../img/parted5/bg.jpg);
	background-size: cover;
	position: relative;
	display: none;
	z-index: 9901;
}
#the_present_box {
	color: #fff;
	font-size: 24px;
	font-family: Ubuntu;
	text-align: center;
	width: 100%;
}
#fortune_box_form {
	position: absolute;
	top: 290px;
	left: 328px;
	width: 240px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 459px;
	
}
#fortune_box_form input{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border-radius: 0px;
}
#fortune_box_form button{
	width: 100%;
	height: 45px;
	background-color: #ff0099;
	border: none;
	color: #fff;	
	font-size: 20px;
}
#fortune_box_form button:hover{
	background-color: #df529f;
	
}
#fortune_box_form input[type="text"]{
	width: 100%;
	height: 42px;
	margin-bottom: 21px;
	font-size: 20px;
}
#fortune_box_confirmation {
	position: relative;
	top: 13px;
	left: 5px;
}
