* {
	box-sizing: border-box;
}

html {
	background: rgb(255, 235, 0);
}

html, body {
	margin: 0;
	padding: 0;
	position: relative;
	color: #464637;
	height: 100vh;
	font-size: 20px;
	font-family: 'futura-pt', Futura, "Trebuchet MS", Arial, sans-serif;
	width: 100%;
	overflow: hidden;
	-webkit-touch-callout: none; /* iOS Safari */
	    -webkit-user-select: none; /* Safari */
	     -khtml-user-select: none; /* Konqueror HTML */
	       -moz-user-select: none; /* Firefox */
	        -ms-user-select: none; /* Internet Explorer/Edge */
	            user-select: none;
	list-style: none;
}

h1 {
	color: red;
	font-size: 20px;
	text-align: center;
}

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

#timeline-wrapper {
	width: 100%;
	height: 60%;
	overflow-x: scroll;
	overflow-y: hidden;
	white-space: nowrap;
	text-align: center;
	padding: 10px;
	position: relative;
}

#timeline-line {
	height: 5px;
	width: 100%;
	background: rgb(45, 75, 160);
	position: absolute;
	top: calc(50% - 2.5px);
	display: block;
	pointer-events: none;
	left: 0;
}

li.sortable-chosen.sortable-ghost {
	background: rgba(0, 0, 0, 0.1) !important;
	opacity: 1;
}

li.sortable-chosen.sortable-ghost > * {
	opacity: 0;
}

#timeline-line::before {
	display: block;
	height: 30px;
	width: 5px;
	background: rgb(45, 75, 160);
	position: absolute;
	left: 0;
	top: -13px;
	content: " ";
}

#timeline-line::after {
	display: block;
	height: 30px;
	width: 5px;
	background: rgb(45, 75, 160);
	position: absolute;
	right: 0;
	top: -13px;
	content: " ";
}

#dock-wrapper {
	width: 100%;
	height: 40%;
	overflow-x: scroll;
	overflow-y: hidden;
	white-space: nowrap;
	text-align: center;
	padding: 10px;
	background: rgb(45, 75, 160);
}

#dock, #timeline {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

#timeline {
    display: inline-block;
    min-width: 100%;
    transform: none;
    top: 0;
    vertical-align: middle;
    padding: 0 100px;
}

#height-helper {
	height: 100%;
	display: inline-block;
	pointer-events: none;
	vertical-align: middle;
}

#dock-wrapper li, #timeline-wrapper li {
	display: inline-block;
	vertical-align: middle;
	width: 200px;
	font-size: 0;
	margin: 0 10px;
	background: white;
	position: relative;
}

.sortable-fallback {
	display: inline-block;
	vertical-align: middle;
	width: 150px;
	font-size: 0;
	margin: 0 10px;
	background: white;
	position: relative;
}

.sortable-fallback .date {
	display: none;
}

.sortable-fallback img {
	width: 100%;
	-webkit-user-drag: none;
	  -khtml-user-drag: none;
	  -moz-user-drag: none;
	  -o-user-drag: none;
	  user-drag: none;
}

.sortable-fallback .caption {
	font-size: 14px;
	width: 100%;
	padding: 10px 12px;
	background: white;
	white-space: normal;
	text-align: left;
	line-height: 1.1;
}

#dock-wrapper li {
	margin: 0 30px;
}

#dock-wrapper li {
	width: 150px;
}

#timeline-wrapper li img, #dock-wrapper li img {
	width: 100%;
	-webkit-user-drag: none;
	  -khtml-user-drag: none;
	  -moz-user-drag: none;
	  -o-user-drag: none;
	  user-drag: none;
}

#dock-wrapper li .caption, #timeline-wrapper li .caption {
	font-size: 16px;
	width: 100%;
	padding: 10px 12px;
	background: white;
	white-space: normal;
	text-align: left;
	line-height: 1.1;
}

#dock-wrapper li .caption {
	font-size: 14px;
}

.caption::first-letter {
	text-transform: uppercase;
}

.date {
    font-size: 18px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    bottom: -35px;
}

.incorrect {
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 10;
	top: 0;
	background: rgb(255, 0, 0) url('../images/cross.svg') center center no-repeat;
	background-size: 30% auto;
}

.correct {
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 10;
	top: 0;
	background: rgb(0, 160, 90) url('../images/tick.svg') center center no-repeat;
	background-size: 30% auto;
}

#dock-wrapper li .date {
	display: none;
}

.sortable-ghost {
	opacity: 0;
}

#life-counter {
	position: absolute;
	z-index: 500;
	right: 20px;
	top: 20px;
}

#life-counter svg {
	display: inline-block;
	width: 50px;
	padding: 5px;
	fill: red;
	transition: fill 0.5s ease;
}

#life-counter svg.lost {
	fill: rgb(150, 145, 0);
}

#sm-logo {
	position: absolute;
	z-index: 500;
	width: 80px;
	top: 20px;
	left: 20px;
}

.splash {
	position: absolute;
	z-index: 200;
	background-color: rgb(255, 235, 0);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.5s ease;
}

.splash.show {
	opacity: 1;
	transform: translateY(0);
}

.splash.show .content {
	transform: translateY(-50%);
}

.splash .content {
	display: block;
	text-align: center;
	position: relative;
	top: 50%;
	transform: translateY(0);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: red;
	transition: all 0.5s ease;
}

.splash .content h2 {
	font-size: 30px;
	margin: 0;
	margin-bottom: 10px;
}

.splash .content h1 {
	font-size: 7vw;
	margin: 0;
	line-height: 1;
}

.splash .content .score-text {
	font-size: 80px;
	font-weight: bold;
}

.splash .content #start-over {
	font-size: 25px;
	color: white;
	background-color: red;
	padding: 1em 2em;
	display: inline-block;
	margin-top: 20px;
	font-weight: bold;
	cursor: pointer;
}

#start-screen {
	height: 60%;	
	transition: opacity 0.5s ease, transform 0.5s ease;
}

#start-screen.show .content {
	opacity: 0;
	transition: opacity 0.5s ease;
}

#start-screen.show-content .content {
	opacity: 1;
}

#start-screen.hide {
	opacity: 0;
	transform: translateY(-100%);
}

#intro-img {
	width: 50vh;
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 200;
	transition: 0.5s ease all;
}

#intro-img.docked {
	width: 160px;
	left: 100px;
	top: 20px;
	transform: translate(0, 0);
}

@media only screen and (max-width: 600px) {
	#sm-logo {
		width: 30px;
	}

	#intro-img.docked {
		width: 60px;
		left: 50px;
	}

	#life-counter svg {
		width: 30px;
	}

	#dock-wrapper li {
		width: 120px;
	}

	#timeline-wrapper li {
		width: 145px;
	}
}