@font-face {
	font-family: '_pixelly';
	font-display: block;
	src: url('dtm-sans.woff2') format('woff2');
}

*, *:before, *:after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	overflow: hidden;
	background: #000000;
}

main {
	position: fixed;
	width: 177.778vh;
	width: 177.778svh;
	height: 100vh;
	height: 100svh;
	left: calc(50vw - 0.5*177.778vh);
	left: calc(50svw - 0.5*177.778svh);
	top: 0;
	font-family: '_pixelly', sans-serif;
	font-size: 6vh;
	font-size: 6svh;
	line-height: 1.1;
	word-spacing: 0.1em;
	color: #dddddd;
}
@media (max-aspect-ratio: 1920/1080) {
	main {
		width: 100vw;
		width: 100svw;
		height: 56.25vw;
		height: 56.25svw;
		left: 0;
		top: calc(50vh - 0.5*56.25vw);
		top: calc(50svh - 0.5*56.25svw);
		font-size: 3.375vw;
		font-size: 3.375svw;
	}
}
@media (min-width: 1920px) and (min-height: 1080px) {
	main {
		width: 1920px;
		height: 1080px;
		left: calc(50vw - 0.5*1920px);
		left: calc(50svw - 0.5*1920px);
		top: calc(50vh - 0.5*1080px);
		top: calc(50svh - 0.5*1080px);
		font-size: 64.8px;
	}
}
main a {
	color: #DCFFD6;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 1px 0 currentColor;
}
main h1, main h2, main p {
	font-size: 1em;
	font-weight: normal;
	margin: 0 0 0.9em 0;
	text-shadow: 0.075em 0.075em 0 #000000;
}
main p {
	color: #CBF0FF;
}
main button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	border: none;
	border-radius: 0;
	background: #FF9AA2;
	color: #000000;
	padding: 0.35em 1em 0.45em 1em;
	margin: 0 0 1em 0;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: 0.075em 0.075em 0 #000000;
	position: relative;
}

header, section, footer {
	position: absolute;
	inset: 0;
	background: #000000;
	text-align: center;
}

header, footer, #barry, #win, #lose {
	visibility: hidden;
}
header.on, footer.on, #barry.on, #win.on, #lose.on {
	visibility: visible;
}


header {
	background: #000000 url('intro.jpg');
	background-size: 100% 100%;
	text-align: left;
	padding: 1em 0 0 12.25em;
	opacity: 0;
	transition: opacity 0.5s, visibility 0.5s;
	z-index: 1;
}
header.on {
	opacity: 1;
}
header h1 {
	height: 2.5em;
	background: url('wheres-barry.gif') no-repeat;
	background-size: auto 100%;
	color: transparent;
	margin: 0.5em 0 0.5em -0.6em;
	text-shadow: none;
}
header h1 + p + p {
	color: #FFD393;
}
header button:disabled {
	background: #7F6769;
	color: transparent;
}
header button:disabled::after {
	content: 'LOADING';
	color: #000000;
	position: absolute;
	left: 0;
	right: 0;
	top: 0.35em;
	text-align: center;
}


section video {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	cursor: default;
}
#barry {
	position: absolute;
	cursor: default;
	border-radius: 1em;
	/* outline: 2px solid red; */
}
#win, #lose {
	position: absolute;
	inset: 0;
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: left bottom;
}

section[data-level="0"] #barry {
	left: 32.8%;
	top: 9.4%;
	width: 18.2%;
	height: 78.4%;
}
section[data-level="1"] #barry {
	left: 54.1%;
	top: 22.2%;
	width: 13.2%;
	height: 48.4%;
}
section[data-level="2"] #barry {
	left: 32.2%;
	top: 16.7%;
	width: 11.1%;
	height: 58.7%;
}
section[data-level="3"] #barry {
	left: 44.2%;
	top: 19.4%;
	width: 9.7%;
	height: 39.4%;
}
section[data-level="4"] #barry {
	left: 0%;
	top: 11.4%;
	width: 24.0%;
	height: 69.8%;
}
section[data-level="5"] #barry {
	left: 56.0%;
	top: 20.6%;
	width: 9.0%;
	height: 51.2%;
}
section[data-level="6"] #barry {
	left: 59.8%;
	top: 20.1%;
	width: 10.2%;
	height: 53.4%;
}
section[data-level="7"] #barry {
	left: 31.5%;
	top: 19.0%;
	width: 17.3%;
	height: 54.2%;
}

