@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Science+Gothic:wght@100..900&display=swap');
html{
	height: 100%;
	overflow: hidden;
}
body{
	height: 100%;
	margin: 0px;
	font-family: "Roboto", sans-serif;
	background-color: #000;
	perspective: 100px;
	perspective-origin: center bottom;
	overflow: hidden;
}
body>p.copyright{
	position: fixed;
	bottom: 0px;
	left: 50%;
	z-index: 99;
	transform: translateX(-50%);
	pointer-events: none;
	width: 345px;
	color: #fff;
	text-align: center;
	font-size: 11px;
}

.train-button{
	position: fixed;
	top: 20px;
	left: 20px;
	background-color: #000;
	border: solid 3px green;
	color: green;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
}
.train-button:hover{
	border: solid 3px #999;
	color: #999;
}
.train-button[disabled]{
	opacity: 0.3;
}
.train-button.hints:after, .train-button:hover:after{
	content: "Get in depth insights into your singing capabilities. Identify bad habbits and learn how to optimize your performances.";
	display: block;
	position: absolute;
	background-color: #222;
	color: #fff;
	padding: 15px;
	border-radius: 6px;
	width: 200px;
	border: solid 1px #333;
	color: #ccc;
	text-align: left;
	top: -3px;
	left: calc(100% + 30px);
	pointer-events: none;
	white-space: pre-wrap;
	font-size: 17px;
}
.train-button.hints:before, .train-button:hover:before{
	content: "";
	display: block;
	position: absolute;
	top: 11px;
	left: calc(100% + 16px);
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 8px 13.9px 8px 0;
	border-color: transparent #353535 transparent transparent;
	transform: rotate(0deg);
	pointer-events: none;
}
.graphed-analysis h2{
	position: relative;
	text-align: left;
	padding-left: 20px;
	font-size: 30px;
	margin: 0px;
	color: #3366cc;
	margin-top: 15px;
	margin-bottom: 20px;
}
.graphed-analysis h2>img{
	width: 32px;
	height: 32px;
	margin-right: 10px;
	vertical-align: middle;
}
.graphed-analysis h3{
	color: #fff;
	display: inline-block;
	width: 100px;
	margin: 0px;
	padding: 20px;
	background-color: #111;
	height: 80px;
	font-size: 36px;
	line-height: 35px;
	font-weight: normal;
	font-family: "Science Gothic", sans-serif;
	text-align: center;
	padding-top: 40px;
	position: relative;
}
.graphed-analysis h3:before{
	position: absolute;
	left: 50%;
	top: 5px;
	transform: translateX(-50%);
	color: #3f3f3f;
	font-size: 17px;
	content: "NOTE";
	display: block;
}
.graphed-analysis>button.close-button{
	position: absolute;
	right: 20px;
	top: -32px;
	width: 32px;
	height: 32px;
	color: #ccc;
	background-color: #111;
	border: solid 1px #3366cc;
	border-bottom-color: #000;
	cursor: pointer;
}
.graphed-analysis p{
	color: #ccc;
}
.graphed-analysis{
	position: fixed;
	top: 50%;
	left: 0px;
	right: 0px;
	z-index: 999;
	transform: translateY(-50%);
	border-top: solid 1px #3366cc;
	border-bottom: solid 1px #3366cc;
	box-shadow: 0px 5px 19px black;
	background-color: #000;
}

.graphed-analysis svg rect{
	fill: black;
}
.graphed-analysis svg text{
	fill: #7DA8FE;
}

.graphed-analysis audio {
	width: calc(100% - 375px);
	background-color: #060606;
	padding: 0px;
	margin: 10px;
	height: 32px;
	float: right;
	filter: invert(1);
	border-radius: 16px;
	transform: scale(0.6);
	border: none;
	transform-origin: 100% center;
	margin-right: 25px;
	margin-top: 0px;
	opacity: 0.5;
}
/*
.graphed-analysis svg path{
	stroke: orange;
}
*/

