﻿h1 {
    max-width: 400px;
    font-size: 66px;
    font-weight: 500;
    line-height: 1em;
}

.alpha {
    border-top: solid 1px var(--black);
    border-bottom: solid 1px var(--black);
    padding:15px 3%;
    color: rgba(0,0,0,0.43);
    font-family:var(--font-h);
    font-size:20px;
    font-weight:400;
}

.alpha .atoz {
    font-weight:700;
    letter-spacing: 0.212em;
}

.alpha-single {
    flex: 0 0 87%;
    width: 87%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alpha-single > div {
    flex-grow: 1; /* Allows items to grow and fill the space */
    flex-basis: 0; /* Ensures equal distribution */
}

.alphabet {
    text-align:center;
}

.atoz {
    flex: 0 0 13%;
    width:13%;
}

.alphabet .alphabet-link.active {
    color: var(--green) !important;
}

.glossary {
    display:flex;
    row-gap:1px;
    flex-wrap:wrap;
    justify-content:start;
    align-items:stretch;
    position: relative;
    transition: height 0.35s ease-in-out;
}

.gloss-box {
    flex: 0 0 31.3%;
    width: 31.3%;
    display: flex;
    border-bottom: solid 1px black;
    padding: 50px 0px 20px;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.gloss-box.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.gloss-alpha {
    font-family: var(--font-h);
    font-size: 28px;
    font-weight: 700;
    height: 100%;
    flex: 1 0 38%;
    width: 38%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gloss-data {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    height: 100%;
    flex: 0 0 62%;
    width: 62%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gloss-data a {
    display:block;
}

.look-box {
    gap: 20px;
    row-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    margin-top:80px;
}

.look-box .lbox {
    padding:15px 20px;
    min-width:200px;
    border:solid 1px black;
    border-radius:50rem;
    text-align:center;
    font-family:var(--font-h);
    font-size:28px;
    font-weight:400;
    line-height:1em;
}

.look-box .lbox:hover {
    background-color:var(--black);
    color:var(--white);
}

.faq-more {
    margin-top:40px;
}

#glossaryModal .modal-content {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}
#glossaryModal .modal-header {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-bottom: 1px solid #444 !important;
}
#glossaryModal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}
#glossaryModal .modal-title {
    color: #ffffff !important;
}
#glossaryModal .modal-body {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}
#glossaryModal .modal-footer {
    background-color: #2d2d2d !important;
    border-top: 1px solid #444 !important;
}
#glossaryModal .modal-footer .btn {
    color: #ffffff !important;
    border-color: #666 !important;
}
#glossaryModal .modal-footer .btn:hover {
    background-color: #444 !important;
}
#glossaryModal .term-description {
                   
    color: #ffffff !important;
                   
}
#glossaryModal .badge-letter {
    background-color: #4a90e2 !important;
}
#glossaryModal .text-muted {
    color: #aaa !important;
}

/* Responsive adjustments for smaller screens */
@media (min-width: 992px) {
    .gloss-box:nth-child(3n + 1) {
        flex: 0 0 34.3%;
        width: 34.3%;
        padding-left: 3%;
    }

    .gloss-box:nth-child(3n) {
        flex: 0 0 34.4%;
        width: 34.4%;
        padding-right: 3%;
    }
}
@media (max-width: 991.98px) {
    .atoz {
        flex: 0 0 20%;
        width: 20%;
    }

    .alpha-single {
        flex: 0 0 80%;
        width: 80%;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .alpha-single > div {
        flex-grow: 0; 
        flex-shrink: 0; 
        padding: 0 15px; 
    }

    .alphano {
        padding-left:0px!important;
    }
    .gloss-box {
        flex: 0 0 50%;
        width: 50%;
    }

    .gloss-box:nth-child(2n + 1) {
        padding-left: 3%;
    }

    .gloss-box:nth-child(2n) {
        padding-right: 3%;
    }

    .look-box .lbox {
        min-width: 140px;
        font-size: 22px;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    h1 {
        font-size:54px;
    }
    
    .atoz {
        flex: 0 0 38%;
        width: 38%;
    }

    .alpha-single {
        flex: 0 0 62%;
        width: 62%;
    }

    .gloss-box {
        flex: 0 0 100%;
        width: 100%;
        padding-left: 3%;
        padding-right: 3%;
    }

    .look-box .lbox {
        min-width: 100px;
        font-size: 18px;
    }
}