/* @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); */

* {
    /* font-family: 'Roboto', sans-serif; */
    /* font-family: "Comic Sans MS", cursive, sans-serif; */
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

html, body {
    margin: 0; /* 移除預設的邊距 */
    padding: 0; /* 移除預設的內距 */
    height: 100%; /* 設定高度為 100% */
    width: 100%;  /* 設定寬度為 100% */
}

body {
    background-image: url(Twilight_Flowers.png);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
#piano, #piano > div > div {
    box-sizing: border-box;
}
#outer {
    /* top: 300px;
    position: relative;
    height: 400px; */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* background-color: red; */
}
#chord {
    /* flex-wrap: wrap;
    justify-content: center;
    align-items: center; */
    margin-top: 10%;  /* 稍微往下一點 */
    background-color: white;
}
#chord br:nth-child(n+2) {
    font-size: 2px;
}
.big {
    font-size: 200px;
}
.small {
    font-size: 50px;
}
:root {
    --widthWhite: 100% / 52;
    --widthBlack: 100% / 80;
    --heightWhite: 100vw / 10;
    --heightBlack: 100vw / 14;
}
.white {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.white > div {
    display: inline-block;
    height: calc(var(--heightWhite));
    width: calc(var(--widthWhite));
    background-color: white;
    border: black 1px solid;
    border-radius: 0px 0px 4px 4px;
}

.black {
    z-index: 11;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.black > div {
    display: inline-block;
    height: calc(var(--heightBlack));
    width: calc(var(--widthBlack));
    background-color: black;
    border: black 1px solid;
    border-radius: 0px 0px 4px 4px;
    margin-left: calc(var(--widthWhite) - var(--widthBlack));
}

.black > div:first-child {
    margin-left: calc(var(--widthWhite) - var(--widthBlack) / 2);
}

.black > div:nth-child(5n + 2), .black > div:nth-child(5n + 4) {
    margin-left: calc(var(--widthWhite) * 2 - var(--widthBlack));
}

div.pedaled {
    background-color: #da81da;
}

div.pressed {
    background-color: #62e9f3;
}