@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Roboto', sans-serif;
}

html {
    font-size: 16px;
}

body {
    background: #4a00ad;
}

.container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a00ad;
}

.piano{
    display: flex;
}

.key {
    height: calc(var(--width) *4);
    width: var(--width);
    cursor: pointer;
    font-size: 23px;
}

.White {
    --width: 90px;
    height: calc(var(--width) *4);
    border: 1px solid rgba(0,0,0,0.55);
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.Black {
    --width: 60px;
    height: calc(var(--width) *4);
    background-color: #000;
    margin-left: calc(var(--width) / -2);
    margin-right: calc(var(--width) / -2);
    z-index: 1;
    border: 1px solid #333;
    color: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.White.active{
    background-color: #f3f3f3;
}

.Black.active{
    background-color: #222;
}

#fs {
    width: 35px;
    height: 35px;
    position: fixed;
    bottom: 7px;
    right: 7px;
    cursor: pointer;
    background: #f3f3f3;
}

#fs img {
    width: 100%;
    height: 100%;
}

.rotate {
    padding: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 89;
    display: none;
}

.rotate * {
    margin: 8px 0;
}

.rotate img {
    width: calc(100% - 10px);
}

.rotate span {
    font-size: 18px;
    letter-spacing: .6px;
    width: 100%;
}

.rotate button {
    font-size: 25px;
    padding: 3px 10px;
    border: none;
    outline: none;
    background: #d90000;
    color: #fff;
}

@media (max-width: 908px) {
    .White {
        --width: 70px;
    }

    .Black {
        --width: 55px;
    }
}

@media (max-width: 715px) {
    .White {
        --width: 60px;
    }

    .Black {
        --width: 50px;
    }
    .key {
        font-size: 17px;
    }
}


@media (max-width: 615px) {
    .White {
        --width: 50px;
    }

    .Black {
        --width: 40px;
    }
}

@media (max-width: 515px) {
    .White {
        --width: 40px;
    }

    .Black {
        --width: 30px;
    }
}
