@keyframes swing {
	0%,
	100% {
		transform: rotate(-10deg) scaleX(1);
	}
	50% {
		transform: rotate(10deg) scaleX(1);
	}
}

@keyframes swing_backwards {
	0%,
	100% {
		transform: rotate(-10deg) scaleX(-1);
	}
	50% {
		transform: rotate(10deg) scaleX(-1);
	}
}

#torso {
	transform-origin: 0 0;
}

#flavor_link {
	font-size: 2em;
	margin-bottom: 2em;
	text-transform: uppercase;
	font-weight: bold;
}

#box canvas {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 80;
	cursor: default;
}

#b_wrapper {
	position: absolute;
	left: -300px;
	bottom: 0;
	visibility: hidden;
}

.tv {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
	visibility: hidden;
}

.screen {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	margin: auto;
	opacity: 0;
	/*  transition: opacity .5s; */
}

.active {
	opacity: 1;
}

#cover {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: none;
}

#box_wrapper,
#header_div {
	margin: 2em auto 0;
}

body {
	background-color: #283681;
}

#header {
	width: 450px;
}

#header_div {
	text-align: center;
	display: block;
}

#box_wrapper {
	background-color: #1e2862;
}

#box,
#box_wrapper {
	width: 800px;
	height: 450px;
	position: relative;
}

#box {
	overflow: hidden;
	user-select: none;
	background: url('bg1.jpg') top left no-repeat;
	background-size: 100%;
	background-position: bottom;
	margin: 0 auto;
	z-index: 80;
	top: 0;
	left: 0;
}

#loading {
	top: 50%;
	height: 2em;
	width: 100%;
	margin-top: -1.5em;
	line-height: 3em;
	color: #111637;
	position: absolute;
	text-transform: lowercase;
	text-indent: 0.8em;
	font-size: 3em;
	text-align: center;
	font-weight: bold;
	z-index: 1;
}

@media screen and (max-width: 830px) {
	#header {
		width: 250px;
	}
	#box {
		transform-origin: 0 0;
		transform: scale(0.4);
		position: absolute;
		margin: 0;
	}
	#box,
	#box_wrapper {
		padding: 0;
	}
	#box_wrapper {
		position: relative;
		margin: 0 auto;
		width: 320px;
		height: 180px;
		z-index: 0;
	}
	#spaces {
		display: none;
	}
}

body {
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
}

#smoker,
#smoker2 {
	/*    width: 800px;
        height: 450px;
        */
	display: none;
}

#falling_icon {
	width: 1.2em;
	height: 1.2em;
	position: absolute;
	bottom: -1.45em;
	left: 0.2em;
	opacity: 0.5;
}

#camera_icon {
	width: 1.2em;
	height: 1.2em;
	position: absolute;
	bottom: -1.85em;
	right: 3em;
	opacity: 1;
	display: none;
}

#spaces {
	position: relative;
	font-size: 0.75em;
	margin-top: 1em;
	line-height: 1.5em;
	text-transform: lowercase;
	margin-bottom: -0.5em;
	cursor: default;
	opacity: 0.5;
}

#counter {
	position: absolute;
	bottom: -1.5em;
	font-size: 1em;
	height: 1em;
	left: 30px;
	overflow: hidden;
	width: 100%;
	cursor: default;
	user-select: none;
}

#hitcount_span {
	position: absolute;
	top: 0;
	opacity: 0.5;
}

#hitcount_new {
	position: absolute;
	top: 1em;
}

#donald {
	position: relative;
	left: -200px;
	width: 128px;
	height: 291px;
	z-index: 90;
	transform-origin: 0% 100%;
	cursor: pointer;
}

#torso,
#leg1,
#leg2 {
	position: absolute;
	width: 80px;
}

#torso {
	height: 214px;
	position: relative;
	background: url('trump_torso_normal.png') no-repeat top left;
	z-index: 94;
	background-size: 100%;
}

#leg1,
#leg2 {
	top: 105px;
	transform-origin: 50% 20%;
	margin-left: 2px;
}

