/**************
|  style.css  |
**************/

body {
	font-family: Arial, Helvetica, sans-serif;
	background: lightskyblue;
	text-align: center;
	height: auto;
}

h1 {
	width: 400px;
	margin: 0 auto;
	font-size: 27px;
	font-weight: normal;
	color: midnightblue;
}

.clock {
	padding: 0;
	width: 400px;
	height: auto;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	margin: 25px auto 0;
	position: relative;
	outline: solid 3px midnightblue;
}

#face {
	width: 100%;
	margin: auto;
}

/***********************************************
|  There are 360deg in a complete rotation.    |
|  The hours are 30deg apart. (12 x 30 = 360)  |
|  The minutes are 6deg apart. (60 x 6 = 360)  |
|  The seconds are 6deg apart. (60 x 6 = 360)  |
|----------------------------------------------|
|  You will have to estimate the differences   |
|  that each hand moves. For instance, 11:30   | 
|  puts the hour-hand -15deg from the 12:00    |
|  position.                                   |
***********************************************/

#hors {
	z-index: 2;
	width: 116px;
	height: 116px;

	/* positioning */
	position: absolute;
	top: 20px;
	left: 20px;

	/* rotation */
	transform: rotate(-45deg);
}

#mins {
	z-index: 3;
	width: 170px;
	height: 170px;

	/* positioning */
	position: absolute;
	bottom: 25px;
	right: 15px;

	/* rotation */
	transform: rotate(135deg);
}

#secs {
	z-index: 1;
	width: 184px;
	height: 184px;

	/* positioning */
	position: absolute;
	bottom: 0px;
	left: 10px;

	/* rotation */
	transform: rotate(-90deg);
}

canvas {
	margin: 0 auto;
	background-color: lightskyblue;
	outline: solid 3px midnightblue;
}
