header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: left; /* 标题左对齐 */
}

header h1 {
    font-size: 3em; /* 放大标题字体大小 */
    margin-bottom: 10px;
}

main {
    padding: 20px;
    text-align: center;
}
body {
   
    padding: 20px;
    //justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.tab-container {
    //display: flex;
    //flex-direction: column;
    //width: 80%;
    height: 300px;
    align-items: center;
    //max-width: 600px;
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    outline: none;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 2px solid #007BFF;
}

.tab-content {
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    display: none;
}

.tab-content.active {
    display: block;
    height:230px;
}

.chord-select-container {
    //display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.scale-select-container {
    //display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.scale-select-item {
    display: flex;
    flex-direction: column;
}

.parent {
    display: flex;
    flex-direction: column; /* 设置主轴方向为垂直方向，让子元素分行显示 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    //width: 600px;
    height: 200px;
    color:green;
    font-size:36px;
    //background-color: lightgray;
}

.child {
    width: 100px;
    height: 100px;
    
    //background-color: lightblue;
}

canvas {
    justify-content: center; /* 水平居中 */
    display: block; /* 去除底部的额外间距 */
    width: 100%; /* 宽度自适应父元素 */
    height: auto; /* 高度根据宽度按比例自动调整 */
}

