﻿
.hexagram-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 10px;
    margin-bottom: 0.5rem;
}

.hexagram-item {
    text-align: center;
    transition: all 0.3s ease;
    padding: 3px 0 0 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 3px solid var(--rich-gold);
    position: relative;
}


.hexagram-link {
    text-decoration: none;
    color: white;
    display: block;
    position: relative;
    z-index: 1;
}

.hexagram-char {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0;
    transition: all 0.3s ease;
}


.hexagram-number {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    /* color: var(--secondary-h); */
    color: white;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-block;
    transition: all 0.3s ease;
    cursor:pointer;
}

.hexagram-item:hover .hexagram-char, .hexagram-item:hover .hexagram-link, .hexagram-item:hover .hexagram-number {
    color: black;
}


.hex-table-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/*styled in footer.css*/
/*styled in footer.css*/
/*
.hexagram-item:hover {
    
        background: var(--accent);
        color: var(--dark);
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}*/
/* Responsive adjustments */
@media (max-width: 1200px) {
}

@media (max-width: 992px) {
    .hexagram-grid {
        gap: 8px;
    }

    .hexagram-char {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .hexagram-grid {
        gap: 3px;
    }

    .hexagram-char {
        font-size: 2.4rem;
    }

    .hexagram-number {
        font-size: 1.1rem;
    }
    /* .hexagram-item {
                padding: 0;
            } */
}
.hex-table-header h1 {
    font-size: 1.4rem;
    color:var(--light-gray);
}
.hex-table-header p {
    color: var(--gray);
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 567px) {
    .hex-table-header h1 {
        font-size: 1.2rem;
    }

    .hex-table-header p {
        font-size: 0.85rem;
    }

    .hexagram-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 3px;
    }

    .hexagram-char {
        font-size: 2.4rem;
    }

    .hexagram-number {
        font-size: 1rem;
    }
    /*
            .hexagram-item {
                padding: 0;
            } */
}

@media (max-width: 414px) {
    .hex-table-header h1 {
        font-size: 1.05rem;
    }
    .hex-table-header p {
        font-size: 0.75rem;
    }

    .hexagram-grid {
        gap: 2px;
    }

    .hexagram-number {
        font-size: 0.9rem;
    }
    /*
            .hexagram-item {
                padding: 0;
                margin: 0;
            } */
}

@media (max-width: 360px) {

    .hexagram-grid {
        gap: 1px;
    }

    .hexagram-number {
        font-size: 0.85rem;
    }
}

.hex-table-header {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 15px;
    /*border-bottom: 1px solid var(--border-light);*/
}

.instructions {
    background: #e8f4fc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border-right: 5px solid var(--secondary);
}

    .instructions h3 {
        color: var(--primary);
        margin-bottom: 15px;
    }

    .instructions p {
        margin-bottom: 10px;
        color: #34495e;
    }
