/* Onto the styling now */
/*
html, body {
	width: 100%; height: 100%;
	box-sizing: border-box;
	font-family: Verdana;
	
	background: radial-gradient(
		center 50px,
		white,
		#cdd5ff
	);
}

body {
	padding: 50px 0;
}
*/
/*
Time for some gloss and other fancy stuff.
*/

#compass {
	width: 200px;
	height: 200px;
	color: rgba(200, 200, 200, 1);
	Background: #eee;
	border-radius: 50%;
	margin: 0 auto;
	position: relative;
	border: 10px solid #777;
	background: radial-gradient(ellipse cover, white, #a3e2fb);
	box-shadow: 0 0 4px #000, 0 0 1px 8px #ccc, 5px 10px 15px #48436f;
	transition: transform 1.5s ease, box-shadow 1.5s ease;
	-webkit-transition: transform 1.5s ease, box-shadow 1.5s ease;
	-moz-transition: transform 1.5s ease, box-shadow 1.5s ease;
	-ms-transition: transform 1.5s ease, box-shadow 1.5s ease;
	-o-transition: transform 1.5s ease, box-shadow 1.5s ease;
}

/* A bit of animation on hover would be nice too! */
/* #compass:hover { */
#compass {
	transform: skewX(-10deg) skewY(-5deg);
	box-shadow: 0 0 4px #000, 0 0 1px 8px #ccc, 8px 12px 3px 5px #666, 20px 28px 20px rgba(0, 0, 0, 0.25);
	-webkit-transform: skewX(-10deg) skewY(-5deg);
	-moz-transform: skewX(-10deg) skewY(-5deg);
	-ms-transform: skewX(-10deg) skewY(-5deg);
	-o-transform: skewX(-10deg) skewY(-5deg);
}

#compass:before {
	content: '';
	border: 2px dashed #444;
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	top: 10px;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
}

#compass:after {
	content: '';

	position: absolute;
	left: -10px;
	right: -10px;
	bottom: -10px;
	top: -10px;

	border-radius: 50%;

	background: linear-gradient(-45deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 47%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0) 100%);
	background: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 47%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0) 100%);
	background: -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 47%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0) 100%);
	background: -ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 47%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0) 100%);
	background: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 47%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0) 100%);

}


/* neat! lets position the directions now - N E S W */

#compass span {
	position: absolute;
	font-weight: bold;
	color: black;
}

/* North */
#compass span:nth-child(1) {
	left: 85px;
	top: 15px;
}

/* South */
#compass span:nth-child(3) {
	left: 85px;
	bottom: 15px;
}

/* East */
#compass span:nth-child(2) {
	right: 20px;
	top: 80px;
}

/* West */
#compass span:nth-child(4) {
	left: 20px;
	top: 80px;
}

#compass span:nth-child(5) {
	left: 10px;
	top: 40px;
	width: 110px;
	font-size: 1.25em;
	line-height: 0.95em;
	z-index: 10;
	text-align: right;
	text-shadow: -2px 2px 2px rgba(0, 0, 0, 0.33);
}

#compass span:nth-child(6) {
	left: 110px;
	top: 51px;
	font-size: .75em;
	z-index: 10;
	text-align: center;
	transform: rotate(90deg);
	text-shadow: -2px 2px 2px rgba(0, 0, 0, 0.33);
}

#compass span:nth-child(7) {
	left: 40px;
	top: 115px;
	width: 110px;
	font-size: 1.25em;
	z-index: 10;
	text-align: center;
	text-shadow: -2px 2px 2px rgba(0, 0, 0, 0.33);
}

/* Next up, is the pointer */

/* A bit of CSS3 animations on the pointer would be nice */
@keyframes rotate {
	from {
		transform: rotate(000deg);
	}

	to {
		transform: rotate(359deg);
	}
}

#pointer {
	width: 60px;
	height: 30px;
	/*Centeringit*/
	position: relative;
	left: 50%;
	top: 50%;
	margin-left: -30px;
	margin-top: -15px;
	/*background: black;
	*/
	animation: rotate 5s cubic-bezier(1, .2, .5, 1) infinite alternate;
	-webkit-animation: rotate 5s cubic-bezier(1, .2, .5, 1) infinite alternate;
	-moz-animation: rotate 5s cubic-bezier(1, .2, .5, 1) infinite alternate;
	-ms-animation: rotate 5s cubic-bezier(1, .2, .5, 1) infinite alternate;
	-o-animation: rotate 5s cubic-bezier(1, .2, .5, 1) infinite alternate;
}

/* Now the trick i wanna use to create a diamond
shaped pointer is to skew the #pointer

But for some reason that did'nt work hence I did it
on #pointer:before */

#pointer:before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: linear-gradient(-63deg, rgba(79, 188, 242, 1) 1%, rgba(26, 110, 206, 1) 50%, rgba(216, 216, 216, 1) 51%);
	background: -webkit-linear-gradient(-63deg, rgba(79, 188, 242, 1) 1%, rgba(26, 110, 206, 1) 50%, rgba(216, 216, 216, 1) 51%);
	background: -moz-linear-gradient(-63deg, rgba(79, 188, 242, 1) 1%, rgba(26, 110, 206, 1) 50%, rgba(216, 216, 216, 1) 51%);
	background: -ms-linear-gradient(-63deg, rgba(79, 188, 242, 1) 1%, rgba(26, 110, 206, 1) 50%, rgba(216, 216, 216, 1) 51%);
	background: -o-linear-gradient(-63deg, rgba(79, 188, 242, 1) 1%, rgba(26, 110, 206, 1) 50%, rgba(216, 216, 216, 1) 51%);
	transform: skewX(60deg);
	-webkit-transform: skewX(60deg);
	-moz-transform: skewX(60deg);
	-ms-transform: skewX(60deg);
	-o-transform: skewX(60deg);
}

/* Looks good, lets make the pointer's joint now */

#pointer:after {
	content: '';

	width: 10px;
	height: 10px;
	background: #4781c0;
	border-radius: 50%;
	box-shadow:
		inset 0 0 4px 2px #4d4d4d,
		0 0 5px 1px white;

	/* centering it */
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -5px;
	margin-top: -5px;
}