.Piano {
	--position: absolute;
	--left: 0;
	--bottom: 0;
	--width: 100%;
	--overflow: auto;
	--z-index: 1000;
	--display: block;
}

.Piano_Frame {
	position: absolute;
	margin: 20px auto;
	left: calc(50vw - 564px / 2);
	bottom: 0;
	background: rgba(0,0,0,0.8);
	padding: 0 12px 12px 12px;
	border-radius: 3px;
	width: 564px;
	box-shadow: 0 5px 10px 2px rgba(0,0,0,1);
	z-index: 1000;
	display: none;
}

.Piano_Header {
	position: relative;
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
}

.Piano_Roll {
	display: flex;
	width: 100%;
}

.Piano_Header .title, .Piano_Header .midi, .Piano_Header .close {
	font-size: 12px;
	text-shadow: 0 0 10px #4f9ad5, 0 0 3px #4f9ad5;
	color: #fff;
	padding: 12px 0;
}

.Piano_Header .midi { color: #4f9ad5; }
.Piano_Header .midi.connected { color: #fff; }

.Piano_Header .close { cursor: pointer; }
.Piano_Header .close:hover { color: #4f9ad5 }

.Piano_Octave {
	position: relative;
	height: 90px;
	display: block;
	overflow: hidden;
}

.Piano_Octave {	width: calc(18px * 7); }
.Piano_Octave:first-child { width: calc(18px * 5); }
.Piano_Octave:last-child { width: calc(18px * 4); }

.PianoWhiteList, .PianoBlackList {
	width: 100%;
	position: absolute;
	display: flex;
	left: 0;
	top: 0;
	z-index: 1;
}

.PianoBlackList {
	z-index: 2;
}

.PianoKeyWhite {
	box-sizing: border-box;
	position: relative;
	display: inline-block;
	width: 18px;
	height: 90px;	
	background: #fff;
	box-shadow: inset 0 0 1px #000;
	border-radius: 0 0 3px 3px;
	border: solid 1px #333;
	border-left: unset;
	padding: 0;
	transition-duration: .1s;
}

.Piano_Octave:first-child .PianoKeyWhite:first-child { border: solid 1px #333; }

.PianoKeyWhite.pressed { background: dodgerblue }

.PianoKeyBlack {
	box-sizing: border-box;
	position: absolute;
	display: inline-block;
	width: 12px;
	height: 48px;	
	background: #000;
	box-shadow: 0 0 15px rgba(0,0,0,0.3);
	border-radius: 0 0 3px 3px;
	border: solid 1px #333;
	border-top: none;
	padding: 0;
	transition-duration: .1s;
}

.PianoKeyBlack:nth-child(1) { left: 12px; }
.PianoKeyBlack:nth-child(2) { left: 30px; }
.PianoKeyBlack:nth-child(3) { left: 66px; }
.PianoKeyBlack:nth-child(4) { left: 84px; }
.PianoKeyBlack:nth-child(5) { left: 102px; }

.Piano_Octave:first-child .PianoKeyBlack:nth-child(1) { left: -6px; }
.Piano_Octave:first-child .PianoKeyBlack:nth-child(2) { left: 30px; }
.Piano_Octave:first-child .PianoKeyBlack:nth-child(3) { left: 48px; }
.Piano_Octave:first-child .PianoKeyBlack:nth-child(4) { left: 66px; }

.PianoKeyWhite.pressed, .PianoKeyBlack.pressed { background: #4f9ad5 }




















