/*** Common ***/
@font-face {
	font-family: NunitoLight;
	src: url('./Fonts/Nunito-Light.ttf') format('truetype');
	font-weight: 300;
}
@font-face {
	font-family: Nunito;
	src: url('./Fonts/Nunito-Regular.ttf') format('truetype');
	font-weight: 400;
}
@font-face {
	font-family: Bauhaus;
	src: url('Fonts/bauhaus-light.ttf') format('truetype');
	font-weight: 300;
}
html {
	font-family: sans-serif;
	line-height: 1.15;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	width: 100%;
	height: 100%;
	background-color: #f3ede2;
	background-image: linear-gradient(to top, #f3ede2, #f0e8d9);
}
body {
    font-family: Nunito, sans-serif;
	width: 100%;
	margin: 8px 0 0;
	padding: 0;
	color: #111;
	background-color: #f3ede2;
	background-image: linear-gradient(to top, #f3ede2, #f0e8d9);
	min-height: 98%;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
	display: block;
}
a:hover {opacity: .7}

#main {
	max-width: 740px;
	margin: 5px auto 0;
	padding: 0 .5em 5em;
	background-color: #f3ede2;
	border-radius: 15px;
	height: 100%;
	border-top: 3px solid #f5f5dc;
	border-right: 3px solid #f5f5dc;
	border-left: 3px solid #f5f5dc;
}
h1 {
	text-align: center;
	margin: 50px 0 0 0;
}
h3 {
	text-align: center;
	margin-top: 10px;
}
	
/*** Header ***/

header {
	padding: .5em 0 0;
	max-width: 100%;
	margin: auto;
}
header img {
	display: block;
	margin: .162em auto 0;
	padding: 0 0 0 .59em;
	max-width: 58%;
}
header h2 {
	font-size: 1.12em;
	text-align: center;
}
#navi {
	display: none;
	text-align: center;
	min-width: 36px;
	z-index: 2;
}
#menu {
	font-size: 1.4em;
	padding: 0;
	text-align: center;
}
#menu ul {
    list-style-type: none;
    margin: 3px 0 0;
	padding: 0 0 1em .15em;
	width: 98.8%;
	float: left;
}
#menu li {
	display: inline-block;
	font-size: 1.16rem;
}
.right {margin-right:4.8em;}

#menu a {
	color: #4471c4;
	text-decoration: none;
	border-bottom: 1px solid #588958;
}

/*** Section 1 ***/

section {
    clear: both;
    font-family: NunitoLight, sans-serif;
	margin: 0 auto;
	max-width: 730px;
	padding: 0;
}

/** Section 1.1 **/
#ad {
	position: relative;
	max-width: 730px;
	margin:3.35em auto .62em;
	font-size: 1.162rem;
	line-height: 1.5em;
	text-align: center;
	color: #588958;
	transform: rotate(-.48deg);
}
#portrait {
	display: block;
	max-width: 220px;
	margin: 1em auto 0;
}
#ad a {
	text-decoration: none;
	border-bottom: 1px solid #778977;
	display: inline-block;
	line-height: 0.8;
	color: #588958;
}
#ad a span {
	font-family: Bauhaus, NunitoLight;
	font-size: .95em;
	letter-spacing: 1px;
}
#br {
	visibility: hidden;
	display: none;
}
#me {
	font-size:1.2rem;
	color: #3b63ab;
}

/** Section 1.2 **/
#time {
	font-size: 1.24rem;
	text-align: center;
	color: #588958;
	margin: 1.18em 0 0 .25em;
	transform: rotate(-.4deg);
}

/** Time Watch **/
 
