.leftBlock,
.rightBlock {
    overflow: unset;
}

.menu_container {
    display: none;
    flex-direction: column;
    /* overflow: hidden; */
    max-height: 0;
    transition: max-height 0.6s ease-out;
    margin-left: 20px;
}

/* 新增 active 狀態 */
.menu_container.active {
    display: block;
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

/* btn_title 的 active 狀態 */
.btn_title.active,
.menu_button.active {
    border-radius: 0px;
}

.menu_button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    margin-bottom: 1px;
}

.menu_button span.icon {
    width: 60px;
    height: 40px;
    text-align: center;
    background-color: white;
    border: 1px solid rgb(216, 215, 215);
    border-radius: 6px 0px 0px 6px;
}

.menu_button img {
    width: 60px;
    height: 40px;
    margin: 0px;
}

.menu_button span.text {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    vertical-align: middle;
    font-size: 110%;
    /* text-shadow: 1px 1px 2px #000000; */
    border-radius: 0px 6px 6px 0px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: -1rem;
    width: calc(100% - 60px);
    border: 1px solid #ffffff;
    border-radius: 6px;
    /* overflow: hidden; */
    transition: max-height 0.5s ease-in-out;
    z-index: 1000;
    /* 提高按鈕的 z-index，使其在子選單上方 */
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.5) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

.submenu .menu_button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 1px solid #ffffff; */
    margin: 1px 0px;
}

.submenu .menu_button span.text {
    border-radius: 6px;
}

.menu_button:hover .submenu {
    display: block;
    max-height: 500px;
    /* 設定一個合適的高度或 max-height，用於動畫展開效果 */
}