/* Index-specific layout for the language dropdown */
.lang-select {
    position: relative;      /* anchors the dropdown-list */
    display: inline-flex;    /* aligns with other controls */
    flex-direction: column;  /* matches reader layout */
    min-width: 0; /* prevents overflow */
}

.dropdown {
    position: relative;      /* required for absolute-positioned list */
    /* min-width: 180px;        stable width for flag + label */
    height:40px !important;
}
.dropdown-header {
    height:40px !important;
}

.level-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blurb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    cursor: pointer;
}
.blurb-button img {
    width: 24px;
    height: 24px;
}

.book-blurb {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-top: 8px;
    text-align: left;
    color: #444;
}

.hidden {
    display: none !important;
}

.book-card.faded {
    opacity: 0.45;
}

@media (max-width: 812px) {
    .dash,
    #language-learning {
        display: none;
    }
}

@media (max-width: 440px) {
    h1 {
        display: none;
    }
}

.book-strip-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.scroll-btn.left {
    left: 4px;
}

.scroll-btn.right {
    right: 4px;
}

.book-strip.no-snap {
    scroll-snap-type: none !important;
}