html {
	padding: env(safe-area-inset);
}

* {
	box-sizing: border-box;
}

html,
body {
	padding: 0;
	margin: 0;
	font-family: "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-size: 16px;
	height: 100vh;
	width: 100vw;
}

@media (orientation: landscape) {
	.message {
		display: none;
	}

	.landing,
	.intro-letter,
	.container,
	.categories,
	.intro-letter,
	.countdown,
	.conclusion {
		display: flex;
	}
}

@media (orientation: portrait) {
	.message {
		display: flex;
	}

	.landing,
	.intro-letter,
	.container,
	.categories,
	.intro-letter,
	.countdown,
	.conclusion {
		display: none;
	}
}

.message {
	position: fixed;
	height: 100vh;
	width: 100vw;
	background-color: #00aeac;
	color: white;
	align-items: center;
	text-align: center;
	flex-flow: row wrap;
}

.message > div {
	width: 100%;
}

.message .rotate-icon {
	margin: auto;
	width: 100%;
	flex-shrink: 0;
}

.message .rotate-icon img {
	width: 25vw;
}

.message .heading {
	margin: auto;
	width: 45vw;
	flex-shrink: 0;
}

.message h1 {
	font-size: 1.5rem;
	text-align: center;
	margin: 1rem;
	font-weight: 400;
}

.landing {
	position: fixed;
	z-index: 99;
	height: 100%;
	width: 100%;
	background-image: url("../assets/imgs/landing-background.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	background-color: darkgrey;
	align-items: center;
	justify-items: center;
	text-align: center;
}

.landing .intro-graphic {
	width: 60vw;
	margin: auto 18vw;
}

.landing .start {
	width: 500px;
	position: fixed;
	display: flex;
	left: calc(50vw - 250px);
	bottom: 20vh;
}

.landing .start .cell {
	width: 50%;
}

.room-code {
	border: none;
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
	color: #0c1a75;
	padding: 0.5rem 10px;
	width: 140px;
}

.start-button {
	background: rgb(247, 217, 12);
	background: -moz-linear-gradient(180deg, rgba(247, 217, 12, 1) 0%, rgba(26, 168, 215, 1) 100%);
	background: -webkit-linear-gradient(180deg, rgba(247, 217, 12, 1) 0%, rgba(26, 168, 215, 1) 100%);
	background: linear-gradient(180deg, rgba(247, 217, 12, 1) 0%, rgba(26, 168, 215, 1) 100%);
	padding: 0.5rem 3rem;
	width: 160px;
	border-radius: 999px;
	border: none;
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #0c1a75;
}

.categories {
	position: fixed;
	z-index: 98;
	height: 100%;
	width: 100%;
	margin: 0;
	background-image: url("../assets/imgs/categories-background.jpg");
	background-size: cover;
}

.categories .cell {
	width: 50%;
	height: 100%;
	margin: auto;
	text-align: center;
}

.intro-letter {

	position: fixed;
	z-index: 97;
	height: 100%;
	width: 100%;
	margin: 0;
	background-image: url("../assets/imgs/categories-background.jpg");
	background-size: cover;
	overflow-x: scroll;

}

.letter {

	background-color: white;
	margin: 10vh auto 0;
	max-width: 50rem;
	width: 80%;
	max-height: 70rem;
	height: calc(80vw * 1.4);
	padding: 0 4vw 3vw;
	font-family: "adobe-garamond-pro", serif;
	font-weight: 400;
	font-style: normal;
	-webkit-box-shadow: 0px 5px 15px 6px rgba(0,0,0,0.4); 
	box-shadow: 0px 5px 15px 6px rgba(0,0,0,0.4);
	overflow-y: scroll;
}

.letter p {

	margin: 1rem 0 0 2rem;
	line-height: 1.4;

}

.letter .go-button {

	margin-top: 1rem;
	margin-left: 80%;

}

.countdown {

	position: fixed;
	z-index: 96;
	/* height: 100%; */
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* display: flex; */
	justify-content: center;
	align-items: center;
	height: 100vh;
	font-family: "Roboto", sans-serif;
	overflow: hidden;
	box-shadow: inset 0 0 5em 1em #000;
	background: #767886;
}

.key-stage {
	background-image: url(../assets/imgs/key-stage-3-4.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 90%;
}

.industry {
	background-image: url(../assets/imgs/industry.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 90%;
}

.go-button, .completed-click-here {
	background: #e61353;
	padding: 0.5rem 2.5rem;
	border-radius: 999px;
	border: none;
	font-size: 3vh;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #ffffff;
	margin-top: 65vh;
	-webkit-box-shadow: 0px 5px 8px 6px rgba(0,0,0,0.2); 
	box-shadow: 0px 5px 8px 6px rgba(0,0,0,0.2);
}

.completed-click-here {
	margin-top: -11vh;
	max-width: 54%;
	padding: 1vh 4vh;
	position: relative;
}

.container {
	position: fixed;
	z-index: 95;
	height: 100%;
	width: 100%;
	background-image: url("../assets/imgs/main-background.jpg");
	background-size: cover;
	/* overflow: auto; */
	overflow: hidden;
	
}

.sidebar {
	position: relative;
	width: 14vw;
	height: 100vh;
	background: rgb(255, 255, 255);
	background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9023984593837535) 100%);
	background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9023984593837535) 100%);
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9023984593837535) 100%);
}

