html, body {
	margin: 0px;
	height: 100%;
	font-family: 'Quicksand', sans-serif;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-gap: 16px;
	padding: 16px;
	box-sizing: border-box;
}

.counter {
	background-color: #ddd;
	border-radius: 6px;
	border:1px SOLID #ccc;
}

.counter-title {
	padding: 10px 16px;
	border-bottom: 1px SOLID #ccc;
	font-size: 18px;
	min-height: 65px;
	box-sizing: border-box;
}

.counter-count {
	padding: 16px 16px;
	border-bottom: 1px SOLID #ccc;
	font-weight: 700;
	font-size: 50px;
	line-height: 40px;
}

.counter-footer {
	display: grid;
	padding: 16px;
	grid-template-columns: 1fr 1fr;
	grid-gap: 8px;
}

.btn {
	display: block;
	padding: 10px 16px;
	font-size: 16px;
	font-family: inherit;
	background-color: #08f;
	color: #fff;
	border: 0px;
	border-radius: 6px;
}

.btn:hover {
	-webkit-box-shadow: inset 0px 0px 0px 2px rgba(0,0,0,0.24);
	-moz-box-shadow: inset 0px 0px 0px 2px rgba(0,0,0,0.24);
	box-shadow: inset 0px 0px 0px 2px rgba(0,0,0,0.24);
}

.btn-stats {
	background-color: #ccc;
	color: #333;
}

.modal-container {
	display: none;
}

.modal-container.active {
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.7);
	top: 0;
	left: 0;
	position: fixed;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.modal {
	width: 100%;
	max-width: 1200px;
	background-color: #fff;
	border-radius: 6px;
	margin: 0px auto;
	overflow: hidden;
	position:relative;
}

.modal-header {
	padding: 10px 16px;
	font-weight: 700;
	border-bottom: 1px SOLID #ddd;
	position: relative;
}

.modal-header a {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	font-size: 22px;
	line-height: 40px;
	text-align: center;
	text-decoration: none;
	color: #333;
}

.modal-header a:hover {
	background-color: #f30;
	color: #fff;
}

.modal-body {
	padding: 16px;
}

.loader {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-color:#fff;
	z-index:100;
}

.loader:after {
	position:absolute;
	top:calc(50% - 25px);
	left:calc(50% - 25px);
	width:50px;
	height:50px;
	border-radius:50%;
	border:3px SOLID #ddd;
	border-top-color:#08f;
	border-left-color:#08f;
	content:'';

	animation-name:loader;
	animation-duration:.6s;
	animation-iteration-count:infinite;
	animation-timing-function: linear;
}

@keyframes loader {
	0% {
		transform:rotate(0deg);
	}
	100% {
		transform:rotate(360deg);
	}
}