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


/* frames */

body {
	position: relative;
	flex-direction: column;
	display: flex;
	width: 100vw;
	height: 100vh;
	font-family: Heebo;
	margin: auto;
	background-position: center;
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: cover;
}

body>div {
	min-width: min(50vw, 50vh);
	min-height: min(50vw, 50vh);
    max-width: 90vw;
    max-height: 90vh;
	width: fit-content;
	height: fit-content;
	margin: auto;
	padding: 15px;
}

body>div>div {
	min-width: min(50vw, 50vh);
	min-height: min(50vw, 50vh);
	max-height: 100%;
	margin: auto;
	padding: 15px;
	width: fit-content;
	height: fit-content;
}

.container-fluid {
	padding-right: 0;
	padding-left: 0;
	width: 100%;
}

.container-fluid.upper {
	min-height: 60%;
	display: flex;
	flex-direction: column;
}

.container-fluid.upper>div:first-child {
	display: flex;
	justify-content: space-evenly;
	flex-direction: column;
}

.container-fluid.bottom {
	min-height: 40%;
	margin-top: 0px;
	grid-area: bottom;
}

.container-fluid.bottom .bottom-area .btn.btn-default {
	background: none;
	border: none;
	border-radius: 0;
	margin: -2px;
}

.container-fluid:after {
	display: none;
}

.bottom-area {
	padding: 0;
	padding-top: 3%;
	text-align: center;
	padding-bottom: 3%;
}

.bottom-area .text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 13pt;
	line-height: 1;
	padding-bottom: 20px;
}

.bottom-area .btn {
	font-size: 13pt;
	font-weight: bold;
	margin-left: 8px;
}

/* logo */

#logo {
	margin: auto;
	width: 500px;
	max-width: 95vw;
	height: 100%;
	position: relative;
	background-size: contain;
	background-position: bottom center;
	background-repeat: no-repeat;
}

/* countdown */

.timeramai {
	display: flex;
	justify-content: space-evenly;
	flex-direction: column;
}

#countbox1 {
	font-size: 1pt;
	font-weight: bold;
	text-align: center;
	padding-bottom: 0;
}

.timerBlock {
	display: inline-block;
	font-size: min(30pt, 20vw);
	font-weight: 400;
	max-width: 20vw;
	margin: 5px;
}

.score-text {
	margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	height: 1em;
	line-height: 1em;
	font-size: 1em;
}

.timeName {
	display: inline-block;
	font-family: Heebo;
	font-size: 10pt;
	padding-right: 15px;
	padding-left: 15px;
}

.givespace {
	margin: -40px;
	margin-top: 20px;
}

@media (max-width: 1350px) {
	#logo {
		width: 30vw;
	}

	#countbox1 {
		position: relative;
		z-index: 20;
	}

	.container-fluid.upper {
		min-height: 55%;
	}

	.container-fluid.bottom {
		min-height: 45%;
		margin-top: 4%;
	}
}

@media (max-width: 600px) {
	body {
		position: relative;
	}

	#logo {
		width: 70vw;
		margin-top: 5%;
	}

	#countbox1 {
		font-size: 31pt;
	}

	.timerBlock {
		/* font-size: min(55pt, 20vw); */
		width: min(20%, 20vw);
	}

	.timeName {
		font-size: 20pt;
		padding-right: 0.5%;
		padding-left: 0.5%;
	}

	.givespace {
		margin: -30px;
	}
}

@media (max-width: 420px) {
	#countbox1 {
		font-size: 2pt;
	}

	.timerBlock {
		/* font-size: min(40pt, 20vw); */
		width: min(20%, 20vw);
	}

	.timeName {
		font-size: 12pt;
		padding-right: 0.5%;
		padding-left: 0.5%;
	}

	.givespace {
		margin: -40px;
	}
}