.sidebar a {
	display: block;
	height: 25vh;
	width: 14vw;
	margin-left: 4vw;
}

.sidebar a:before {
	display: block;
	content: "";
	width: 100%;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: right;
}

.sidebar .toggle-lockbox:before {
	background-image: url("../assets/imgs/lockbox-hover.png");
}

.sidebar .toggle-radio:before {
	background-image: url("../assets/imgs/radio-hover.png");
}

.sidebar .toggle-docs:before {
	background-image: url("../assets/imgs/docs-hover.png");
}

.sidebar .toggle-hints {
	position: relative;
    z-index: 1000;
}

.sidebar .toggle-hints:before {
	background-image: url("../assets/imgs/hints-hover.png");
}

.sidebar .toggle-lockbox:hover:before {
	background-image: url("../assets/imgs/lockbox-hover.png");
}

.sidebar .toggle-radio:hover:before {
	background-image: url("../assets/imgs/radio-hover.png");
}

.sidebar .toggle-docs:hover:before {
	background-image: url("../assets/imgs/docs-hover.png");
}

.sidebar .toggle-hints:hover:before {
	background-image: url("../assets/imgs/hints-hover.png");
}

.buttons {
	position: absolute;
	z-index: 7;
	width: 60px;
	top: 1rem;
	right: 3vw;
	overflow: visible;
}

.buttons a,
.fullscreen {
	display: block;
	width: 60px;
	height: 60px;
	overflow: visible;
}

.buttons a:before,
.fullscreen:before {
	display: block;
	content: "";
	width: 100%;
	height: 100%;
	background-size: 130%;
	background-repeat: no-repeat;
	background-position: center;
	overflow: visible;
}

a.home:before {
	background-image: url("../assets/imgs/home-default.svg");
}

a.timer:before {
	background-image: url("../assets/imgs/timer-default.svg");
}

.fullscreen {
	border: none;
	background-color: transparent;
	display: block;
	padding: 0;
	margin: 0;
}

.fullscreen:before {
	background-image: url("../assets/imgs/fullscreen-default.svg");
}

@media only screen and (min-width: 1200px) {
	.fullscreen {
		display: block;
	}
}

.content {
	position: relative;
	top: 0;
	display: flex;
	flex-flow: column;
	height: 85%;
	margin: 4% 10vw 0 5vw;
	font-size: 3.4vh;
	font-family: "adobe-handwriting-frank", sans-serif;
	font-weight: 400;
	font-style: normal;
	line-height: 1.1;
	width: 100%;
}


.modal {
	width: 100vw;
	height: 100vh;
	position: fixed;
	left: 100vw;
	background: rgba(0,0,0,0.5);
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.padlocked-page {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255, 0.8);
}

.padlocked-page.hidden {
	display: none;
}

.padlocked-page::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url("../assets/imgs/padlock.svg");
	background-size: 50%;
	background-position: 50%;
	background-repeat: no-repeat;
}

.modal.open {
	left: 0;
}

.modal.correct {
	z-index: 1000;
	opacity: 0;
	left: 0;
	pointer-events: none;
	transition: opacity 0.28s;
}