section[data-level="0"] #win {
	background-image: url('gifs/0win.gif');
}
section[data-level="0"] #lose {
	background-image: url('gifs/0lose.gif');
}
section[data-level="1"] #win {
	background-image: url('gifs/1win.gif');
}
section[data-level="1"] #lose {
	background-image: url('gifs/1lose.gif');
}
section[data-level="2"] #win {
	background-image: url('gifs/2win.gif');
}
section[data-level="2"] #lose {
	background-image: url('gifs/2lose.gif');
}
section[data-level="3"] #win {
	background-image: url('gifs/3win.gif');
}
section[data-level="3"] #lose {
	background-image: url('gifs/3lose.gif');
}
section[data-level="4"] #win {
	background-image: url('gifs/4win.gif');
}
section[data-level="4"] #lose {
	background-image: url('gifs/4lose.gif');
}
section[data-level="5"] #win {
	background-image: url('gifs/5win.gif');
}
section[data-level="5"] #lose {
	background-image: url('gifs/5lose.gif');
}
section[data-level="6"] #win {
	background-image: url('gifs/6win.gif');
}
section[data-level="6"] #lose {
	background-image: url('gifs/6lose.gif');
}
section[data-level="7"] #win {
	background-image: url('gifs/7win.gif');
}
section[data-level="7"] #lose {
	background-image: url('gifs/7lose.gif');
}




footer {
	background: #000000 url('outro.jpg');
	background-size: 100% 100%;
	opacity: 0;
	transition: opacity 0.5s, visibility 0.5s;
	z-index: 1;
}
footer.on {
	opacity: 1;
}
footer h2 {
	font-size: 2em;
	margin: 0.5em 0 0.1em 0;
	color: #FFD393;
}
footer button {
	margin: 1.25em 0 0.5em 0;
}
#score::before {
	color: #FE0201;
}
#score[data-score="0"]::before {
	content: '';
}
#score[data-score="0"]::after {
	content: '\2661\2661\2661\2661\2661\2661';
}
#score[data-score="1"]::before {
	content: '\2665';
}
#score[data-score="1"]::after {
	content: '\2661\2661\2661\2661\2661';
}
#score[data-score="2"]::before {
	content: '\2665\2665';
}
#score[data-score="2"]::after {
	content: '\2661\2661\2661\2661';
}
#score[data-score="3"]::before {
	content: '\2665\2665\2665';
}
#score[data-score="3"]::after {
	content: '\2661\2661\2661';
}
#score[data-score="4"]::before {
	content: '\2665\2665\2665\2665';
}
#score[data-score="4"]::after {
	content: '\2661\2661';
}
#score[data-score="5"]::before {
	content: '\2665\2665\2665\2665\2665';
}
#score[data-score="5"]::after {
	content: '\2661';
}
#score[data-score="6"]::before {
	content: '\2665\2665\2665\2665\2665\2665';
}
#score[data-score="6"]::after {
	content: '';
}
#score[data-score="7"]::before {
	content: '\2665\2665\2665\2665\2665\2665';
}
#score[data-score="7"]::after {
	content: '';
}
footer h2 a {
	display: none;
	color: #FF40aa;
}
footer h2 #score[data-score="7"] + a {
	display: inline-block;
}

#rotate {
	display: none;
	position: absolute;
	width: 100%;
	left: 0;
	top: 105%;
	background: #000000;
	text-align: center;
	font-size: 2em;
	text-transform: uppercase;
}
#rotate::before {
	content: '\2765';
	color: #FE0201;
	margin-right: 0.4em;
}
@media (max-aspect-ratio: 1/1) and (max-width: 540px) {
	section[data-level=""] ~ #rotate {
		display: block;
	}
}