* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

@font-face {font-family: "Campton W00 Light";
	src: url("campton-light/a8ba95735ee997485410fd9ec19b3044.eot"); /* IE9*/
	src: url("campton-light/a8ba95735ee997485410fd9ec19b3044.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
		url("campton-light/a8ba95735ee997485410fd9ec19b3044.woff2") format("woff2"), /* chrome, firefox */
		url("campton-light/a8ba95735ee997485410fd9ec19b3044.woff") format("woff"), /* chrome, firefox */
		url("campton-light/a8ba95735ee997485410fd9ec19b3044.ttf") format("truetype"), /* chrome, Â�firefox, Â�opera, Â�Safari, Android, iOS 4.2+*/
		url("campton-light/a8ba95735ee997485410fd9ec19b3044.svg#Campton W00 Light") format("svg"); /* iOS 4.1- */
}

@font-face {
	font-family: "Campton W00 SemiBold";
	src: url("campton-semibold/a2a547e9379f8522555d278a2bf98ab7.eot"); /* IE9*/
	src: url("campton-semibold/a2a547e9379f8522555d278a2bf98ab7.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
		url("campton-semibold/a2a547e9379f8522555d278a2bf98ab7.woff2") format("woff2"), /* chrome, Â�firefox */
		url("campton-semibold/a2a547e9379f8522555d278a2bf98ab7.woff") format("woff"), /* chrome, firefox */
		url("campton-semibold/a2a547e9379f8522555d278a2bf98ab7.ttf") format("truetype"), /* chrome, firefox, Â�opera, Â�Safari, Android, iOS 4.2+*/
		url("campton-semibold/a2a547e9379f8522555d278a2bf98ab7.svg#Campton W00 SemiBold") format("svg"); /* iOS 4.1- */
}

@font-face {
	font-family: "Variane Script";
	src: url("variane/bcba0f0b66e10349b4a115bc1e764f3d.eot");
	src: url("variane/bcba0f0b66e10349b4a115bc1e764f3d.eot?#iefix") format("embedded-opentype"),
		url("variane/bcba0f0b66e10349b4a115bc1e764f3d.woff2") format("woff2"),
		url("variane/bcba0f0b66e10349b4a115bc1e764f3d.woff") format("woff"),
		url("variane/bcba0f0b66e10349b4a115bc1e764f3d.ttf") format("truetype"),
		url("variane/bcba0f0b66e10349b4a115bc1e764f3d.svg#Variane Script") format("svg");
}

html {
	height: 100%;
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
	font-family: 'Poppins', sans-serif, "google";
    font-size:12pt;
    color: #262626;
    background-color: #fafafa;
    margin:0px;
    padding:0px;
    width:100%;
    display: flex;
    flex-direction: column;
    min-height:100%;
}

header {
	position: relative;
	padding: 10px;
	padding-left: 120px;
	color: white;
   font-family: Campton W00 SemiBold, Arial, sans-serif;
	font-weight: bold;
	font-size: 26pt;
	background: url(../img/muyomi-logo-white-no-text.png) 25px center no-repeat;
	background-size: auto 70%;
	background-color: #ed3c4b;
}

button, input, optgroup, select, textarea {
	font-size: 10pt;
}

header > div.title {
	display: inline-block;
	padding: 0;
}

header > div.title > .subtitle {
	display: block;
	font-family: Variane Script;
	font-size: 16pt;
	font-weight: normal;
	text-align: center;
}

header > button {
	float: right;
	color: white;
	background-color: transparent;
	border-color: white;
	font-family: Campton W00 Light, Arial, sans-serif;
	line-height: 125%;
	background-color: transparent;
	border: 0.5px solid;
	border-radius: 5px;
	padding-top: 2px;
	padding-bottom: 5px;
	padding-left: 10px;
	padding-right: 10px;
	margin-left: 10px;
}

header > button:hover, header > button.active {
	background-color: rgba(255, 255, 255, 0.5);
	outline: none;
}

header > button.active {
	background-color: rgba(255, 255, 255, 0.5) !important;
}
header > button:focus {
	background-color: transparent;
	outline: none;
}

header > div.community {
	position: absolute;
	top: 0;
	max-width:60%;
	left: 50%;
	text-align: center;
	transform: translateX(-50%);
	cursor: pointer;
	cursor: hand;
}

header > div.community > h1 {
	font-size: 28pt;
}

header > div.community > h2 {
	font-size: 16pt;
	margin: 0;
}

header > div.community > h2 > p {
	margin: 0;
}

main {
	flex: 1;
	position: relative;
}

h1 {
    font-size:14px;
    font-weight:normal;
    margin:0px;
    overflow:visible;
    padding:0px;
    text-align:center;
}

.event {
    border-radius:4px;
    -webkit-border-radius:4px;
    color:#FFFFFF;
    font-size:13pt;
    margin:0px 30px;
    padding:2px 0px;
}

#deviceready {
	text-align: center;
}

#deviceready > img {
	display: block;
	margin: 0 auto;
}

.event.listening {
    background-color:#333333;
    display:inline-block;
}

.event.received {
    background-color:#4B946A;
    display:none;
}

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
@-webkit-keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
.blink {
    animation:fade 3000ms infinite;
    -webkit-animation:fade 3000ms infinite;
}

p.resetpassword {
	color: #ed3c4b;
	font-style: italic;
	font-size: small;
	cursor: pointer;
}

div#connect {
	text-align: center;
	padding: 20px;
}

div#connect button {
	margin-top: 10px;
}

#debug {
	font-size:8px;
	text-align: center;
}

