* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: poppins, sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
}

main {
    width: 100%;
    height: 100vh;
    display: flex;
    background-image: url("bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 100px;
}
h1{
    font-weight: 600;
    font-size: 50px;
    color: white;
}

#piano {
    position: relative;
    width: clamp(600px, 90%, 1100px);
    height: 250px;
    /* border: 2px solid white; */
    color: white;
}

.white-keys-container {
    display: flex;
    position: relative;
    height: 100%;
}

.white-key {
    width: 4.76%;
    background-color: white;
    color: black;
    border: 1px solid #D2D2D2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-bottom: 20px;
    font-size: 18px;
    transform: translateY(0px);
    cursor: pointer;
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0 5px 1px rgba(32, 32, 32, 0.2);
    transition: all ease .2s;
    will-change: transform;
}

.white-key:active {
    box-shadow: 0 0px 0px rgba(32, 32, 32, 0);
    background-color: #D2D2D2;
    transform: translateY(5px);
}

.black-keys-container {
    width: 100%;
    position: absolute;
    height: 50%;
    top: 0;
    left: 0;
    display: flex;
    z-index: 10;
}

.black-key {
    width: 3.5%;
    height: 90%;
    transform: translateY(0px);
    background-color: black;
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0 5px 1px rgba(32, 32, 32, 0.2);
    transition: all ease .2s;
    will-change: transform;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    line-height: 1;
    padding-bottom: 15px;
}

.black-key p{
    pointer-events: none;
}
.black-key:active {
    box-shadow: 0 0px 0px rgba(32, 32, 32, 0);
    transform: translateY(5px);
}

.black-key:nth-child(1) {
    margin-left: 2.9%;
}

.black-key:nth-child(2) {
    margin-left: 1.2%;
}

.black-key:nth-child(3) {
    margin-left: 6%;
}

.black-key:nth-child(4),
.black-key:nth-child(5),
.black-key:nth-child(7),
.black-key:nth-child(9),
.black-key:nth-child(10),
.black-key:nth-child(12),
.black-key:nth-child(13),
.black-key:nth-child(15) {
    margin-left: 1.3%;
}

.black-key:nth-child(6),
.black-key:nth-child(8),
.black-key:nth-child(11),
.black-key:nth-child(14) {
    margin-left: 6%;
}

.active {
    box-shadow: 0 0px 0px rgba(32, 32, 32, 0);
    background-color: #D2D2D2;
    transform: translateY(5px);
}