* {padding: 0;
    margin-left: 0;
    margin-right: 0;
    }


#container {
	padding: 2px;
	text-align: center;
	position:fixed;
	left:650px;
	top:300px;
	
}

.timer {
	padding: 3px;
	background: linear-gradient(top, #222, #444);
	overflow: hidden;
	display: inline-block;
	border: 7px solid #efefef;
	border-radius: 5px;
	position: relative;
	background-color:gray;
	box-shadow: 
		inset 0 -2px 10px 1px rgba(0, 0, 0, 0.75), 
		0 5px 20px -10px rgba(0, 0, 0, 1);
	z-index:1;	
}

.cell {
	/*Should only display 1 digit. Hence height = line height of .numbers
	and width = width of .numbers*/
	width: 0.60em;
	height: 40px;
	font-size: 30px;
	overflow: hidden;
	position: relative;
	float: left;
}

.numbers {
	width: 0.6em;
	line-height: 40px;
	font-family: digital, arial, verdana;
	text-align: center;
	color: #fff;
	
	position: absolute;
	top: 0;
	left: 0;
	
	/*Glow to the text*/
	text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

/*Styles for the controls*/
#timer_controls {
	margin-top: -5px;
}
#timer_controls label {
	cursor: pointer;
	padding: 5px 10px;
	background: #efefef;
	font-family: arial, verdana, tahoma;
	font-size: 11px;
	border-radius: 0 0 3px 3px;
}
input[name="controls"] {display: none;}

/*Control code*/

#stop:checked~.timer .numbers {animation-play-state: paused;-webkit-animation-play-state: paused;-moz-animation-play-state: paused;-o-animation-play-state: paused;-ms-animation-play-state:paused}
#start:checked~.timer .numbers {-webkit-animation-play-state: running;-moz-animation-play-state: running;-o-animation-play-state: running;-ms-animation-play-state:running}
#reset:checked~.timer .numbers {animation-play-state: none;-moz-animation-play-state: none;-o-animation-play-state: none;}


.moveten {
	/*The digits move but dont look good. We will use steps now
	10 digits = 10 steps. You can now see the digits swapping instead of 
	moving pixel-by-pixel*/
	animation: moveten 1s steps(10, end) infinite;
	/*By default animation should be paused*/
	animation-play-state: running;
	
	-webkit-animation:moveten 1s steps(10, end) infinite;
    -webkit-animation-play-state: running;
}
.movesix {
	animation: movesix 1s steps(6, end) infinite;
	animation-play-state: running;
	
	-webkit-animation:movesix 1s steps(6, end) infinite;
    -webkit-animation-play-state: running;
}

/*Now we need to sync the animation speed with time speed*/
/*One second per digit. 10 digits. Hence 10s*/
.second {animation-duration: 10s;}
.second { -webkit-animation-duration: 10s;}

.tensecond {animation-duration: 60s;} /*60 times .second*/
.tensecond { -webkit-animation-duration: 60s;}

.milisecond {animation-duration: 1s;} /*1/10th of .second*/
.milisecond {-webkit-animation-duration: 1s;} /*1/10th of .second*/

.tenmilisecond {animation-duration: 0.1s;}
.tenmilisecond {-webkit-animation-duration: 0.1s;}

.hundredmilisecond {animation-duration: 0.01s;}
.hundredmilisecond {-webkit-animation-duration: 0.01s;}

.minute {animation-duration: 600s;} /*60 times .second*/
.minute {-webkit-animation-duration: 600s;} /*60 times .second*/

.tenminute {animation-duration: 3600s;} /*60 times .minute*/
.tenminute {-webkit-animation-duration: 3600s;} /*60 times .minute*/

.hour {animation-duration: 36000s;} /*60 times .minute*/
.tenhour {animation-duration: 360000s;} /*10 times .hour*/
.hour {-webkit-animation-duration: 36000s;} /*60 times .minute*/
.tenhour {-webkit-animation-duration: 360000s;} /*10 times .hour*/

@keyframes moveten {
	0% {top: 0;}
	100% {top: -400px;} 
	/*height = 40. digits = 10. hence -400 to move it completely to the top*/
}

@keyframes movesix {
	0% {top: 0;}
	100% {top: -240px;} 
	/*height = 40. digits = 6. hence -240 to move it completely to the top*/
}

@-webkit-keyframes moveten {
	0% {top: 0;}
	100% {top: -400px;} 
	/*height = 40. digits = 10. hence -400 to move it completely to the top*/
}

@-webkit-keyframes movesix {
	0% {top: 0;}
	100% {top: -240px;} 
	/*height = 40. digits = 6. hence -240 to move it completely to the top*/
}


/*Lets use a better font for the numbers*/
@font-face {
	font-family: 'digital';
	src: url('https://thecodeplayer.com/uploads/fonts/DS-DIGI.TTF');
	
}