/* iching.css - Version 7.0 */
.iching-result-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.basic-info p {
    margin: 4px 0;
}

.hexagram-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.hexagram-column {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 20px;
}

.hexagram-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.hexagram-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hexagram-line {
    width: 60px;
    height: 8px;
    margin: 4px 0;
    border-radius: 2px;
}

.hexagram-line.yang {
    background: #000;
}

.hexagram-line.yin {
    background: transparent;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.hexagram-line.moving {
    background: #ff0000; /* Red for moving lines (Yang) */
}

.hexagram-line.moving.yin {
    background: transparent;
    border-top: 4px solid #ff0000; /* Red for moving Yin lines */
    border-bottom: 4px solid #ff0000;
}

.palace-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.palace-name {
    flex: 0 0 auto;
    margin: 0 20px;
    font-size: 1em;
    color: #555;
}

.hexagram-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.hexagram-table th, .hexagram-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
}

.hexagram-table th {
    background: #f4f4f4;
    font-weight: bold;
}

.hexagram-table .hexagram-line {
    width: 40px;
    height: 6px;
    margin: 0 auto;
}

.download-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.download-button:hover {
    background: #1557b0;
}

.error {
    color: red;
    font-weight: bold;
    text-align: center;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}