@charset "UTF-8";

body {
	overflow: hidden;
	background-color: #000000;
	transition: font-size 1s;
}

div#debug {
	position: absolute;
	display: none;
/* 	display: block; */
	top: 0;
	left: 0;
	min-width: 200px;
	min-height: 1em;
	background-color: #000;
	color: #fff;
	z-index: 200;
}

canvas#photo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

video#video {
	position: absolute;
	top: 50%;
	left: 50%;
	
	width: 100%;
	
	margin-top: -3em;
	transform: translate(-50%, -50%) rotateY(180deg);
	z-index: 3;
}

video#video.unflipped {
	transform: translate(-50%, -50%);
}

div#interface {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

div#MainScreen {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

div#UIOverlay {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 5;
}

.buttonRow {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	box-sizing: border-box;
	position: absolute;
	bottom: 2em;
	width: 100%;
}

.buttonRow > * {
	pointer-events: all;
	width: 8em;
	height: 8em;
	min-height: 6em;
	min-width: 6em;
	margin: 0 1em 0 1em;
	color: #ffffff;
	border-radius: 1em;
/* 	background-color: #3959d0; */
/* 	box-shadow: 0px 0px 45px 11px rgba(0,0,0,0.55); */
}

.icon {
	display: block;
	margin-left: 50%;
	margin-top: 50%;
	font-size: 5.5em;
	transform: translate(-50%, -50%);
	text-shadow: 0 0 1em #000000;
}

.icon:hover {
	font-size: 6em;
	cursor: pointer;
}

.icon.shadow {
	 text-shadow: 0 0 1em #000000;
}

.textshadow {
	 text-shadow: 0 0 1em #000000;
}

.transparent {
	background-color: transparent;
	box-shadow: none;
}

.vignette {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin-top: -3em;
	
	width: 0;
	height: 0;
	
	border-radius: 50%;
	box-shadow: 0px 0px 450px 1000px rgba(0,0,0,1);
	z-index: 4;

	transition: width 1s, height 1s;
}

.vignette.fullyDark {
	box-shadow: 0px 0px 450px 1000px rgba(0,0,0,1); 
}

#message {
	position: absolute;
	top: 3em;
	font-size: 3em;
	color: #ffffff;
	font-family: Candara;
	text-align: center;
	width: 100%;
}

#avatar {
	position: absolute;
	cursor: pointer;
	top: 2em;
	right: 2em;
	z-index: 7;
	width: 6em;
	height: 6em;
	box-shadow: 0px 0px 25px 10px rgba(0,0,0,0.7);
	border-radius: 50%;
}

#avatar img {
	width: 100%;
	height: 100%;
	pointer-events: all;
}

#compassIcon {
	position: absolute;
	cursor: pointer;
	top: 10em;
	right: 4em;
	z-index: 7;
	width: 2em;
	height: 2em;
/* 	box-shadow: 0px 0px 25px 10px rgba(0,0,0,0.7); */
/* 	border-radius: 50%; */
}

#compassIcon img {
	width: 100%;
	height: 100%;
}

#avatarFloater {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.avatar {
	width: 64px;
	height: 64px;
	box-shadow: 0px 0px 10px 4px rgba(0,0,0,0.4);
	border-radius: 50%;
	transition: top 0.5s, left 0.5s;
	color: #ffffff;
	transform: translate(-50%, -50%);
}

.avatar img {
	width: 64px;
	height: 64px;
}

.avatar .arrow {
	position: absolute;
	color: #ffffff;
	font-size: 28pt;
	text-align: center;
	width: 160%;
	height: 160%;
	display: block;
	margin-top: -30%;
	margin-left: -30%;
}

div#fullScreenButton {
	pointer-events: all;
	cursor: pointer;
	position: fixed;
	right: .5em;
	bottom: .5em;
	width: 4em;
	height: 4em;
	line-height: 5em;
	z-index: 5;
	vertical-align: middle;
	text-align: center;
}

div#fullScreenButton i.fa-expand {
	color: #1dc9b7;
	font-size: 3em;
	margin: 0 0;
/* 	transform: translate(-50%, -50%); */
}

div#fullScreenButton i.fa-expand:hover {
	font-size: 4em;
}

.gameIcon {
	cursor: pointer;
	pointer-events: all;
	font-size: 1em;
	color: #ffffff;
	width: 8em;
	height: 8em;
/* 	float: left; */
}

.gameIcon:hover > i {
	font-size: 6em;
	opacity: 1;
}

.gameIcon > i {
	text-shadow: 0 0 1em #000000;
	opacity: 0.9;
}

#score {
	transition: top 1s, font-size 1s, width 1s, height 1s;
}

/* /////// */
/* A-FRAME */
/* /////// */

/* Hide all dialogs: they're occluded by sceneHTML, so they can't be clicked.
 To add to that: we don't need device orientation or motion events,
 and on iPad with iOS 13 the user agent is mistakenly sent as Desktop,
 prompting another useless dialog. */
.a-dialog {
	display: none;
}

/*//////////////*/
/* Instructions */
/*//////////////*/

#instructions > h1 {
	font-size: 2em;
	margin-top: 0;
}

#instructions button {
	background-color: #000000;
	color: #ffffff;
	width: 3em;
	height: 2em;
	font-weight: 900;
	font-size: 2.5em;
	pointer-events: all;
	cursor: pointer;
}

#instructions p {
	position: absolute;
	top: 35%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 80%;
	font-size: 1.3em;
}


/*///////////////*/
/* Media Queries */
/*///////////////*/

@media only screen and (min-width: 1000px), only screen and (min-height: 1000px) {
	body {
		font-size: 1.3em;
	}
}

@media only screen and (min-width: 450px) and (max-width: 550px), only screen and (min-height: 450px) and (max-height: 550px) {
	body {
		font-size: .9em;
	}
}

@media only screen and (min-width: 350px) and (max-width: 450px), only screen and (min-height: 350px) and (max-height: 450px) {
	body {
		font-size: .8em;
	}
}

@media only screen and (max-width: 350px), only screen and (max-height: 350px) {
	body {
		font-size: .6em;
	}
}
