﻿.main-container {
    /* Define the overall size of the container */
    height:150px;
    /* Optional: Add a border to visualize the main area */
    border: 0px solid #333;
    /* Set display to flex-column to stack the divs vertically */
    display: flex;
    flex-direction: row;
    display: inline-block !important;
}

.bianguadiv {
padding:5px;
}

.changeyao {
    cursor:pointer;

}

.ai-chat-button {
    font-size: large;
    font: bold;
    background-color: blue;
    color: white;
    padding: 10px 50px 10px 50px;
    border-radius: 10px;
}

.ai-button {
    font-size: large;
    font: bold;   
    margin: 50px;
    font-size: large;
    font: bold;
    background-color: blue;
    color: white;
    padding: 10px 30px 10px 30px;
    border-radius: 10px;
    
}

a:hover {
     color: red !important;
}

.guaimage3-container {
    border: 0px solid #333;
    /* Set display to flex-column to stack the divs vertically */
    display: flex;
    flex-direction: row;
    align-items: center;
    vertical-align: middle;
    display: inline-block !important;
}

.div-gua-img {
    width:90px;
    height:20px;
}

.gua-yao-6 {
    margin-top: 30px;
    margin-left: 10px;
    float: left;
}

.gua-img {
    width: 90px;
    height: 13px;
}

.gua-lishu {
    padding-top:0px;
    height:180px;
}

.largeguaimage {
    height: 45px;
    width: 90px;
    margin-right: 0px;
}

.smallguaimage {
    height: 35px;
    width: 70px;
}

/* --- Common Style for Inner Sections --- */
.section {
    /* Each section takes half the height of the main-container */
    /* Flexbox to center the name */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    /* Common Background Image Properties */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Ensures the image covers the entire area */
}

/* --- Specific Styles for Top Section --- */
.fire {
    background-image: url('/img/Gua/fire.jpg');
}

.water {
    background-image: url('/img/Gua/water.jpg');
}

.wind {
    background-image: url('/img/Gua/wind.jpg');
}

.thunder {
    background-image: url('/img/Gua/thunder.jpg');
}

.guaimgchat {
width:70px;
}

.heaven {
    background-image: url('/img/Gua/heaven.jpg');
}
.earth {
    background-image: url('/img/Gua/earth.jpg');
}
.swamp {
    /* Placeholder for the Bottom Image URL */
    background-image: url('/img/Gua/swamp.jpg');
}
.mountain {
    background-image: url('/img/Gua/mountain.jpg');
}

/* --- Name Text Styling --- */
.name-text {
    /* Make the text stand out against the background image */
    color: white;
    font-family: sans-serif;
    text-align: center;
    margin: 0; /* Remove default margin */
}

/* Collapsed label with ellipsis; expands on hover to show full text */
.expand-label {
    display: inline-block;
    vertical-align: middle;
    width: 140px;           /* collapsed width — adjust as needed */
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    transition: max-width 200ms ease, background-color 150ms ease;
}

/* On hover expand enough to show long text; position above neighbors */
.expand-label:hover {
    max-width: 80vw; /* expand up to viewport width; adjust (e.g. 500px) as needed */
    overflow: visible;
    white-space: nowrap; /* keep single line so tooltip-like behavior */
    position: relative;
    z-index: 9999;
    background: rgba(255,255,255,0.98); /* optional: improve readability */
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    padding: 0 4px;
}
