:root {
	--blue: #0077C1;
	--blue-dark: #004774;
	--peach: #FFC687;
	--salmon: #FF9180;
	--counter-bg: #f2e6cb;
}

html {
	height: 100%;
}

@media screen and (min-width: 800px) {
	html {
		font-size: 20px;
	}
}

@media screen and (min-width: 1200px) {
	html {
		font-size: 24px;
	}
}

body, main, section, figure {
	display: flex;
	align-items: center;
	justify-content: center;
}

body {
	font-family: "Montserrat", sans-serif;
	margin: 0;
	height: 100%;
	background-attachment: fixed;
	/*background-image: linear-gradient(to bottom right, var(--salmon), var(--salmon) 25%, var(--peach));*/
	background-image: linear-gradient(to bottom right, var(--blue), var(--blue) 25%, #00B9BD);
	overflow: hidden;
}

@media screen and (max-width: 599px) {
	main, section {
		flex-direction: column;
	}
}

main {
	padding: 1rem;
	background-color: var(--counter-bg);
	border-radius: 2rem;
	border: 0.5rem solid rgba(255,255,255,0.75);
	box-shadow: 0 0 4rem 0 rgba(0,0,0,0.3),
				inset 0 0 0.5rem 0 rgba(0,0,0,0.1);
}

img {
	margin: 0.5rem;
	margin-bottom: 1rem;
	width: 6rem;
	height: auto;
}

@media screen and (min-width: 600px) {
	img {
		margin-bottom: 0.5rem;
		margin-right: 1rem;
	}
}

figure {
	position: relative;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
	color:  #fff;
	margin: 0.5rem;
	height: 4rem;
	width: 3rem;
	background-color: #262421;
	box-shadow: inset 0 0 0.5rem 0 rgba(0,0,0,0.5);
	border-radius: 0.5rem;
	
}

figure::before {
	content: "";
	position: absolute;
	top: 0;
	height: 0;
	width: 0;
	border-color: var(--counter-bg) transparent transparent transparent;
	border-style: solid;
	border-width: 0.33rem;
}

figure::after {
	content: "";
	position: absolute;
	height: 1px;
	width: 100%;
	background-color: rgba(38,36,33,0.5);
}

figure span {
	display: inline-flex;
	align-items: center;
}

figure span:not(.loaded) {
	color: rgba(255,255,255,0.5);
	animation: 2s linear infinite blink;
}

@keyframes blink {
  50% {
    color: rgba(255,255,255,0.25);
  }
}

figure span::before {
	content: "";
	position: absolute;
	left: 1px;
	right: 1px;
	height: 1rem;
	border-color: transparent #fff transparent #fff;
	border-style: solid;
	border-width: 0 2px 0 2px;
	z-index: 1;
}

figure span::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: linear-gradient(to bottom, rgba(255,255,255,.1), rgba(255,255,255,0) 50%);
}