.chromatic-tuner-usage{
	position: fixed;
	left: 50%;
	top: 50%;
	width: 380px;
	padding: 40px;
	background-color: #000000;
	color: #fff;
	border: solid #000000 5px;
	border-radius: 5px;
	transform: translateX(-50%) translateY(-50%) scale(1);
	z-index: 99999;
	overflow: hidden;
	box-shadow: 0px 0px 115px rgb(154 205 51 / 20%);
	transition: all 0.6s ease-out;
	opacity: 1;
}
.chromatic-tuner-usage.minimized{
	transform: translateX(-50%) translateY(-50%) scale(0.2);
	opacity: 0;
}
.chromatic-tuner-usage>h2{
	font-size: 15px;
	text-align: center;
	font-weight: normal;
	text-transform: uppercase;
	background-color: #000000;
	margin: -20px;
	padding: 13px;
	color: #ffffff;
	margin-bottom: 5px;
}
.chromatic-tuner-usage>ul{
	list-style: none;
	margin: 0px;
	padding: 0px;
}
.chromatic-tuner-usage>ul>li{
	display: inline-block;
	width: calc(50% - 40px);
	padding: 15px;
	border: none;
	margin: 4px;
	vertical-align: top;
	cursor: pointer;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	height: 332px;
	position: relative;
	transition: all 0.6s ease-out;
}
.chromatic-tuner-usage>ul>li>label{
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
	padding: 15px;
	background-color: rgba(0, 0, 0, 0.4);
	color: #a09e9e;
	text-align: left;
	text-transform: uppercase;
	font-size: 15px;
	pointer-events: none;
	transition: all 0.3s ease-out;
}
.chromatic-tuner-usage>ul>li[data-usage="tune-instrument"]{
	background-image: url("../assets/tuning.jpg");
}
.chromatic-tuner-usage>ul>li[data-usage="train-voice"]{
	background-image: url("../assets/training.jpg");
}

.chromatic-tuner-usage>ul>li:hover{
	filter: brightness(1.5);
}
.chromatic-tuner-usage>ul>li:hover>label{
	color: #fff;
	padding-left: 46px;
}


.chromatic-tuner[data-note-index="0"]{
	border-color: red;
}
.chromatic-tuner[data-note-index="1"]{
	border-color: orangered;
}
.chromatic-tuner[data-note-index="2"]{
	border-color: orange;
}
.chromatic-tuner[data-note-index="3"]{
	border-color: #FFC600;
}
.chromatic-tuner[data-note-index="4"]{
	border-color: yellow;
}
.chromatic-tuner[data-note-index="5"]{
	border-color: yellowgreen;
}
.chromatic-tuner[data-note-index="6"]{
	border-color: green;
}
.chromatic-tuner[data-note-index="7"]{
	border-color: cyan;
}
.chromatic-tuner[data-note-index="8"]{
	border-color: blue;
}
.chromatic-tuner[data-note-index="9"]{
	border-color: #370082;
}
.chromatic-tuner[data-note-index="10"]{
	border-color: darkviolet;
}
.chromatic-tuner[data-note-index="11"]{
	border-color: #650069;
}
h1{
	position: fixed;
	bottom: 90px;
	left: 50%;
	letter-spacing: 0px;
	font-size: 20px;
	text-align: left;
	color: #fff;
	font-weight: normal;
	text-transform: uppercase;
	margin: 0px;
	text-shadow: 2px 5px 1px black;
	z-index: 99;
	font-family: "Science Gothic", sans-serif;
	transform: translateX(-50%);
	line-height: 19px;
	pointer-events: none;
	width: 200px;
}
h1>img{
	width: 42px;
	float: left;
	margin-right: 10px;
}




h1.tucked{
	font-size: 17px;
	bottom: 46px;
}