#leg1 {
	background: url('trump_left_leg.png') no-repeat 0% 100%;
	background-size: 100%;
	height: 149px;
	z-index: 93;
}

#leg2 {
	background: url('trump_right_leg.png') no-repeat 0% 100%;
	background-size: 100%;
	height: 149px;
	z-index: 92;
	margin-top: -5px;
}

#share {
	margin: 2em 0;
}

#rod {
	width: 100px;
	height: 18px;
	transform: rotate(-145deg);
	margin: 3em 0 2em;
	border: 0;
	fill: #fff;
}

#rod:hover {
	fill: #a2d350;
}

#error {
	display: none;
	position: absolute;
	width: 100%;
	text-transform: lowercase;
	height: 2em;
	font-size: 1em;
	color: white;
	text-align: center;
	background: rgba(0, 0, 0, 0.5);
	bottom: 0;
	line-height: 2em;
	z-index: 96;
}

#overlay {
	display: none;
	height: 100%;
	width: 100%;
	position: absolute;
	background: url('overlay_2.png') no-repeat 0% 100%;
	z-index: 96;
	pointer-events: none;
}

#tubular {
	display: none;
	height: 100%;
	width: 100%;
	position: absolute;
}

#content {
	z-index: 93;
	text-align: center;
	position: relative;
	margin-top: 0em;
}

#credits {
	font-size: 1.2em;
}

#attribution {
	display: inline-block;
	cursor: pointer;
}

#attribution:hover {
	text-decoration: underline;
}

#attribution,
#credits,
#credits_box {
	margin-top: 1em;
	opacity: 0.5;
}

#credits_box {
	min-height: 90px;
	margin-bottom: 1em;
}

#footer {
	text-align: center;
	position: relative;
	margin: 2em auto 0;
	padding: 0;
	font-weight: normal;
	z-index: 96;
	font-size: 0.75em;
	max-width: 800px;
	text-transform: lowercase;
}

#footer a:link {
	text-decoration: none;
	color: #fff;
}

#footer a:hover {
	text-decoration: underline;
	color: #fff;
}

#footer a:active {
	text-decoration: none;
	color: #fff;
}

#footer a:visited {
	text-decoration: none;
	color: #fff;
}

#arrows {
	margin-top: 2em;
	user-select: none;
	position: relative;
}

#a,
#b {
	display: none;
}

#left,
#right {
	width: 1.8em;
	height: 1.8em;
	display: inline-block;
	position: relative;
	border: solid #fff 1px;
	border-radius: 3px;
	line-height: 2.2em;
	font-size: 1.5em;
	cursor: pointer;
}

#left {
	text-align: left;
}

#right {
	text-align: right;
}

#leftborder,
#rightborder {
	position: relative;
	display: inline-block;
	border-radius: 2px;
	border: solid rgba(255, 255, 255, 0.2) 1px;
}

#leftborder {
	margin-right: 1em;
	padding: 7px 8px 8px 8px;
}

#rightborder {
	padding: 7px 8px 8px 8px;
}

#scenes {
	margin-top: 2em;
	user-select: none;
}

#scenes div {
	cursor: pointer;
	width: 128px;
	height: 72px;
	display: inline-block;
	margin-right: 1em;
	background-position: top left;
	background-repeat: no-repeat;
	background-size: 100%;
}

#scene1 {
	background-image: url('bg1-thumb.jpg');
	border: 2px solid #fff;
}

#scene2,
#scene3,
#scene4,
#scene5 {
	border: 2px solid #283681;
}

#scene2 {
	background-image: url('bg2-thumb.jpg');
}

#scene3 {
	background-image: url('bg3-thumb.jpg');
}

#scene4 {
	background-image: url('bg4-thumb.jpg');
}

#scene5 {
	background-image: url('bg5-thumb.jpg');
	margin-right: 0 !important;
}

ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: none;
}

li {
	display: inline-block;
	margin-right: 0.3em;
}

