*{
    margin: 0; padding: 0;
}
.main{
    width: 100%;
    height: 100vh;
}

.homeScreen{
    width: 100%;
    height: 100vh;
    background: url(../images/lap.png) center no-repeat;
    position: relative;
    background-size: cover;
}
.loadBtn{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* background: rgba(0, 0, 0, 0.5); */
    background: none;
    border: none;
    opacity: 0;
}

#mainScreen{
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../images/hrmBg.png) center no-repeat;
    background-size: cover;
}
#mainScreen center{
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.volumeDiv{
    position: absolute;
    top: 50%;
    right: 0;
    opacity: 0;
}
.white {
    fill: white;
    stroke: black;
    stroke-width: 1;
    cursor: pointer;
    margin: 2px;
}

.black {
    fill: black;
    stroke: black;
    stroke-width: 1;
    cursor: pointer;
    margin: 2px;
}

.white1:hover {
    fill: #9e9e9e;
    stroke: lightblue;
    cursor: pointer;
    stroke-width: 1;

}

.black1:hover {
    fill: #515151;
    stroke: lightblue;
    stroke-width: 1;

}

.slidecontainer {
    width: 100%;
    /* Width of the outside container */
}

/* The slider itself */
.slider {
    -webkit-appearance: none;
    /* Override default CSS styles */
    appearance: none;
    width: 100%;
    /* Full-width */
    height: 25px;
    /* Specified height */
    background: #d3d3d3;
    /* Grey background */
    outline: none;
    /* Remove outline */
    opacity: 0.7;
    /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s;
    /* 0.2 seconds transition on hover */
    transition: opacity .2s;
}

/* Mouse-over effects */
.slider:hover {
    opacity: 1;
    /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    /* Override default look */
    appearance: none;
    width: 25px;
    /* Set a specific slider handle width */
    height: 25px;
    /* Slider handle height */
    background: #4CAF50;
    /* Green background */
    cursor: pointer;
    /* Cursor on hover */
}

.slider::-moz-range-thumb {
    width: 25px;
    /* Set a specific slider handle width */
    height: 25px;
    /* Slider handle height */
    background: #4CAF50;
    /* Green background */
    cursor: pointer;
    /* Cursor on hover */
}

/* CSS for toggle button */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.toggle:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.toggle {
    background-color: #2196F3;
}

input:focus+.toggle {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.toggle:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.toggle.round {
    border-radius: 34px;
}

.toggle.round:before {
    border-radius: 50%;
}

svg {
    transform: scale(2);
    transform-origin: 0 0;
}
.volumeBox{
    display: flex;
    justify-content: flex-end;
}

.motionCol{
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    opacity: 0;
}

video { width: 100%; max-width: 600px; display: block; margin: auto; }
#indicator {
    width: 100%;
    height: 5px;
    background-color: red;
    transition: background-color 0.2s linear;
}
#motionValue {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
}

.piano{
    position: absolute;
    bottom: 80px;
    width: 816px;
    height: 547px;
    display: flex;
    justify-content: center;
    margin-top: 0;
    background: url(../images/hrm.png) center no-repeat;
    background-size: 100%;
}
.white-key, .black-key {
    border: 1px solid #333;
    box-sizing: border-box;
}
.white-key {
    width: 60px;
    height: 200px;
    background: white;
    position: relative;
    z-index: 1;
    margin: 0 1px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-weight: bold;
    padding-bottom: 10px;
    transition: transform 0.1s;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.black-key {
    width: 50px;
    height: 110px;
    background: black;
    position: absolute;
    top: 0;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 14px;
    padding-top: 60px;
    transition: transform 0.1s;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.white-key:active, .white-key.pressed {
    transform: translateY(5px);
    background: #eee;
}
.black-key:active, .black-key.pressed {
    transform: translateY(5px);
    background: #333;
}
/* Positioning black keys manually */
.black-key.w { left: 20px; }
.black-key.e { left: 80px; }
.black-key.t { left: 190px; }
.black-key.y { left: 248px; }
.black-key.u { left: 305px; }
.black-key.o { left: 475px; }
.black-key.p { left: 530px; }

.whiteSec{
    position: absolute;
    z-index: 1;
    width: 620px;
    display: flex;
    top: 270px;
    left: 100px;
}

.blackSec{
    position: absolute;
    z-index: 2;
    width: 620px;
    display: flex;
    top: 270px;
    left: 110px;
}

.audioFiles{
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}
.audioFiles img{
    width: 0;
    height: 0; 
}

@media (max-width: 1500px) {
    .piano {
        width: 640px;
        height: 420px;
        background-size: 100%;
    }
    .whiteSec {
        width: 500px;
        top: 205px;
        left: 70px;
    }
    .blackSec {
        width: 500px;
        top: 205px;
        left: 70px;
    }
    .black-key {
        width: 40px;
    }
    .black-key.w { left: 26px; }
    .black-key.e { left: 74px; }
    .black-key.t { left: 160px; }
    .black-key.y { left: 208px; }
    .black-key.u { left: 256px; }
    .black-key.o { left: 344px; }
    .black-key.p { left: 390px; }
}