:root {

}

@media screen and (max-width: 520px) {
    :root {
        --panel-width: 55px;
    }
}

@media screen and (min-width: 521px) {
    :root {
        --panel-width: 110px;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

/*@media screen and (orientation: landscape) and (pointer:coarse) {
    html {
      transform: rotate(-90deg);
      height: 100vw;
    }
  }
*/

body {
    background-color: #C2E1C2;
    display: flex;
    min-height: 100vh;
    margin: 0;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}

.navscreen {
    width: 80%;
    height: 70vh;
    margin-right: 2%;
    overflow: scroll;

}

.laver {
    position: absolute;
    top: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    min-height: 100vh;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.upper_layer_left {
    position: absolute;
    left: 0;
    z-index: 2;
}

.upper_layer_right {
    position: absolute;
    right: 0;
    z-index: 2;
}

.lower-layer {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar {
    height: 100vh;
    background-color: white;
    width: var(--panel-width);
    transition: width 1s ease-in-out;
    overflow-x: hidden;
    overflow-y: auto;
}

    .navbar > a {
        background-color: #A491D3;
        border: none;
        color: white;
        width: 100%;
        text-align: center;

        margin-bottom: 1vmax;
        cursor: pointer;

        display:inline-block;
        /*padding:8px 16px;
          height: 8vmax;
          font-size: 4.5vmax;*/
        vertical-align:middle;
        overflow:hidden;
        white-space:nowrap;
    }

    .controls {
        height: 100vh;
        background-color: white;
        width: var(--panel-width);
        transition: width 1s ease-in-out;
        overflow-x: hidden;
        overflow-y: auto;
        display: flex;
        flex-direction: column-reverse;
        align-items: end;
    }

        .controls > button {
            border: none;
            color: white;
            width: 100%;
            text-align: center;
            font-size: 3vmax;
            cursor: pointer;
            height: auto;
            min-height: 20vh;
            display: inline-block;
            padding-top: 2vmax;
            padding-bottom: 2vmin;
            vertical-align: middle;
            overflow: hidden;
            margin-top: 5px;
            white-space: pre-line;
        }

            #torch {
                background-color: #A491D3;
            }

            #result {
                background-color: #A491D3;
            }

            #key-result {
                background-color: #FF8C42;
                cursor: default;
            }

select {
    width: 100%;
    border: none;
    background-color: #A491D3;
    color: white;
    text-align: center;
    font-size: 4vmin;
}

.clamp {
    max-height: 100vh;
    overflow: scroll;
    scale: 0.9;
}

.piano {
    margin-right: 2%;
    display: flex;
    align-items: stretch;
    width: 86%;
    height: 90vh;
    overflow: hidden;
}

.key {
    display: flex;
    align-items: end;
    justify-content: center;
    transition: background-color 0.3s;
    transition-timing-function: ease-in-out;
    cursor: crosshair;
}

.key > p{
    text-align: center;
    font-size: 4vw;
    z-index: 2;
}

.white {
    flex-grow: 1;
    background-color: white;
    border: 1px solid #333;
    color: black;
}

.white.active {
    background-color: #CCC;
}

.black {
    --width: 10%;
    width: var(--width);
    height: 50vh;
    background-color: black;
    margin-left: calc(var(--width) / -2);
    margin-right: calc(var(--width) / -2);
    z-index: 1;
    color: white;
}

.black.active {
    background-color: #333;
}

#togglePianoGuitar {
    scale: 0.8;
    max-height: min-content;
    min-width: max-content;
    margin-left: -1vmax ;
}

.video-container {
    overflow: hidden;
    position: relative;
    background-color: #A491D3;
    color: #FF8C42;
    border: none;
    width: 100%;
    text-align: center;
    font-size: 4vmax;
    margin-bottom: 1vmax;
    cursor: pointer;
    min-height: min-content;
    max-height: max-content;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
}

.result{
    color:#fff;
    padding:20px;
}
.row{
    display:flex;
}

@media screen and (max-width: 520px) {
    .navbar > a {
        font-size: 5vmax;
        height: 8vmax;
    }
    .video-container {
        font-size: 3vmax;
    }
}

@media screen and (min-width: 521px) and (max-width: 900px) {
    .navbar > a {
        font-size: 6vmax;
        height: 8vmax;
    }
    .video-container {
        font-size: 4vmax;
    }
}

@media screen and (min-width: 901px) {
    .navbar > a {
        font-size: 4vmax;
        height: 6vmax;
    }
    .video-container {
        font-size: 5vmax;
    }
}
