@import url('https://fonts.googleapis.com/css?family=Nunito:300,300i,400,400i,700,700i');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-appearance: none;
	font-family: 'Nunito', sans-serif;
}

html, body {
	width: 100%;
	height: 100%;
	position: relative;
	font-family: sans-serif;
	font-size: 10px;
	background: url('pattern.png');
/*	background: #050505;*/
	font-family: 'Ubuntu', sans-serif;
	color: white;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

body {
	padding-top: 50px;
}

.clearfix:after {
	content: "";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

.clearfix {
	display: block;
}

#titleBar {
	height: 50px;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	border-bottom: 1px solid #fff;
}

#titleBar h3 {
	font-size: 18px;
	height: 50px;
	line-height: 50px;
	padding-left: 10px;
}

div.strip {
	width: calc(100% - 20px);
	height: calc(16.6666% - calc(70px / 6));
	position: relative;
	left: 0%;
	margin: 10px;
}

div.hand {
	border-radius: 10px;
}

h1 {
	position: absolute;
	font-size: 4em;
	opacity: 0.8;
}

#yearHand h1, #monthHand h1, #weekHand h1, #hourHand h1, #minuteHand h1, #secondHand h1 {
	bottom: 0;
	right: 0;
	font-size: 3em;
	opacity: 0.2;
	display: inline-block;
}

#yearHand, #monthHand, #weekHand, #hourHand, #minuteHand, #secondHand {
	background-color: #000;
	background-position: left;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	opacity: 1;
}

h1 {
	opacity: 1 !important;
	z-index: 3;
}

div > h1 {
	margin-left: 10px;
}

div.hand {
	transition: background-color 0.2s linear;
	-webkit-transition: background-color 0.2s linear;
	-moz-transition: background-color 0.2s linear;
	-o-transition: background-color 0.2s linear;
}

div.hand:last-of-type .unitBox {
	border-bottom: 2px solid rgba(255, 0, 0, 0.2);
}

.unitBox {
	height: 100%;
	float: left;
	border-right: 1px solid rgba(102, 0, 102, 0.2);
	position: relative;
	display: none;
	border-top: 1px solid rgba(102, 0, 102, 0.2);
	border-bottom: 1px solid rgba(102, 0, 102, 0.2);
	border-color: rgba(200, 200, 200, 0.4);
}

.unitBox:last-child {
	border-radius: 0 10px 10px 0;
}

div.unitBox:nth-child(3) {
	border-radius: 10px 0 0 10px;
}

p.unitLabel {
	position: absolute;
	bottom: 2px;
	font-size: 1em;
	height: 20px;
	width: 100%;
	line-height: 20px;
	text-align: right;
	padding-right: 3px;
	color: rgba(200, 200, 200, 0.6);
	font-family: 'Nunito', sans-serif;
	font-weight: 100;
}

p.controlLabel {
	display: block;
	height: 100%;
	float: right;
	display: table;
	padding: 5px;
	text-align: center;
	margin-left: 5px;
}

p.controlLabel span {
	display: table-cell;
	vertical-align: middle;
}

.current {
	border-color: transparent;
	color: red;
	background-color: rgba(200, 200, 200, 0.2);
/*	border-radius: 0 10px 10px 0;*/
}

.current p.unitLabel {
/*	color: #660066;*/
	font-weight: 700;
}

div#buttonWrap {
	height: 40px;
	width: auto;
	position: absolute;
	top: 5px;
	right: 5px;
}

button.controlButton {
	border: 0;
	border-radius: 5px;
	background-color: #0f0f0f;
	color: #fff;
	font-weight: bold;
	height: 100%;
	display: block;
	float: right;
	margin-left: 5px;
	padding: 0 20px;
}

button.controlButton:hover {
	cursor: pointer;
}

button.unitsButton {
	padding: 0 20px;
}

button.controlButton.directionButton {
	font-size: 2.5em;
	font-weight: 700;
}

button.controlButton.selected,
button.directionButton:active {
	background-color: #ff7800;
}

@media screen and (max-width: 1024px) {
	html, body {
		font-size: 8px;
	}
}

@media screen and (max-width: 800px) {
	html, body {
		font-size: 7px;
	}
	/*.unitBox {
		border-right: 1px solid rgba(255, 0, 0, 0.4);
		border-top: 1px solid rgba(255, 0, 0, 0.4);
	}*/
}

/*@media screen and (max-width: 760px) {
	div#buttonWrap {
		display: none;
	}
}*/

@media screen and (max-height: 735px) {
	html, body {
		font-size: 6px;
	}
}

@media screen and (max-height: 535px) {
	html, body {
		font-size: 6px;
	}
}

@media screen and (max-height: 480px) {
	html, body {
		font-size: 5px;
	}
}

@media screen and (max-height: 320px) {
	html, body {
		font-size: 3px;
	}
}

@media screen and (max-width: 760px) and (orientation: landscape) {
	html, body {
		font-size: 4px;
	}
	.unitLabel {
		font-size: 1.8em;
	}
}

@media screen and (max-width: 540px) and (orientation: portrait) {
	html, body {
		font-size: 6px;
	}
	.unitLabel {
		display: none;
	}
}

@media screen and (max-width: 570px) and (orientation: landscape) {
	html, body {
		font-size: 3px !important;
	}
	.unitBox {
		border-right: 1px solid rgba(255, 0, 0, 0.4);
		border-top: 1px solid rgba(255, 0, 0, 0.4);
	}
	.unitLabel {
		display: none;
	}
}

@media screen and (max-width: 320px) and (orientation: portrait) {
	html, body {
		font-size: 4px !important;
	}
}
