button#start.tucked {
	display: none;
}
button#start{
	background-color: rgba(0, 0, 0, 0.8);
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	border: solid 2px #fff;
	padding: 20px;
	color: #fff;
	border-radius: 10px;
	width: 200px;
	text-shadow: 1px 3px 1px black;
	box-shadow: 0px 0px 1px rgba(255, 255, 255, 0.6);
	cursor: pointer;
	z-index: 99;
	font-size: 17px;
}
.chromatic-tuner{
	position: fixed;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
	background-color: #000;
	transition: all 0.1s;
	border-bottom: solid 10px #000;
}


.chromatic-tuner>ul{
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0px;
	height: 0px;
	padding: 0px;
	margin: 0px;
	transition: all 1s ease-out;
}
.chromatic-tuner>ul.loading{
	transform: rotate(-270deg);
}
.chromatic-tuner>div{
	color: #fff;
	width: 200px;
	height: 200px;
	position: relative;
	margin: auto;
	background: radial-gradient(circle, rgb(4 4 4) 0%, rgb(5 5 5) 100%);
	margin-top: -110px;
	border-radius: 50%;
	transform: rotateX(45deg) scaleY(0.6);
	border: solid #0f0f0f 10px;
}
.chromatic-tuner>div:after{
	content: "";
	display: block;
	position: absolute;
	width: 94px;
	height: 165px;
	right: 14px;
	bottom: 10px;
	background: radial-gradient(circle, rgba(255, 255, 0, 0.2) 0%, transparent 50%);
	transform: scale(2) rotateZ(91deg);
}
.chromatic-tuner>div:before{
	content: attr(data-accuracy);
	display: block;
	position: absolute;
	left: 0px;
	right: 0px;
	text-align: center;
	top: 213px;
	transform: scaleX(0.4);
	font-size: 28px;
	z-index: 0;
	color: #989898;
	font-weight: normal;
	font-family: "Science Gothic", sans-serif;
}
.chromatic-tuner>div>span{
	display: block;
	background-color: red;
	width: 2px;
	height: 100px;
	left: 50%;
	margin-left: -1px;
	position: absolute;
	transform-origin: 50% 0%;
	transition: all 0.3s;
	top: 100px;
	z-index: 9999;
	box-shadow: -5px 0px 8px 4px rgba(0, 0, 0, 0.7);
}


.chromatic-tuner>ul>article{
	color: #fff;
	text-align: center;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	transform: translateX(-50%) translateY(-50%);
	position: relative;
	line-height: 27px;
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s ease-out;
}
.chromatic-tuner>ul>article.loaded{
	visibility: visible;
	opacity: 1;
}
.chromatic-tuner>ul>article.flat:before{
	content: "FLAT";
	position: absolute;
	color: red;
	top: 0px;
	left: 0px;
	right: 0px;
	text-align: center;
	display: block;
	font-size: 10px;
}
.chromatic-tuner>ul>article.sharp:before{
	content: "SHARP";
	position: absolute;
	color: red;
	top: 0px;
	left: 0px;
	right: 0px;
	text-align: center;
	display: block;
	font-size: 10px;
}
.chromatic-tuner>ul>article.intune:before{
	content: "IN TUNE";
	position: absolute;
	color: green;
	top: 0px;
	left: 0px;
	right: 0px;
	text-align: center;
	display: block;
	font-size: 10px;
}
.chromatic-tuner>ul>li{
	position: absolute;
	width: 36px;
	height: 36px;
	background-color: #222;
	transform: translateX(-50%) translateY(-50%) scale(0.3);
	font-size: 10px;
	line-height: 10px;
	border-radius: 50%;
	border: solid 1px #666;
	color: transparent;
	list-style: none;
	text-align: center;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.3, 0.8, 0.3, 2.3);
	cursor: pointer;
}

.chromatic-tuner>ul>li:hover{
	transform: translateX(-50%) translateY(-50%) scale(1);
	color: #fff;
	background-color: #000 !important;
	z-index: 99999;
}

