.hexagram{
    display:flex;
    flex-direction:column;
    gap:15px; /* فاصله بین خطوط */
}

.hex-line{
    display:flex;
    justify-content:center;
}

/* ===== YANG ===== */
.yang{
    width:100px;
    height:20px;
    background:#000; /* مشکی */
}

/* ===== YIN ===== */
.yin{
    display:flex;
    gap:20px;
}

.yin::before,
.yin::after{
    content:'';
    width:40px;
    height:20px;
    background:#000; /* مشکی */
}

/* ===== PLACEHOLDER (قبل از پرتاب) ===== */
.placeholder{
    opacity:0.25;
    background:#999 !important;
}

.placeholder::before,
.placeholder::after{
    background:#999 !important;
}

/* ===== CHANGING YANG ===== */
.yang.changing{
    background:red;
    box-shadow:0 0 8px red;
}

/* ===== CHANGING YIN ===== */
.yin.changing::before,
.yin.changing::after{
    background:red;
    box-shadow:0 0 8px red;
}
.hexagrams{
    display:flex;
    justify-content:center;
    gap:80px; /* فاصله بین دو هگزگرام */
}

#hex1,
#hex2{
    display:flex;
    flex-direction:column;
    gap:15px; /* فاصله داخلی هر هگزگرام */
}
.question-box{
    width: 100%;        /* عرض کامل */
    max-width: 800px;   /* حداکثر عرض */
    height: 150px;      /* ارتفاع */
    border-radius: 25px; /* گردی گوشه */
    border: 2px solid #333;
    padding: 20px;
    font-size: 16px;
    background: #f9f9f9;
    resize: none;
    outline: none;
    transition: 0.3s;
}

.question-box:focus{
    border-color: #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.category-select{
    width: 150px;
    padding-right: 40px;
    border-radius: 20px;
    border: 2px solid #333;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: 0.3s;
}

.category-select:focus{
    border-color: #000;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.category-select{
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
#iching-app{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}
.coins{
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:20px;          /* فاصله بین سکه ا */
    margin:20px 0;
    flex-wrap:nowrap;  /* جلوگیری از رفتن زیر هم */
    background-color: white;
    padding: 10px;
     border-radius: 50px;
}

.coin{
    width:80px;
    height:80px;
    margin:0;
    border-radius: 50px;
}
.hexagrams{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:30px; /* فاصله کمتر */
}


/* wrapper هر هگزاگرام + شمارهها */
.hex-wrapper{
    display:flex;
    align-items:flex-start;
    gap:15px;
}

/* ستون شماره */
.line-numbers{
    display:flex;
    flex-direction:column;
    gap:15px; /* ها */
}

/* ها */
.circle{
    width:20px;
    height:20px;
    border-radius:50%;
    background:#ddd;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
}
.secondary .yang,
.secondary .yin::before,
.secondary .yin::after{
    background:#ddd;
    opacity:0.4;
}
category-select {
  font-size: 14px;
  cursor: pointer;
  padding: -1px;
  padding-right: 38px;
    padding-top: 0;
}

#iching-app #coin-btn{
    background: linear-gradient(135deg, #E20059, #e20033) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 25px !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease;
}

#iching-app #coin-btn:hover{
    transform: translateY(-2px);
}

/* ===== تریگرام ===== */

.trigram-section{
    display:flex;
    justify-content:center;
    gap:60px;
    margin-top:40px;
}

.trigram-block{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.trigram{
    display:flex;
    flex-direction:column;
    gap:15px; /* فاصله خطوط */
}

.trigram-label{
    margin-top:10px;
    font-weight:bold;
}

