/*
 * Style by Datagif
 * 
 */

/* @group RESETS */

/* Eric Meyer reset.css v2.0 20110126 -- & -- normalize.css v3.0.2 --- resets group v1.3 */

html, body, div, span, h1, h2, h3, p, pre, a, code, del, em, img, strong, ul, li, form {margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;}

*, *:before, *:after {box-sizing: border-box;}

html {font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}

a {background-color: transparent;}
a:active, a:hover {outline: 0;}

strong {font-weight: bold;}
em, dfn {font-style: italic;}

img {border: 0;}

ol, ul {list-style: none;}

pre {overflow: auto;}
code, kbd, pre, samp {font-family: monospace, monospace; font-size: 1em;}

input {color: inherit; font: inherit; margin: 0;}
button, html input[type="button"], input[type="reset"], input[type="submit"] {-webkit-appearance: button; cursor: pointer;}
html input[disabled] {cursor: default;}
input {line-height: normal;}

/* Personal & h5bp defaults */

a[href], a[role="button"] {cursor: pointer;}

img {display: block;}
:focus {outline: 0 none;}
textarea {resize: vertical;}
img {vertical-align: middle;}

/* @end RESETS */

/* @group BASE */

html {
	height: 100%;
	color: #444;
	font: 1em/1.4 "Helvetica Neue", Helvetica, Geneva, sans-serif;
	background-color: #fbfbfb;
}

body {
	min-height: 100%;
	padding-top: 5%;
	padding-bottom: 5%;
	overflow-y: scroll; /* Prevent fous of scrollbar */
}

a {
	color: inherit;
}

a:hover {
	
}

a:active {
	position: relative;
	top: 1px;
}

a:focus {outline: thin dotted;}
a:active, a:hover {outline: 0 none;}

/*
a {
	transition: color 100ms, background-color 100ms;
}

a:hover {
	transition: color 0ms, background-color 0ms;
}

a svg {transition: fill 100ms ease;}
a:hover svg {transition: fill 50ms ease;}
*/

/* Helpers / utils */

.clearfix::before, .clearfix::after,
.details-list > li::before, .details-list > li::after {
	content: " ";
	display: block; /* `table` instead of `block` to contain the top-margins of child elements */
}
.clearfix::after,
.details-list > li::after {clear: both;}

/* @end BASE */

.card {
	max-width: 540px;
	margin-right: auto;
	margin-left: auto;
	padding: 20px;
	background-color: #fff;
	border: 1px solid #e5e5e5;
}

.title,
.subtitle,
.standfirst,
.details-title,
.details-disclaimer
{text-align: center;}

.title {
	font-size: 1.8em;
	font-weight: 300;
}

	.subtitle {
		font-size: 1.3em;
	}
	
	.standfirst {
		font-size: 0.85em;
		margin-top: 30px;
	}

