
body {
	background-color: #fff;
	color: rgba(0,0,0,.87);
	font-family: Roboto,HelveticaNeue,Arial,sans-serif;
	margin: 0;
	position: relative;
	-webkit-tap-highlight-color: transparent;
	-webkit-font-smoothing: auto;
}

/* ============================= */

a, a:visited {
	text-decoration: none;
	color: #4828E0;
}
a:not([href]) {
	color: #817f8888;
}

p {
	color: #802d8d;
}

/* ============================= */

br.vertical {
	content: " ";
	display: inline-block;
}
br.vertical.v-25 {
	height: 25vh;
}
br.vertical.v-30 {
	height: 30vh;
}

/* ============================= */

.float-left {
	float: left;
}

.float-right {
	float: right;
}

div.align-center {
	text-align: center;
}

.info>#info>.float-left,
.info>#info>.float-right {
	width: 30vw;
	color: #A888D8;
	font-size: 20pt;
	margin-top: 18vh;/*calc(20vh + 64px);*/
	text-align: center;
}

.info>#info>.float-left>.output-num,
.info>#info>.float-right>.output-num {
	color: #A888D8;
	font-size: 30pt;
	font-weight: bold;
}

/* ============================= */

h2 {
	color: #8060A0;
	font-size: 28pt;
}

h3.mdl-title {
	color: #A080C0;
	font-size: 24pt;
	width: 80%;
	margin: 10vh auto 25vh auto;
}

h3.mdl-title a {
	font-size: 12pt;
	font-weight: normal;
}

/* ============================= */

div.frame {
	background-color: #E8E0FF;
	position: absolute;
	width: 100vw;
	height: 100vh;
	box-shadow: 60px -30px 100px -40px inset #ffd1fb, -60px 30px 100px -40px inset #c9d6ff;
	opacity: 0;
	transition: opacity 0.5;
	user-select: none;
	overflow-y: auto;
}
div.frame.active {
	opacity: 1;
}
div.frame::selection {
	background: rgba(0, 0, 0, 0)
}

/* ============================= */

div.card {
	padding: 16px;
	display: inline-block;
	background-color: #FFFFFF;
	border: 1px solid #C4B7D9;
	border-radius: 8px;
	box-shadow: 1px 1px 10px -5px #000000;
}

div.row {
	margin: 3px 3px 0px 3px;
	white-space: nowrap;
}

div.tile, div.button {
	width: 64px;
	height: 64px;
	margin: 8px;
	display: inline-block;
	background-color: #F8F0FF;
	border: 1px solid #C8B5E4;
	box-shadow: 0px 0px 8px -4px #000000;
}

div.frame.play div.tile,
div.frame.play div.button {
	cursor: pointer;
}

div.play div.tile:hover, div.tile.hover,
div.play div.button:hover, div.button.hover {
	background-color: #E9DBEE;
	color: #AF76E7;
}

div.play div.tile:active, div.tile.active,
div.play div.button:active, div.button.active {
	background-color: #B8A0BF;
	color: #FFFFFF;
}

div.tile {
	color: #b6a2ca;
	font-size: 36pt;
	line-height: 63px;
	border-radius: 4px;
	box-sizing: border-box;
}

div.button {
	border-radius: 32px;
}

/* ============================= */

div#module-twist>div.card,
div#module-twist.start>div.card {
	transition: transform 0.5s;
	transform: rotate(0deg);
}
div#module-twist.play>div.card,
div#module-twist.assess>div.card {
	transition: transform 0.5s;
	transform: rotate(90deg);
}

div#module-circle>div.card {
	overflow: hidden;
}
div#module-circle>div.card>div.row {
	position: relative;
	height: 340px;
	width: 340px;
	/*-webkit-animation: none;
	-moz-animation: none;
	animation: none;*/
}
div#module-circle.start>div.card>div.row,
div#module-circle.play>div.card>div.row,
div#module-circle.assess>div.card>div.row {
	-webkit-animation: spin 14s linear infinite;
	-moz-animation: spin 14s linear infinite;
	animation: spin 14s linear infinite;
}
div#module-circle>div.card>div.row>div.button {
	position: absolute;
}

/*box-top*/
div#module-cube>div.card {
	position: relative;
	height: 325px;
	width: 295px;
}
div#module-cube>div.card>div.box {
	perspective: 750px;
}
div#module-cube>div.card div.box-surface {
	position: absolute;
	width: 165px;
	border: 1px solid #fccdff;
}
div#module-cube>div.card div.box-top {
	left: 64px;
	transform: rotatex(66deg) rotatez(45deg);
}
div#module-cube>div.card div.box-left {
	top: 103px;
	transform: rotate3d(2.6, 4, -1, -50deg);
}
div#module-cube>div.card div.box-right {
	top: 103px;
	left: 126px;
	transform: rotate3d(-2.6, 4, -1, 50deg);
}


