/* float-bar.css */
/* Float bar container */
.float-bar-container {
    position: fixed;
    bottom: var(--float-bar-bottom);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* Make sure at top layer*/
    display: flex;
    gap: 12px;
    flex-direction: row !important;
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Float bar buttons */
.float-bar-container > * {
    font-size: 32px;
    cursor: pointer;
    display: none;
    margin: 0 5px !important; /* 添加水平間距 */
    transition: transform 0.2s, color 0.2s; /* 平滑過渡效果 */
    align-items: center;
    justify-content: center;
}

/* Mouse hover for right bar buttons */
.float-bar-container > *:hover {
    transform: scale(1.05);
    transition: transform 0.1s;
}

.float-bar-container a {
    text-decoration: none;
    color: inherit;
    display: flex;  /* 確保 <a> 標籤不會影響圖標顯示 */
}

.float-bar-container a:hover {
    text-decoration: none;
}

#ic-selector-button {
    color: #691010;
}

#video-button {
    color: #1131d7;
}

#download-button {
    color: #7e0707;
}

#forum-button {
    display: flex;
}

#forum-button img {
    height: 32px;
    padding-right: 5px;
    display: block;
}

#official-webset-button {
    color: #2980B9;
    display: flex;
}

#ai-chat-button {
    display: flex;
}

#ai-chat-button img {
    height: 32px;
    padding-right: 5px;
    display: block; /* 避免圖片產生額外底部空間 */
}

@media (max-width: 768px) {
    .float-bar-container {
        bottom: 10px; /* 在小螢幕上距離底部更近 */
        width: 90%; /* 限制最大寬度 */
        justify-content: center; /* 確保按鈕在容器中居中 */
    }

    .float-bar-container > * {
        font-size: 20px; /* 在小螢幕上進一步縮小圖標 */
    }

    #ai-chat-button img {
        height: 20px;
    }

    #forum-button img {
        height: 20px;
    }
}