.modal.correct.open {
	opacity: 1;
	transition: opacity 0.28s;
}

.modal .inner {
	position: relative;
	width: 80%;
	height: 80%;

	display: flex;
	align-items: center;
	justify-content: center;
	flex-flow: column;
}

.modal .inner .close {
	position: absolute;
	background: white;	
	top: 0;
	right: 0;
	width: 40px;
	aspect-ratio: 1/1;
	border-radius: 100%;
	z-index: 1000;
}

.modal .inner .close::after {
	content: "";
	background-image: url("../assets/imgs/close.svg");
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-position: 50%;
	background-repeat: no-repeat;
	background-size: 50%;
}

.lines::before {
  content: "";
  top: 50%;
  transform: translatey(-50%);
  left: 0;
  height: 4px;
  background: #000;
  width: 100%;
  position: absolute;
}

.lines::after {
  content: "";
  top: 0;
  left: 50%;
  transform: translatex(-50%);
  width: 4px;
  background: #000;
  height: 100vh;
  position: absolute;
}

.screen.stop {
	animation-play-state: paused;
}

.screen {
  clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0);
  background: #e1e1e1;
  position: absolute;
  height: calc(100vh + 100vw);
  width: calc(100vh + 100vw);
  animation: spin 1s linear infinite;
  animation-play-state: running;
}

@keyframes spin {
  0% {
    clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0);
  }
  12.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0);
  }
  37.5% {
    clip-path: polygon(
      50% 50%,
      100% 100%,
      100% 100%,
      100% 100%,
      0 100%,
      0 0,
      50% 0
    );
  }
  62.5% {
    clip-path: polygon(50% 50%, 0 100%, 0 100%, 0 100%, 0 100%, 0 0, 50% 0);
  }
  87.5% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0, 50% 0);
  }
  100% {
    clip-path: polygon(50% 50%, 50% 0, 50% 0, 50% 0, 50% 0, 50% 0, 50% 0);
  }
}

.lines {
  box-shadow: inset 0 0 5em 1em #000;
  position: absolute;
  left: 0;
  width: 100vw;
  height: 100vh;
  left: 0;
}

.number {
  font-size: 18rem;
  position: relative;
}

.number::after,
.number::before {
  content: "";
  border: #f7f7f7 solid 12px;
  border-radius: 50%;
  position: absolute;
}

.number::before {
  width: 480px;
  height: 480px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.number::after {
  width: 400px;
  height: 400px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.conclusion {

	position: fixed;
	z-index: 2;
	width: 100%;
	height: 100%;
	background: url('../assets/imgs/conclusion-background.jpg');
	background-size: cover;
	

}

.conclusion .name {

	background-color: #00aeac;
	color: white;
	font-family: "adobe-garamond-pro", serif;
	font-weight: 400;
	font-style: normal;
	position: absolute;
	z-index: 1;
	top: calc(10vh - 2rem);
	height: 2rem;
	padding: 0.5rem;
	display: flex;
	justify-items: center;
	align-items: center;
	margin: 0 0 0 10vw;

}

.conclusion .amelia {

	position: absolute;
	width: 30vw;
	right: 10vw;
	bottom: 0;

}

.conclusion .inner {

	background-color: white;
	background-color: white;
	width: 60vw;
	margin: 10vh 0 0 10vw;
	padding: 2vw 10vw 2vw 5vw;

}

/* Clue Styles (Yellow Post-Its) */

.clue {
	position: absolute;
	pointer-events: none;
	z-index: 200;
	width: 22vh;
}

.maze-clue {

}

.radio-clue {
	top: 0;
    left: 25%;
}

.radio-clue-2 {
	right: 0;
	bottom: 0;
}

.question-1-clue {
	top: 50%;
	right: 0%;
}

/* Hint Styles (Blue Post-Its) */

.hint {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 22vh;
}

.hint.show {
	opacity: 1;
}

.maze-hint {
	bottom: 0;
	right: 0;
}

.cipher-hint {
	top: 0;
	right: 0;
}

.radio-hint {
	z-index: 1000;
    top: 22%;
    left: 29%;
}

.lockbox-puzzle-hint {
	z-index: 1000;
	top: 56%;
    left: 73%;
}