body {
	background: url('../img/bg1.jpg') no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

body {
	overflow: hidden;
}

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
 	height: 100%;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

.mainarea {
	display: table;
	font-weight: 300;
	height: 100%;
	margin-top: 80px;
	min-height: 100%;
	position: relative;
	vertical-align: middle;
	width: 100%;
	z-index: 50;
}

#clock {
	position: absolute;
	width: 100%;
	top: 50%;
	position: absolute;
	opacity: 0;
	z-index: -1;
	-webkit-transition: all 1000ms ease;
	-moz-transition: all 1000ms ease;
	-ms-transition: all 1000ms ease;
	-o-transition: all 1000ms ease;
	transition: all 1000ms ease;
	-ms-transform: scale(0.3,0.3);
    -webkit-transform: scale(0.3,0.3);
    transform: scale(0.3,0.3);
}
#clock.active {
	opacity: 1;
	z-index: 30;
	-ms-transform: scale(1,1);
    -webkit-transform: scale(1,1);
    transform: scale(1,1);
}
.clock-container {
	text-align: center;
	margin-bottom: 53px;
}

#canvas {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	position: absolute;
	z-index: 1;
}
#time-container {
	width: 555px;
	height: 555px;
	margin: 0 auto;
	position: relative;
	z-index: 0;
}
.numbers-container {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
#time-container span {
	color: #FFFFFF;
	position: absolute;
	z-index: 2;
}
.clock-number {
	font-family: 'Josefin Sans', sans-serif;/*100 300 400 600*/
	font-weight: 300;
	font-size: 350%;
}
.clock-label {
	font-family: 'Exo 2', sans-serif;
	font-weight: 300;
}
#ticker {
	font-size: 100%;
	left: 220px;
	top: 155px;
}
#timelable {
	font-size: 85%;
	left: 220px;
	top: 335px;
}
#timeleft {
	font-size: 190%;
	left: 180px;
	top: 355px;
}


@media (max-height: 769px) {
	#time-container {
		height: 450px;
		width: 450px;
	}
}

@media (min-width: 950px) and (max-width: 1099px) {
	#time-container {
		height: 450px;
		width: 450px;
	}
}

@media (min-width: 481px) and (max-width: 730px) {
	.mainarea h2 {
		font-size: 54px;
		margin: 0 0 27px;
	}
	.mainarea p {
		font-size: 15px;
		line-height: 18px;
	}
	#time-container {
		height: 450px;
		width: 450px;
	}
}
@media only screen and (max-width: 480px) {
	#time-container-wrap {
		padding-top: 10px;
	}
	.mainarea {
		padding: 0;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	.mainarea h2 {
		font-size: 30px;
		margin: 0 0 17px;
	}
	.mainarea h3 {
		font-size: 22px;
	}
	.mainarea p {
		font-size: 16px;
		line-height: 18px;
	}

	#time-container {
		height: 250px;
		width:250px;
	}
}

