
.card_craft_combined {
	transform-origin: center 230px;	/* 13pixels below bottom of card */
	-webkit-transform-origin: center 230px;
	animation-duration: 4s, 4s;
	-webkit-animation-duration: 4s, 4s;
	animation-timing-function: ease, linear;
	-webkit-animation-timing-function: linear;
	animation-name: anim_card_appear, anim_card_circle;
	-webkit-animation-name: anim_card_appear, anim_card_circle;
}

/* we use an animation to hide the throbber, so browser that don't display animations
	will show a throbber instead of the cards */
.loop_throbber_hide {
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-iteration-count: infinite;
	-webkit-animation-iteration-count: infinite;
	animation-name: anim_hide_throbber;
	-webkit-animation-name: anim_hide_throbber;
}

@keyframes anim_card_appear {
	from {
		width: 360px;
		height: 414px;
		/*transform: rotate(45deg);*/
		left: -31px;
		top: -160px;
		opacity: 0;
	}
	16% {
		width: 180px;
		height: 207px;
		/*transform: rotate(0deg);*/
		left: -121px;
		top: 0;
		opacity: 1;
	}
	80% {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@-webkit-keyframes anim_card_appear {
	from {
		width: 360px;
		height: 414px;
		left: -31px;
		top: -160px;
		opacity: 0;
	}
	16% {
		width: 180px;
		height: 207px;
		left: -121px;
		top: 0;
		opacity: 1;
	}
	80% {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes anim_card_circle {
	from {
		transform: rotate(411deg);
	}
	to {
		transform: rotate(0deg);
	}
}

@-webkit-keyframes anim_card_circle {
	from {
		-webkit-transform: rotate(411deg);
	}
	to {
		-webkit-transform: rotate(0deg);
	}
}

@keyframes anim_hide_throbber {
	from {
		opacity: 0;
	}
	to {
		opacity: 0;
	}
}

@-webkit-keyframes anim_hide_throbber {
	from {
		opacity: 0;
	}
	to {
		opacity: 0;
	}
}

.animated_card {
	position: absolute;

	width: 180px;
	height: 207px;

	left: -121px;
	top: 0;

	opacity: 0;
}

.newmodal.badge_craft_modal {
	width: 900px;
}

.newmodal.badge_craft_modal .newmodal_content {
	background-image: radial-gradient( circle, #6696e1, rgba(40, 44, 56, 0) 48% );
	background-position: center top;
	background-repeat: no-repeat;
}

.badge_craft_container {
	min-height: 600px;
	text-align: center;
	position: relative;
}
.badge_craft_loop_stretch {
	width: 418px;
}
.badge_craft_loop {
	position: relative;
	width: 0;
	margin: 0 auto;
}

#badge_craft_loop_throbber {
	position: absolute;
	left: 193px;
	top: 0;
}

.badge_craft_header {
	position: relative;
	height: 93px;
}

.badge_craft_header_step {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	line-height: 93px;
	text-align: center;
	font-size: 24px;
	color: #ffffff;
			font-family: "Motiva Sans", Sans-serif;
		font-weight: 200; /* thin */

		}

#badge_completed {
	max-width: 414px;
	margin: 0 auto 30px auto;
}

.completed_badge_animation_ctn {
	box-shadow: 9px 9px 16px #000000;
	border-radius: 3px;
	overflow: hidden;
	max-width: 0;
	transition: max-width 0.5s;
}

.completed_badge_animation_ctn.show {
	max-width: 414px;
}

.completed_badge_ctn {
	max-width: 388px;
	padding: 13px;
	border-top: 1px solid #7d7c7a;
	border-radius: 3px;

	text-align: left;

	background-color: #3d3d3b;
	background: -webkit-linear-gradient( top, #474745 5%, #2b2b2a 95%);
	background: linear-gradient( to bottom, #474745 5%, #2b2b2a 95%);
}

.completed_badge_inner {
	position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;

	background-color: #262627;
	border-radius: 3px;
	border: 1px solid #6f6c6c;

	height: 102px;

	box-shadow: inset 1px 1px 3px #000000;
}

.completed_badge_icon {
	margin-left: 17px;
}

.completed_badge_icon, .completed_badge_icon img {
	width: 80px;
	height: 80px;
}

.completed_badge_content {
	padding-left: 16px;
    padding-right: 8px;

	font-size: 13px;
	line-height: 18px;
}

.completed_badge_title {
	font-size: 17px;
	line-height: normal;
	color: #e1e1e1;
}

.completed_badge_xp {
	color: #6e6e6e;
}

.completed_badge_unlock, .completed_badge_game {
	color: #6280a9;
}

.completed_badge_unlock {
	font-size: 11px;
}

.badge_rewards {
}

.badge_rewards_rule {
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6QUExNzA0MkY5NzEzMTFFMjgyMTI4NzQ5MkQ1QkE1NkEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6bRYJwAAAA3klEQVR42uyWUQoCMQxE08VPD+KfB/AonseTea+OH1qodTKJiB9KBkq7m0kaCtt9u/Plure72jTPQ8U87xhbkGcPz1jbksPyWT/MY+R5s2c1Z828JryZep4fydqlUqn0y4K49zx/W3K9miB3Zw9ylBdLbPQM4gPpBYkY82LaE6IWgngn/mxvJmYT5+Cd78t5t8PxpMBD/dwz4JHxb2KvDHgwr5q9GJw+3oWO5nwECjzeySmVSqV/AJBPc0AgZrzrAeDAgZdMXM1YQCYLJdGYa/YAWr4JHkjARQgeNwEGAAGvgkH1x4fkAAAAAElFTkSuQmCC' );
	background-position: center top;
	background-repeat: no-repeat;
	height: 2px;
	margin-bottom: 36px;
}

.badge_reward_level {
	line-height: 36px;
	text-align: center;
	margin-bottom: 14px;
	color: #bbbaba;
	font-size: 17px;
}

.badge_reward_level .friendPlayerLevel {
	margin-right: 14px;
}

.badge_reward_ctn {
	background-color: #5e8aca;
	/*border: 1px solid #5e8aca; */
	border-radius: 3px;
	padding: 1px;
	max-width: 343px;
	margin: 0 auto 14px auto;
}

.badge_reward {

	border-radius: 3px;
	background-color: #282d39;
	padding: 8px;
	min-height: 62px;

	text-align: left;
	font-size: 13px;
	color: #6e6e6e;
}

.badge_reward_label {
	background-color: #5e8aca;
	line-height: 18px;
	color: #ffffff;
	text-align: left;
	padding: 0 8px;
	font-size: 13px;
}

.badge_reward_icon {
	float: left;
	min-height: 62px;
	margin-right: 8px;
}

.badge_reward_content {
	padding-top: 6px;
}

.badge_reward_title {
	color: #bbbaba;
}

.badge_rewards_actions {
	max-width: 264px;
	margin: 0 auto 32px auto;
}

.badge_rewards_actions .btn_small {
	display: block;
	margin-bottom: 8px;
}


/* booster pack unpacking */
.booster_unpack_dialog {
	width: 700px;
	min-height: 380px;
	overflow: hidden;
}

.booster_unpack_cardarea {
	height: 308px;
	width: 700px;
	position: relative;
}

.booster_unpack_actions {
	padding-top: 40px;
}

.booster_unpack_actions .btn_medium {
	margin-right: 19px;
}

.booster_unpack_actions .booster_unpack_closebtn {
	float: right;
	margin-right: 0;
}

.booster_unpack_card {
	position: absolute;
	top: 0;

	padding-top: 265px;

	width: 235px;
}

.booster_unpack_card .booster_unpack_card_title {
	padding: 2px;
}

.booster_unpack_card.card_back.card1{
	z-index: 2;
	left: 7px;
	top: 7px;
}

.booster_unpack_card.card_back.card2{
	z-index: 3;
	left: 4px;
	top: 4px;
}

.booster_unpack_card.card_back.card3{
	z-index: 4;
	left: 1px;
	top: 1px;
}

.booster_unpack_card.card_front {
	z-index: 6;
}

.booster_unpack_ribbon {
	z-index: 5;
	position: absolute;
	left: -4px;
	top: 183px;
}

.booster_unpack_booster {
	position: absolute;
	left: 235px;
	top: 15px;
	z-index: 5;
}

.booster_unpack_booster.move_to_position {
	top: 0;
	left: 0;
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease;
	-webkit-animation-timing-function: ease;
	animation-name: anim_booster_move_to_position;
	-webkit-animation-name: anim_booster_move_to_position;
}

@keyframes anim_booster_move_to_position {
	from {
		left: 235px;
		top: 15px;
	}
	to {
		left: 0;
		top: 0;
	}
}

@-webkit-keyframes anim_booster_move_to_position {
	from {
		left: 235px;
		top: 15px;
	}
	to {
		left: 0;
		top: 0;
	}
}



.booster_unpack_card.card1.final_position, .booster_unpack_card.card_front.card1 {
	left: 0;
	top: 0;
}
.booster_unpack_card.card1.final_position {
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease;
	-webkit-animation-timing-function: ease;
	animation-name: anim_card1_final_position;
	-webkit-animation-name: anim_card1_final_position;
}

@keyframes anim_card1_final_position {
	from {
		left: 7px;
		top: 7px;
	}
	to {
		left: 0;
		top: 0;
	}
}

@-webkit-keyframes anim_card1_final_position {
	from {
		left: 7px;
		top: 7px;
	}
	to {
		left: 0;
		top: 0;
	}
}


.booster_unpack_card.card2.final_position, .booster_unpack_card.card_front.card2 {
	left: 235px;
	top: 0;

}
.booster_unpack_card.card2.final_position{

	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease;
	-webkit-animation-timing-function: ease;
	animation-name: anim_card2_final_position;
	-webkit-animation-name: anim_card2_final_position;
}

@keyframes anim_card2_final_position {
	from {
		left: 4px;
		top: 4px;
	}
	to {
		left: 235px;
		top: 0;
	}
}

@-webkit-keyframes anim_card2_final_position {
	from {
		left: 4px;
		top: 4px;
	}
	to {
		left: 235px;
		top: 0;
	}
}


.booster_unpack_card.card3.final_position, .booster_unpack_card.card_front.card3 {
	left: 470px;
	top: 0;
}
.booster_unpack_card.card3.final_position{

	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease;
	-webkit-animation-timing-function: ease;
	animation-name: anim_card3_final_position;
	-webkit-animation-name: anim_card3_final_position;
}

@keyframes anim_card3_final_position {
	from {
		left: 1px;
		top: 1px;
	}
	to {
		left: 470px;
		top: 0;
	}
}

@-webkit-keyframes anim_card3_final_position {
	from {
		left: 1px;
		top: 1px;
	}
	to {
		left: 470px;
		top: 0;
	}
}


.booster_unpack_card .booster_unpack_card_image_flip_gradient, .booster_unpack_card .booster_unpack_card_image {
	position: absolute;
	left: 0;
	top: 0;
	height: 261px;
	z-index: 1;

}

.booster_unpack_card .booster_unpack_card_image_flip_gradient {
	background: -webkit-linear-gradient( left, #666666 5%,#000000 95%);
	background: linear-gradient( to right, #666666 5%,#000000 95%);
	z-index: 2;
}

.booster_unpack_card.card_back .booster_unpack_card_image_flip_gradient {
	background: -webkit-linear-gradient( left, #000000 5%,#666666 95%);
	background: linear-gradient( to right, #000000 5%,#666666 95%);
	z-index: 2;
}


.card_back.start_flip_card .booster_unpack_card_image_flip_gradient {
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease-in;
	-webkit-animation-timing-function: ease-in;
	animation-name: anim_flip_card_back, anim_flip_gradient_back;
	-webkit-animation-name: anim_flip_card_back, anim_flip_gradient_back;
}

.card_back.start_flip_card .booster_unpack_card_image {
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease-in;
	-webkit-animation-timing-function: ease-in;
	animation-name: anim_flip_card_back;
	-webkit-animation-name: anim_flip_card_back;
}


@keyframes anim_flip_card_back {
	from {
		width: 225px;
	}
	50% {
		left: 115px;
		width: 1px;
	}
	to {
		left: 115px;
		width: 1px;
	}
}

@-webkit-keyframes anim_flip_card_back {
	from {
		left: 0;
		width: 225px;
	}
	50% {
		left: 115px;
		width: 1px;
	}
	to {
		left: 115px;
		width: 1px;
	}
}

@keyframes anim_flip_gradient_back {
	from {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	to {
	}
}

@-webkit-keyframes anim_flip_gradient_back {
	from {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	to {
	}
}

.card_front.start_flip_card .booster_unpack_card_image_flip_gradient {
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease-out;
	-webkit-animation-timing-function: ease-out;
	animation-name: anim_flip_card, anim_flip_gradient;
	-webkit-animation-name: anim_flip_card, anim_flip_gradient;
	visibility: visible;
}

.card_front.start_flip_card .booster_unpack_card_image {
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	animation-timing-function: ease-out;
	-webkit-animation-timing-function: ease-out;
	animation-name: anim_flip_card;
	-webkit-animation-name: anim_flip_card;
}

@keyframes anim_flip_card {
	from {
		left: 115px;
		width: 0px;
	}
	50% {
		left: 115px;
		width: 0px;
	}
	to {
		left: 0;
		width: 226px;
	}
}

@-webkit-keyframes anim_flip_card {
	from {
		left: 115px;
		width: 0px;
	}
	50% {
		left: 115px;
		width: 0px;
	}
	to {
		left: 0;
		width: 226px;
	}
}

@keyframes anim_flip_gradient {
	from {
	}
	50% {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@-webkit-keyframes anim_flip_gradient {
	from {
	}
	50% {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.booster_unpack_ribbon.unwrap {
	opacity: 0;
	animation-duration: .5s;
	-webkit-animation-duration: .5s;
	animation-timing-function: ease;
	-webkit-animation-timing-function: ease;
	animation-name: anim_ribbon_unwrap;
	-webkit-animation-name: anim_ribbon_unwrap;
}

@keyframes anim_ribbon_unwrap {
	from {
		opacity: 1;
		width: 240px;
		height: 79px;
		top: 183px;
	}
	to {
		opacity: 0;
		width: 480px;
		height: 158px;
		top: 104px;
	}
}

@-webkit-keyframes anim_ribbon_unwrap {
	from {
		opacity: 1;
		width: 240px;
		height: 79px;
		top: 183px;
	}
	to {
		opacity: 0;
		width: 480px;
		height: 158px;
		top: 104px;
	}
}