#watch {
	clear: both;
	width: 252px;
	margin: .62em auto 1.5em;
}
/* Case with 4 Spokes */
#clock {
	position: relative;
	width: 235px;height: 235px;
	border: 12px solid #444;
	background-color: #f0e8d9;
	-moz-border-radius: 235px;
	border-radius: 235px;
	-moz-box-shadow: 0 0 10px gray inset;
	box-shadow: 0 0 15px gray inset;
}
#clock::before, #clock::after, #clock .mask {
	position: absolute;
	left: 50%;right: 50%;top: 0;
	width: 8px;height: 100%;
	margin-left: -4px;
	background-color: #322;
	content: "";
	z-index: 0;
}
/* Cross Turn */
#clock .mask {
	background-color: #322;
	width: 6px;
	margin-left: -3px;
}
#deg030 {
	-ms-transform: rotate(30deg);
	-webkit-transform: rotate(30deg);
	-moz-transform: rotate(30deg);
	transform: rotate(30deg);
}
#deg060 {
	-ms-transform: rotate(60deg);
	-webkit-transform: rotate(60deg);
	-moz-transform: rotate(60deg);
	transform: rotate(60deg);
}
#deg120 {
	-ms-transform: rotate(120deg);
	-webkit-transform: rotate(120deg);
	-moz-transform: rotate(120deg);
	transform: rotate(120deg);
}
#deg150 {
	-ms-transform: rotate(150deg);
	-webkit-transform: rotate(150deg);
	-moz-transform: rotate(150deg);
	transform: rotate(150deg);
}
#clock::after {
	-ms-transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	transform: rotate(90deg);
}
#facing {	/* center DIV vertically = (100%-86%) / 2 */
	position: relative;
	left: 7%;top: 7%;
	width: 85%;height: 85%;
	background-color: #f0e8d9;
	-moz-border-radius: 100px;
	border-radius: 100px;
	z-index: 100;
}
#facing::before {	/* Dial Inscription */
	position: absolute;
	left: 50%;top: 50%;
	width: 14px;height: 14px;
	margin-left: -7px;margin-top: -7px;
	background-color: #444;
	content: "";
	-moz-border-radius: 14px;
	border-radius: 14px;
	-moz-box-shadow: 0 0 10px gray;
	box-shadow: 0 0 10px gray;
}
.hand {
	position: absolute;
	left: 50%;
	background-color: #222;
	-moz-box-shadow: 0 0 3px gray;
	box-shadow: 0 0 3px gray;
	-webkit-transform-origin: center bottom 0;
	-ms-transform-origin: center bottom 0;
	-moz-transform-origin: center bottom 0;
	transform-origin: center bottom 0;
	z-index: -1;
}
#hour {
	top: 16%;
	width: 6px;height: 34%;
	margin-left: -3px;
}
#minute {
	top: 5%;
	width: 6px;height: 45%;
	margin-left: -3px;
}
#second {
	top: -6%;
	width: 2px;height: 56%;
	margin-left: -1px;
	background-color: red;
}
/* Section 1.2b */
#nojs {
	text-align: center;
	font-size: 90%;
	padding: 1.2em 0 0;
}

/** Section 1.2 **/
section section {margin: 0 .5em 0 0;}
#slogan {
	margin: .31em 0 .1em .25em;
	font-size: 1.1rem;
	line-height: 1.5em;
	text-align: center;
	color: #dc4c4e;
	padding: 0 1.62em 1.25em;
	transform: rotate(-0.3deg);
}
#slogan span {
	border-bottom: 2px solid #ece885;
	display: inline-block;
	line-height: 0.85;
}

/*** Section 2 ***/

#sec2 {
	margin: 0 auto;
	color: #4471c4;
	padding: .25em 0 1.18em;
}
#sec2 h1 {
	font-family: NunitoLight;
	font-size: 1.07rem;
	margin: 0 0 .2em;
}
#sec2 h3 {
	font-family: NunitoLight;
	font-size: 1rem;
	margin: .062em 0 .2em;
}
#sec2 h2 {
	text-align: center;
	font-family: Bauhaus, NunitoLight;
	font-size: 1.05em;
	margin-top: .2em;
} 
#sec2 h2 span  {
	font-family: NunitoLight;
	font-size: 1em;
	letter-spacing: 0;
}
#sec2 h1 a, #sec2 h3 a {
	text-decoration: underline dotted #778977;
	color: #4471c4;
}

/*** Footer ***/

footer {
	position: fixed;
	bottom: 0;
	height: 2.4em;
	margin: 0;
	padding: .75em .7rem .3rem .3rem;
	width: 740px;
	border-top: 1px dotted #778977;
	background-color: #f3ede2;
	z-index: 200;
}
#sec3 {
	font-size: 1.05em;
	line-height: 1.6;
    font-family: Nunito, sans-serif;
	max-width: 620px;
	margin: auto;
}
#sec3 span {
	display: inline-block;
	width: 250px;
	float: right;
	text-align: right;
	margin-right: 1em;
}
#sec3 span:first-child {
	text-align: left;
	float: left;
}
#sec3 a {
	padding-left: 10px;
	color: #588958;
	text-decoration: underline dotted #778977;
}

/*** Media Queries ***/

@media screen and (max-width: 800px) {
	body {background: linear-gradient(to right, #f3ede2, #f3ede2);}
	#main {
		border: none;
		border-radius: 0;
	}
	#ad {
		padding: 0 .62em;
	}
	#slogan {
		padding: .28em .62em 1em .62em;
		margin-bottom: .5em;
	}
}

@media screen and (max-width: 760px) {
	#main {padding-bottom: 2em;}
	header {
		margin-bottom: 0;
		border: none;
	}
	header img {
		max-width: 520px;
		margin: 0 auto;
	}
	#menu, footer {display: none;}
	#navi {
		display:block;
		width: 100%;
		margin: 1em 0 0;
	}
	#navi img {
		display: inline-block;
		text-align: center;
	}
	section {margin: 0;}
	#ad {
		font-size: 1.2rem;
		margin-top: 1.5em;
	}
	#me {
		font-size: 1.2rem;
		color: #588958;
	}
}

@media screen and (max-width: 650px) {
	#slogan span {
		border-bottom: none;
		display: inline;
		line-height: 1.5;
		text-shadow: 0;
	}
}

@media screen and (max-width: 570px) {
	header img {max-width: 90%;}
	#slogan {font-size: 1.02em;}
	#nl {
		visibility: hidden;
		display: none;
	}
	#br {
		visibility: visible;
		display: inline;
	}
}