#volume {
	width: 20px;
	height: 20px;
	position: absolute;
	bottom: -30px;
	z-index: 99;
	right: 0;
	cursor: pointer;
	user-select: none;
}

#dino,
#head,
#jaw {
	width: 595px;
	height: 490px;
}

#smoker,
#smoker2,
#confetti {
	width: 100%;
	height: 100%;
	z-index: 96;
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
}

#dino {
	display: none;
	position: absolute;
	right: -305px;
	top: -870px;
	z-index: 95;
	transform-origin: 800px 800px;
	transform: rotate(-25deg);
}

#letter_wrapper {
	width: 150px;
	height: 137px;
	top: -150px;
	right: -50px;
	position: absolute;
	transform: rotate(59deg);
	display: none;
}

#letter {
	background: url('t.png') no-repeat top left;
	position: absolute;
	width: 150px;
	height: 137px;
	left: 0;
	top: 0;
	z-index: 96;
	background-size: 100%;
}

#rubble {
	background: url('rubble.png') no-repeat bottom right;
	position: absolute;
	display: none;
	right: 0;
	width: 63px;
	height: 16px;
	bottom: 0;
	z-index: 96;
	background-size: 100%;
}

#head {
	background: url('dino.png') no-repeat top left;
	position: relative;
	left: 0;
	top: 0;
	z-index: 96;
	background-size: 100%;
}

#jaw {
	background: url('jaw.png') no-repeat top left;
	transform-origin: 400px 200px;
	position: absolute;
	background-size: 100%;
	left: 0px;
	top: 0px;
}

#dino_and_donald {
	position: relative;
	transform-origin: 1800px -100px;
	z-index: 95;
	top: 0;
}

#wordbubble {
	display: none;
	position: absolute;
	left: 250px;
	bottom: 40px;
	background: url('wordbubble.png') no-repeat top left;
	z-index: 95;
	width: 200px;
	height: 153px;
	background-size: 100%;
}

#created {
	cursor: default;
}

#a,
#b {
	border: solid #fff 1px;
	display: inline-block;
	position: relative;
	border-radius: 50%;
	font-size: 1em;
	height: 5em;
	line-height: 5em;
	width: 5em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
}

#b {
	margin-right: 20%;
}

#buttons {
	user-select: none;
	position: relative;
	margin-top: 1em;
	display: none;
}

#tablet {
	margin-top: 1em;
	cursor: pointer;
}

#tablet_icon {
	width: 20px;
}

#keyboard_icon {
	display: none;
	width: 25px;
}

@media screen and (max-width: 830px) {
	#tablet {
		display: none;
	}
	#buttons {
		display: block;
	}
	#counter {
		font-size: 0.8em;
		bottom: 0.3em;
		left: 2.2em;
		z-index: 97;
	}
	#hitcount_span {
		opacity: 1;
	}
	#falling_icon {
		bottom: 0.25em;
		height: 1em;
		width: 1em;
		z-index: 98;
		opacity: 1;
	}
	#error {
		bottom: 50%;
		margin-bottom: -2em;
	}
	#credits_box {
		min-height: 2em;
	}
	#left,
	#right {
		border: solid #fff 1px;
		border-radius: 2px;
		line-height: 2em;
		font-size: 2.7em;
	}
	#arrows {
		margin-top: 0em;
	}
	#spaces {
		display: none;
	}
	#leftborder,
	#rightborder {
		border: 0;
	}
	#leftborder {
		margin-right: 10%;
	}
	#volume {
		width: 25px;
		height: 25px;
		padding: 3px;
		bottom: 0;
		right: 0;
	}
	#footer {
		margin: 2em 0;
	}
	#scenes {
		margin-top: 0em;
	}
	#scenes div {
		display: block;
		margin: 2em auto;
		height: 144px;
		width: 256px;
	}
	#scenes div:last-child {
		margin: 1em auto !important;
	}
	#header_div {
		margin-bottom: 360px;
		margin: 1em;
	}
	#content {
		position: relative;
		top: 20px;
	}
}