div#module-room>div.card {
	position: relative;
	height: 325px;
	width: 295px;
}
div#module-room>div.card>div.room {
	perspective: 750px;
}
div#module-room>div.card div.room-wall {
	position: absolute;
	width: 165px;
	border: 1px solid #fccdff;
}
div#module-room>div.card div.room-ceil {
	top: -29px;
	left: 60px;
	transform: rotatex(285deg) scaleY(2);
}
div#module-room>div.card div.room-left {
	top: 108px;
	left: -49px;
	transform: rotateY(76deg) scaleX(2);
}
div#module-room>div.card div.room-back {
	top: 94px;
	left: 60px;
	transform: scale(0.8);
}
div#module-room>div.card div.room-right {
	top: 108px;
	left: 184px;
	transform: rotateY(-76deg) scaleX(2);
}
div#module-room>div.card div.room-floor {
	top: 190px;
	left: 60px;
	transform: rotatex(285deg) scaleY(2);
}

/*div#module-music>div.card*/
ul.piano {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	box-shadow: -2px 1px 10px -5px #000000;
}
ul.piano li.note {
	border: 1px solid #a348ec;
	display: block;
	width: 300px;
	height: 48px;
	border-radius: 3px;
}
ul.piano li.note:active {
	box-shadow: 3px 1px 10px -5px inset #000000;
}
ul.piano li.note.sharp:active {
	box-shadow: 3px 1px 8px -3px inset #FFFFFF;
}
ul.piano li.note.sharp {
	background-color: #572e78;
	width: 160px;
	height: 36px;
	float: right;
	margin-top: -18px;
	box-shadow: -2px 1px 10px -5px #000000;
}

/* ============================= */

div#dialogue {
	content: " ";
	display: block;
	position: absolute;
	font-size: 16pt;
	left: 0px;
	top: 0px;
	width: 100vw;
	height: 100vh;
	text-align: center;
	background-color: rgba(10, 5, 20, 0.05);
	box-shadow: 1px 1px 100px -50px inset #000000;
	transition: opacity 0.25s;
}

div#dialogue>div.card {
	margin-top: 20vh;/*calc(25vh - 42px);*/
	padding: 16px 48px;
	background-color: #FDFAFD;
	box-shadow: 1px 1px 12px -8px #000000;
}

/*div#dialogue {
	position: fixed;
	left: 50vw;
	top: 50vh;
	padding: 20px 40px;
	background-color: #FFFFFF;
	box-shadow: 1px 1px 12px -6px #000000;
	border-radius: 6px;
}*/

.butons {
	padding: 5px;
}

a.button {
	padding: 8px 32px;
	margin: 0px 6px;
	color: #795285;
	font-size: 14pt;
	font-weight: bold;
	display: inline-block;
	background-color: #F8F0FF;
	border: 1px solid #C8B5E4;
	cursor: pointer;
	border-radius: 3px;
}

a.button.purple {
	background-color: #A888D8;
	color: #FFFFFF;
}

/* ============================= */

ul.grid {
	list-style-type: none;
	margin: 0px auto;
	padding: 0px;
	width: 50%;
}

ul.grid li {
	display: inline-block;
	margin: 10px;
}

ul.grid li a {
	display: inline-block;
	padding: 20px;
	width: 61px;
	font-size: 14pt;
	font-weight: bold;
	border: 1px solid #a348ec;
	color: #6828e0;
	background-color: #fdf8ff;
	border-radius: 8px;
	box-shadow: 1px 1px 10px -5px #000000;
}
ul.grid li a:not([href]) {
	color: #817f88;
}

.footer {
	position: fixed;
	bottom: 8px;
	left: 0px;
	width: 100%;
}

/* ============================= */

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

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

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

/* ============================= */

@media only screen and (max-width: 840px){
	h3.mdl-title {
		margin-bottom: 10px;
	}
	.info>#info>.float-left,
	.info>#info>.float-right {
		margin-top: 10px;
		margin-bottom: 25px;
	}
	ul.grid {
		width: 260px;
	}
	div#dialogue>div.card {
		margin-top: 56px;
	}
	br.vertical.v-30 {
		height: 20vh;
	}
}