.chromatic-tuner>ul>li.note-on{
	transform: translateX(-50%) translateY(-50%) scale(1);
	color: #fff;
	z-index: 99999;
}
.chromatic-tuner>ul>li[data-note-index="0"]{
	background-color: red;
}
.chromatic-tuner>ul>li[data-note-index="1"]{
	background-color: orangered;
}
.chromatic-tuner>ul>li[data-note-index="2"]{
	background-color: orange;
}
.chromatic-tuner>ul>li[data-note-index="3"]{
	background-color: #FFC600;
}
.chromatic-tuner>ul>li[data-note-index="4"]{
	background-color: yellow;
}
.chromatic-tuner>ul>li[data-note-index="5"]{
	background-color: yellowgreen;
}
.chromatic-tuner>ul>li[data-note-index="6"]{
	background-color: green;
}
.chromatic-tuner>ul>li[data-note-index="7"]{
	background-color: cyan;
}
.chromatic-tuner>ul>li[data-note-index="8"]{
	background-color: blue;
}
.chromatic-tuner>ul>li[data-note-index="9"]{
	background-color: #370082;
}
.chromatic-tuner>ul>li[data-note-index="10"]{
	background-color: darkviolet;
}
.chromatic-tuner>ul>li[data-note-index="11"]{
	background-color: #650069;
}
.video-background {
	position: fixed; /* Fixes the video to the viewport */
	top: 0;
	left: 0;
	width: 100vw; /* 100% of viewport width */
	height: 100vh; /* 100% of viewport height */
	overflow: hidden; /* Hides any overflowing parts of the video */
	z-index: -1; /* Places the video behind other content */
}

.video-background video {
	min-width: 100%; /* Ensures video covers at least 100% width */
	min-height: 100%; /* Ensures video covers at least 100% height */
	object-fit: cover; /* Crops the video to fill the container while maintaining aspect ratio */
	position: absolute; /* Positions the video within its container */
	top: 50%; /* Centers the video vertically */
	left: 50%; /* Centers the video horizontally */
	transform: translate(-50%, -50%); /* Adjusts position for perfect centering */
	cursor: pointer;
	max-width: 140%;
}

.inline{
	display: inline-block;
	vertical-align: top;
	width: calc(25% - 42px);
}
.clear-both{
	clear:both;
}
.countdown{
	position: fixed;
	left: 50%;
	bottom: 150px;
	z-index: 9999999999;
	color: #000;
	font-size: 64px;
	text-align: center;
	transform: translateX(-50%);
	background-color: rgba(255,255,255,0.7);
	padding: 30px;
	border-radius: 10px;
	min-width: 120px;
}