.form {
	margin-top: 40px;
	margin-bottom: 40px;
	font-size: 0rem;
}

	.form input,
	.form button {
		font-size: 1rem;
		height: 2.2em;
		vertical-align: middle;
	}
	
	.form input[type="text"] {
		width: calc(100% - 5.5em);
		border: 1px solid #aaa;
		border-right: 0 none;
		transition: background-color 150ms;
	}
	
		.form input[type="text"]:disabled {
			background-color: #e6e6e6;
		}
	
	.form button {
		width: 5.5em;
		color: #fff;
		background-color: #aaa;
		border: 0 none;
		overflow: hidden;
		transition: background-color 1s;
	}
	
		.form button:hover {
			background-color: #a0a0a0;
		}
		
		.form button:active {
			background-color: #888;
		}
		
		.form button:disabled {
			cursor: default;
		}
		
		.form button .label,
		.form button .check {
			display: block;
			height: 100%;
			line-height: 2em;
		}
		
		.form button .label {
			transition: margin-top 150ms;
		}
		
		.form button:disabled .label {
			margin-top: -2.0em;
		}
		
		.form button .check {
			
		}
		
			.form button .check::before,
			.form button .check::after {
				content: "";
			}
			
			.form button .check::before {
				display: inline-block;
				width: 1em;
				height: 1em;
				border: 2px solid #fff;
				border-left-width: 0;
				border-bottom-color: transparent;
				border-radius: 50%;
				vertical-align: -0.1em;
				-webkit-animation: rotate-anim 600ms infinite linear;
				        animation: rotate-anim 600ms infinite linear;
			}
			
			@-webkit-keyframes rotate-anim {
				0%   {-webkit-transform: rotate(0); transform: rotate(0);}
				100% {-webkit-transform: rotate(360deg); transform: rotate(360deg);}
			}
			
			@keyframes rotate-anim {
				0%   {transform: rotate(0);}
				100% {transform: rotate(360deg);}
			}
			
			.form button.valid,
			.form button.error {
				transition: background-color 150ms;
			}
			
			.form button.valid .check::before,
			.form button.error .check::before {
				content: none;
			}
			.form button.valid {background-color: #72d371;}
			.form button.error {background-color: #cd5252;}
			.form button.valid .check::after {content: "✓";}
			.form button.error .check::after {content: "✕";}

.details {
	margin-top: 80px;
}

	.details-title {
		font-size: 0.95em;
		font-weight: 700;
	}
	
	.details-disclaimer {
		font-size: 0.7em;
		color: #999;
		max-width: 32em;
		margin-left: auto;
		margin-right: auto;
	}
	
	.details-list {
		margin-top: 30px;
		font-size: 0.85em;
	}
	
		.details-list > li {
			border-top: 1px solid #eaeaea;
			padding-top: 0.4em;
			margin-top: 0.4em;
		}
		
			.details-list .loading {
				text-align: center;
			}
			
			.details-list .loader {
				display: inline-block;
				width: 0.8em;
				height: 0.8em;
				border: 1px solid #444;
				border-left-width: 0;
				border-bottom-color: transparent;
				border-radius: 50%;
				margin-right: 0.5em;
				-webkit-animation: rotate-anim 600ms infinite linear;
				        animation: rotate-anim 600ms infinite linear;
			}
			
			.too-long-warning {
				visibility: hidden;
				-webkit-animation: display-anim 250ms 3s 1 forwards;
				        animation: display-anim 250ms 3s 1 forwards;
			}
			
			@-webkit-keyframes display-anim {
				0%   {visibility: visible; opacity: 0;}
				100% {visibility: visible; opacity: 1;}
			}
			
			@keyframes display-anim {
				0%   {visibility: visible; opacity: 0;}
				100% {visibility: visible; opacity: 1;}
			}
		
		.details-list .name,
		.details-list .value {
			float: left;
		}
		
		.details-list .name {
			width: 36%;
		}
		
		.details-list .value {
			width: 64%;
			padding: 0.2em;
		}
		
		.details-list .prop {
			color: #aaa;
		}

@media (max-width: 600px) {
	body {
		padding: 0;
	}
	.card {
		border: 0 none;
	}
	.title {
		font-size: 1.4em;
	}
	.subtitle {
		font-size: 1em;
	}
}

/* @group GLOBAL ALERTS */

.global-alert {
	color: #222;
	background-color: #FFF3B8;
	left: 0;
	position: fixed;
	text-align: center;
	top: 0;
	width: 100%;
	z-index: 1000;
	font: 300 1em/1.3em Helvetica, sans-serif;
	padding: 1.2em 0 1.6em;
}

	.global-alert p {margin: 0 0 0.6em;}
	.global-alert p:last-of-type {margin-bottom: 0;}
	.global-alert a:hover {color: #9d8511;}
	
	.global-alert .global-alert-close {
		cursor: pointer;
		display: block;
		font-size: 16px;
		padding: 3px 7px 4px;
		position: absolute;
		right: 6px;
		top: 6px;
		line-height: 18px;
	}
	
	.global-alert .global-alert-close:hover {background-color: #e4c00f; color: #fff;}
	.global-alert .global-alert-close:active {background-color: #766203; color: #fff;}
	
	.global-alert-close-handler:checked + .global-alert {display: none;}

/* @end GLOBAL ALERTS */