ul.tabs {
	display: inline-block;
	font-size: 13pt;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	min-width: 100%;
}

ul.tabs > li {
	cursor: pointer;
	cursor: hand;
	margin: 0;
	padding: 10px 20px 0px 20px;
	list-style-type: none;
	display: inline-block;
}

ul.tabs > li.selected {
	border-bottom: 1px solid #ed3c4b;
}

ul.tabs > li.right {
	float: right;
}

#maincategories {
	background-color: #dddddd;
	overflow: hidden;
}

#subcategories {
	background-color: #eeeeee;
	overflow: hidden;
}

footer {
	color: #8f8f8f;
	margin-bottom: 10px;
	text-align: center;
	font-size: 10pt;
}

footer > a {
	color: #8f8f8f;
	text-decoration: none;
}

main > div.userform {
	margin: 20px;
}

.respondentscounter {
	font-size: 12pt;
}

main.playerarea {
	text-align: center;
}

main.playerarea > div {
	margin-top: 30px;
	font-size: 20pt;
}

main.playerarea div.welcome {
	font-size: 36pt;
	font-weight: bold;
}

main.playerarea > div.qrcode {
	position: relative;
}

main.playerarea > div.qrcode > img {
	margin-left: auto;
	margin-right: auto;
}

main.playerarea > div.qrcode::after {
	position: absolute;
	content: ' ';
	background: white url(../img/icons/muyomi_concept.png) center center no-repeat;
	background-size: contain;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 64px;
	height: 64px;
	box-sizing: border-box;
	border: 5px solid white;
	border-radius: 50%;
	z-index: 100;
}

div.player-controls {
	position: absolute;
	right: 3vw;
	bottom: 0;
}

div.player-controls > button {
	margin-left: 1vw;
}

.hourglass {
	position: relative;
	width: 280px;
	height: 280px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 50px;
	margin-bottom: 30px;
}

.hourglass > div.upperhalf, .hourglass > div.lowerhalf {
	position: relative;
	height: 50%;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.hourglass .sand {
	position: absolute;
	height: 55%;
	width: 55%;
	left: 50%;
	transform: translate(-50%,0);
	background-color: #ffad08;
}

.hourglass .upperhalf .sand {
	bottom: 0;
	border-bottom-left-radius: 1000px;
	border-bottom-right-radius: 1000px;
}

.hourglass .lowerhalf .sand {
	bottom: 25%;
	border-top-left-radius: 1000px;
	border-top-right-radius: 1000px;
}

.hourglass .sand.stream {
	height: 100%;
	width: 2%;
	left: 49%;
	bottom: 0;
}

.hourglass > div.decoration {
	position: absolute;
	top: 0;
	height: 100%;
	width: 100%;
	z-index: 10;
	background: url(../img/hourglass-empty.png) center center no-repeat;
	background-size: contain;
}

.hourglass > div.controls {
	position: absolute;
	top: 50%;
	width: 100%;
	height: 30%;
	transform: translateY(-50%);
	z-index: 100;
	opacity: 0;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	color: white;
}

.hourglass:hover > div.controls {
	opacity: 1;
}

.hourglass > div.controls > div {
	height: 100%;
	width: 30%;
	border-radius: 50%;
	background-color: black;
	display: flex;
	justify-content: center;
	align-content: center;
	flex-direction: column;
}

button.scan {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.hidden {
	display: none !important;
}

main {
	background-color: white;
}

html, body {
	background-color: transparent !important;
}

div.qrscanner {
	flex: 1;
	background-color: transparent;
	display: flex;
	flex-direction: column;
}

div.qrscanner > div.window {
	margin: 22vh 20vmin 20vmin;
	width: 60vmin;
	height: 60vmin;
	border: 3px solid white;
	background-color: transparent;
}

div.qrscanner > div.window.complete {
	border-color: red;
}

div.qrscanner > div.buttons {
	flex: 1;
	background-color: white;
	display: flex;
	justify-content: space-around;
}

div.qrscanner > div.buttons {
	padding-top: 10vw;
}

div.qrscanner > div.buttons > button, button.scan {
	width: 80vmin;
	height: 20vmin;
	font-size: 12vmin;
	color: white;
	background-color: grey;
	border: none;
}

header button.menu {
	font-size: 32px;
	border: none;
}

body > .menu, body > .privacy {
	padding: 10vmin;
	text-align: justify;
	background-color: white;
	flex: 1;
}

body > .menu > div {
	margin-bottom: 10vmin;
}

body > .menu > div:last-child {
	margin-bottom: 0;
}

body > .menu .userform p {
	text-align: left;
}

body > .menu input {
	width: 100%;
	margin-bottom: 1em;
}

body > .menu button {
	margin: 5px 1em 5px 0;
}

body > .menu button.login, body > .menu button.createaccount, body > .menu button.logout {
	display: block;
}

body > .menu button::before {
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	margin-right: 0.5em;
}

body > .menu button.login::before {
	content: '\f2f6';
}

body > .menu button.createaccount::before {
	content: '\f007';
	font-weight: 400;
}

body > .menu button.logout::before {
	content: '\f2f5';
}

body > main > div.button {
	display: inline-block;
	position: relative;
	min-width: 100px;
	padding-top: 120px;
	text-align: center; 
	box-sizing: border-box;
	margin: 50px;
}

body > main > div.button::before {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100px;
	width: 100px;
	color: white;
	background-color: #ed3c4b;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 70px;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%,0);
}

body > main > div.button.scannerbutton::before {
	content: '\f029';
}

body > main > div.button.communitybutton::before {
	content: '\f6de';
}