.chromatic-tuner-training{
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 999999;
	color: #fff;
	text-align: center;
	transform: translateX(-50%) translateY(-50%);
	background-color: #111;
	padding: 30px;
	border-radius: 10px;
	width: 600px;
	border: solid 1px #333;
}
.chromatic-tuner-training select[name="oscillator"]{
	position: absolute;
	left: -3px;
	top: -4px;
	padding: 2px;
	background-color: #201f1f;
	color: green;
	border-radius: 5px;
	width: 120px;
	border: solid green 0px;
	padding-left: 6px;
}
.chromatic-tuner-training>h2{
	position: relative;
	text-align: left;
	padding: 10px;
	margin: 0px;
	font-size: 30px;
	margin-top: -30px;
}
.chromatic-tuner-training>h4{
	font-size: 12px;
	margin: 0px;
	margin-top: 10px;
	margin-bottom: 10px;
	position: relative;
}
.chromatic-tuner-training>p{
	font-size: 15px;
	text-align: left;
	line-height: 21px;
	padding: 10px;
	background-color: #252525;
	color: #b7b7b7;
	font-weight: normal;
}
.chromatic-tuner-training>section.keyboard{
	overflow-x: scroll;
}
.chromatic-tuner-training button.start-training{
	padding: 10px;
	background-color: green;
	color: #fff;
	border: none;
	cursor: pointer;
}
.chromatic-tuner-training button.start-training>span{
	display: inline-block;
	border: solid 1px #ffffff;
	line-height: 24px;
	min-width: 24px;
	margin-right: 10px;
	background-color: #222;
	padding-left: 10px;
	padding-right: 10px;
}
.chromatic-tuner-training button.start-training>span>br{
	display: none;
}
.chromatic-tuner-training button.cancel-training{
	padding: 14px;
	background-color: #6a6a69;
	color: #fff;
	border: none;
	height: 46px;
	cursor: pointer;
}
ul.midi-keyboard{
  padding: 0px;
  margin: 0px;
  list-style: none;
  white-space: nowrap;
}
ul.midi-keyboard>li{
  width:20px;
  background-color: #fff;
  height: 80px;
  display: inline-block;
  box-shadow: 0px 0px 3px rgba(0,0,0,0.9);
  vertical-align: top;
  cursor: pointer;
}
ul.midi-keyboard>li:hover{
  background-color: #eee;
  box-shadow: -1px 0px 1px rgba(0,0,0,0.9);
}
ul.midi-keyboard>li.black-key{
  width: 12px;
  height: 50px;
  background-color: #000;
  margin-left: -6px;
  margin-right: -6px;
  transform: translateZ(1px);
  box-shadow: 0px 0px 2px rgba(0,0,0,0.9);
}
ul.midi-keyboard>li.black-key:hover{
  box-shadow: 0px 0px 2px rgba(255,255,255,0.9);
}
.chromatic-tuner-error{
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	background-color: #333;
	color: #fff;
	padding: 20px;
	border-radius: 5px;
	z-index: 999999;
	text-align: center;
	width: 300px;
}

@media only screen and (max-width: 768px) {
	
	#pie_chart_div1{
		width: calc(50% - 84px);
	}
	#pie_chart_div2{
		width: calc(50% - 84px);
	}
	#pie_chart_div3{
		width: calc(50% - 2px);
	}
	#pie_chart_div4{
		width: calc(50% - 2px);
	}
	
}
@media only screen and (max-width: 680px) {
	
	.chromatic-tuner-training{
		width: 450px;
	}
	
}
@media only screen and (max-width: 580px) {
	
	.chromatic-tuner-training{
		width: 400px;
	}
	
	#pie_chart_div1{
		width: calc(100% - 144px);
	}
	#pie_chart_div2{
		width: calc(100%);
	}
	#pie_chart_div3{
		width: calc(100%);
	}
	#pie_chart_div4{
		width: calc(100%);
	}
	
	.graphed-analysis {
		max-height: calc(100% - 2px);
		overflow: auto;
	}
	.graphed-analysis>button.close-button {
		right: 10px;
		top: 10px;
		border-bottom-color: #3366cc;
	}
	.graphed-analysis audio {
		width: calc(100% - 20px);
		background-color: #060606;
		padding: 0px;
		margin: 10px;
		height: 32px;
		float: none;
		filter: invert(1);
		border-radius: 16px;
		transform: none;
		border: none;
		transform-origin: 100% center;
		margin-right: 0px;
		margin-top: 20px;
		opacity: 0.5;
	}
	
}

@media only screen and (max-width: 480px) {
	.chromatic-tuner-usage{
		padding: 20px;
		width: 285px;
	}
	.chromatic-tuner-usage>ul>li{
		height: 249px;
	}
	.chromatic-tuner-training>p {
		font-size: 13px;
		text-align: left;
		line-height: 15px;
	}
	.chromatic-tuner-training>h4 {
		font-size: 7px;
		line-height: 12px;
	}
	.chromatic-tuner-training select[name="oscillator"]{
		width: 100px;
	}
	.chromatic-tuner-training{
		width: 300px;
	}
	.graphed-analysis h2 {
		font-size: 21px;
	}
	.graphed-analysis h2>img {
		width: 24px;
		height: 24px;
	}
	
}