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

:root {
	--shadow-color: 115deg 87% 21%;
	--shadow-elevation-low: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
		0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.34),
		1px 2px 2.5px -2.5px hsl(var(--shadow-color) / 0.34);
	--shadow-elevation-medium: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36),
		0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36),
		2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36),
		5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36);
	--shadow-elevation-high: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
		1.5px 2.9px 3.7px -0.4px hsl(var(--shadow-color) / 0.34),
		2.7px 5.4px 6.8px -0.7px hsl(var(--shadow-color) / 0.34),
		4.5px 8.9px 11.2px -1.1px hsl(var(--shadow-color) / 0.34),
		7.1px 14.3px 18px -1.4px hsl(var(--shadow-color) / 0.34),
		11.2px 22.3px 28.1px -1.8px hsl(var(--shadow-color) / 0.34),
		17px 33.9px 42.7px -2.1px hsl(var(--shadow-color) / 0.34),
		25px 50px 62.9px -2.5px hsl(var(--shadow-color) / 0.34);
}

* {
	margin: 0;
	padding: 0;
}

html {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: #666666;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	font-family: Helvetica, sans-serif;
	color: #ffffff;
	transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

body[data-loaded="true"] {
	background-color: #25a519;
}

body[data-loaded="true"] .loader {
	opacity: 0;
	display: none;
}

.loader {
	border: 16px solid #f3f3f3; /* Light grey */
	border-top: 16px solid #25a519;
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
	display: block;
}

body[data-loaded="false"] main {
	display: none;
}

main {
	display: flex;
	width: 80vw;
	align-items: center;
	justify-content: space-around;
}

section {
	max-width: 30%;
	box-shadow: var(--shadow-elevation-high);
	border-radius: 25px;
	overflow: hidden;
}

section .country {
	font-size: 2rem;
	text-align: center;
	background-color: #ffffff;
	color: #000000;
	padding: 1rem 0;
}

section img {
	width: 100%;
}

section .score {
	width: 100%;
	color: #000000;
	font-weight: 800;
	background-color: #ffffff;
	padding: 1rem 0;
	margin-top: -10px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2rem;
}

.time {
	background-color: red;
	padding: 1rem;
	font-weight: 800;
}
