@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: 700
}

#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
}

.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: #2e5495;
}

#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.gif) 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: .8em;
	font-size: 3em;
	text-align: center;
	font-weight: 700;
	z-index: 1
}

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

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

#smoker,
#smoker2 {
	display: none
}

#falling_icon {
	width: 1.2em;
	height: 1.2em;
	position: absolute;
	bottom: -1.45em;
	left: .2em;
	opacity: .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: .75em;
	line-height: 1.5em;
	text-transform: lowercase;
	margin-bottom: -.5em;
	cursor: default;
	opacity: .5
}

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

#hitcount_span {
	position: absolute;
	top: 0;
	opacity: .5
}

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

#bb {
	position: relative;
	left: -200px;
	width: 128px;
	height: 291px;
	z-index: 90;
	transform-origin: bottom left;
	cursor: pointer
}

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

#torso {
	height: 256px;
	position: relative;
	background: url(./body.png) no-repeat top left;
	z-index: 94;
	background-size: 100% 100%;
	width: 158%;
	left: -50px;
}

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

#leg1 {
	background: url(./bleft.png) no-repeat bottom left;
	background-size: 100%;
	height: 149px;
	z-index: 93
}

#leg2 {
	background: url(./bright.png) no-repeat bottom left;
	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: #fff;
	text-align: center;
	background: rgba(0, 0, 0, .5);
	bottom: 0;
	line-height: 2em;
	z-index: 96
}

#overlay {
	display: none;
	height: 100%;
	width: 100%;
	position: absolute;
	z-index: 96;
	pointer-events: none
}

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

#content {
	z-index: 93;
    text-align: center;
    margin-top: 8px;
    padding: 10px;
    border: 2px solid silver;
    border-radius: 5px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

#credits {
	font-size: 1.2em
}

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

#attribution:hover {
	text-decoration: underline
}

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

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

#footer {
	text-align: center;
	position: relative;
	margin: 2em auto 0;
	padding: 0;
	font-weight: 400;
	z-index: 96;
	font-size: .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 {
	user-select: none;
	position: relative
}

#a,
#b {
	display: none
}

#left,
#right {
	    display: inline-block;
    position: relative;
    border: solid #fff 1px;
    border-radius: 6px;
    line-height: 25px;
    font-size: 35px;
    cursor: pointer;
    padding: 10px;
    color: #fff;
}

#left {
	text-align: left
}

#right {
	text-align: right
}

#leftborder,
#rightborder {
	position: relative;
	display: inline-block;
	border-radius: 2px;
}

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

}

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

#scenes {
	margin-top: 10px;
	user-select: none
}

#scenes div {
	    cursor: pointer;
    width: 80px;
    height: 40px;
    display: inline-block;
    margin-right: 10px;
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 100%;
}

#scene1 {
	background-image: url(./bg.png);
	border: 2px solid #fff
}

#scene2,
#scene3,
#scene6,
#scene7 {
	border: 2px solid #283681
}

#scene2 {
	background-image: url(./bg2.png)
}

#scene3 {
	background-image: url(./bg3.png)
}

#scene6 {
	background-image: url(./bg4.png)
}

#scene7 {
	background-image: url(./bg5.jpg);
	margin-right: 0!important
}

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

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

#volume {
	width: 16px;
	height: 16px;
	position: absolute;
	bottom: -96px;
	z-index: 99;
	right: 235px;
	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
}
#breaking_bernie {
	position: relative;
	transform-origin: 1800px -100px;
	z-index: 95;
	top: 0
}

#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: .8em;
		bottom: .3em;
		left: 2.2em;
		z-index: 97
	}
	#hitcount_span {
		opacity: 1
	}
	#falling_icon {
		bottom: .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;
		font-size: 2.7em
	}
	#arrows {
		margin-top: 0
	}
	#spaces {
		display: none
	}
	#leftborder,
	#rightborder {
		border: 0
	}
	#leftborder {
		margin-right: 10%
	}
	#volume {
		padding: 3px;
		bottom: 0;
		right: 0
	}
	#footer {
		margin: 2em 0
	}
	#scenes {
		margin-top: 0
	}
	#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
	}
}