.vocabularyList {
    width: 100%;
    min-width: 500px;
    max-width: 1100px;
    margin: 0 auto;
}

/* menu */
.vocabularyViewMenu {
    display: flex;
    gap: 8px;

    margin-bottom: 20px;
}

.vocabularyViewMenu a {
    padding: 8px 14px;

    border-radius: 6px;

    text-decoration: none;

    color: inherit;

    background: rgba(255,255,255,.08);

    transition:
        background-color .2s ease,
        opacity .2s ease;
}

.vocabularyViewMenu a:hover {
    background: rgba(255,255,255,.15);
}

.vocabularyViewMenu a.vocabularyViewActive {
    background: var(--accent);
    font-weight: 600;
}


/* vocabulary list */
.vocabularyItem {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    align-items: center;
    gap: 20px;

    padding: 14px 18px;
    margin-bottom: 8px;

    background: #b3a899;/*#a89e9e;*/
    border: 1px solid #ddd;
    border-radius: 8px;

    cursor: pointer;
    min-width: 0;
}


.vocabularyItemTranslation {
    color: #666;
}

.vocabularyItemLevel {
    white-space: nowrap;
    color: #555;
    font-size: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vocabularyItemTitle {
    font-weight: 600;
    font-size: 17px;
}

.vocabularyItemDetails {
    display: none;

    grid-column: 1 / -1;

    grid-template-columns: repeat(
        auto-fit,
        minmax(450px, 1fr)
    );
    gap: 14px;

    margin-top: 4px;
    min-width: 0;
}

.vocabularyItem.vocabularyItemExpanded
.vocabularyItemDetails {
    display: grid;
}

.vocabularyDetailBlock {
    padding: 14px;
    border-radius: 8px;
    background: rgba(250, 228, 184, 0.25);/*rgba(255, 255, 255, 0.25);*/
    min-width: 440px;
}

.vocabularyDetailTitle {
    font-weight: 600;
    margin-bottom: 12px;
}

.vocabularyDetailContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vocabularyDictionaryLanguage {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
}

@media (max-width: 700px) {

    .vocabularyItemDetails {
        grid-template-columns: 1fr;
    }

}


/* Mastery: */
.masteryBox {
    text-align: center;
    margin-bottom: 12px;
}

.masteryCircle {
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--accent);
    color: var(--text);

    font-size: 28px;
    font-weight: 700;

    border: 3px solid rgba(255,255,255,.25);

    box-shadow:
        0 2px 4px rgba(0,0,0,.25),
        inset 0 1px 2px rgba(255,255,255,.15);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.masteryBadgeBasic {
    border-color: rgba(255,255,255,.28);
}

.masteryBadgeAdvanced {
    border-width: 4px;

    border-color: #b8bcc4;

    box-shadow:
        0 2px 4px rgba(0,0,0,.3),
        inset 0 1px 2px rgba(255,255,255,.25),
        0 0 6px rgba(192,192,192,.25);
}

.masteryBadgeSpecial {
    border-width: 4px;

    border-color: #d4a84f;

    box-shadow:
        0 2px 4px rgba(0,0,0,.3),
        inset 0 1px 2px rgba(255,255,255,.25),
        0 0 8px rgba(212,168,79,.35);
}

.masteryLevelName {
    margin-top: 2px;

    font-size: 14px;
    font-style: italic;
    opacity: .7;
}

.masteryStats {
    text-align: center;

    font-size: 13px;
    opacity: .75;
    line-height: 1.6;
}

.masteryProgress {
    margin-top: 15px;
    width: 100%;
}

.masteryProgressBar {
    position: relative;

    width: 100%;
    height: 14px;

    background: var(--accent);
    border-radius: 10px;
    overflow: hidden;

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.25);
}

.masteryProgressFill {
    height: 100%;

    background: #3b82f6;
    border-radius: 10px;

    box-shadow:
        inset 0 1px 3px rgba(255,255,255,.3),
        0 0 8px rgba(59,130,246,.45);

    transition:
        width .3s ease;
}

.masteryProgressPercent {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 600;
    line-height: 14px;

    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.65);
}

.masteryPoints {
    font-size: 12px;
    opacity: .7;
    margin-top: 5px;
}

/* Dictionary: */
.vocabularyDictionaryLanguage {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;

    padding: 8px 0;

    border-bottom: 1px solid rgba(255,255,255,.15);
}

.vocabularyDictionaryLanguage:last-child {
    border-bottom: none;
}

.vocabularyDictionaryLanguageCode {
    font-size: 12px;
    font-weight: 700;
    opacity: .55;
}

.vocabularyDictionaryEntries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vocabularyDictionaryEntry {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.vocabularyDictionaryPartOfSpeech {
    font-size: 12px;
    font-style: italic;
    opacity: .55;
}

/* Badges: */
.vocabularyMasteryMain {
    text-align: center;
    margin-bottom: 18px;
}

.vocabularyMasteryBadges {
    display: flex;
    justify-content: center;
    gap: 24px;

    margin: 10px 0 18px;
}

.vocabularyMasteryBadge {
    text-align: center;
}

.masteryCircleSmall {
    width: 46px;
    height: 46px;
    font-size: 19px;
}

.masteryBadgeLabel {
    margin-top: 5px;
    font-size: 12px;
    opacity: .65;
}

.masteryCircleList {
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 17px;
}

.masteryMiniProgress {
    width: 44px;
    height: 5px;
    margin-top: 12px;
    background: var(--accent);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}

.masteryMiniProgressFill {
    height: 100%;
    background: #3b82f6;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(59,130,246,.4);
    transition: width .3s ease;
}

/* Vocabulary Forms */
.vocabularyMasteryForms {
    margin-top: 20px;
    padding-top: 14px;

    border-top: 1px solid rgba(255,255,255,.15);

    display: flex;
    flex-direction: column;
    gap: 9px;
}


.vocabularyMasteryForm,
.vocabularyMasteryFormsColumnHeader {
    position: relative;
    display: grid;
    grid-template-columns: 120px 120px 120px minmax(50px, 1fr) 90px;
    align-items: center;
    gap: 12px;
    padding: 6px 0;

    border-bottom: 1px solid rgba(255,255,255,.10);
}

.vocabularyMasteryFormsColumnHeader {
    padding: 4px 0 6px;
    font-size: 17px;
    opacity: .6;
}

.vocabularyMasteryForm:last-child {
    border-bottom: none;
}

.vocabularyMasteryFormDue::before {
    content: "";

    position: absolute;

    left: 0;
    top: -2px;
    
    width: 35px;
    height: 35px;

    background-image: url("../img/due_icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.vocabularyMasteryFormDue::after {
    content: "Heute fällig";

    position: absolute;
    left: 0;
    top: -36px;

    padding: 5px 8px;

    background: rgba(30, 30, 30, 0.95);
    color: white;

    font-size: 12px;
    white-space: nowrap;

    border-radius: 5px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .15s ease,
        visibility .15s ease;

    pointer-events: none;
    z-index: 10;
}

.vocabularyMasteryFormDue:hover::after {
    opacity: 1;
    visibility: visible;
}

.vocabularyMasteryFormDueDate {
    font-size: 15px;
    opacity: .65;
    white-space: nowrap;
}

.vocabularyMasteryFormValue {
    font-size: 16px;
    opacity: .75;
    text-shadow: 0 1px 2px rgba(0,0,0,.85);
}


.vocabularyMasteryFormName {
    font-size: 16px;
    opacity: .75;
    text-shadow: 0 1px 2px rgba(0,0,0,.65);
}


.vocabularyMasteryFormProgress {
    display: flex;
    justify-content: flex-end;
    grid-template-columns: 1fr 42px;
    /*align-items: center;*/
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}


.vocabularyMasteryFormProgressBar {
    position: relative;

    width: 100%;
    height: 18px;

    background: var(--accent);
    border-radius: 10px;
    overflow: hidden;

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.25);
}

.vocabularyMasteryFormProgressFill {
    height: 100%;
    
    background: #3b82f6;
    border-radius: 10px;

    box-shadow:
        inset 0 1px 3px rgba(255,255,255,.3),
        0 0 8px rgba(59,130,246,.45);

    transition:
        width .3s ease;
}

.vocabularyMasteryFormLevel {
    justify-self: end;
    margin: 0;
}

.vocabularyMasteryFormProgressValue {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 600;
    line-height: 18px;

    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.65);
}

.vocabularyMasteryFormStats {
display: flex;
align-items: center;
gap: 8px;
font-size: 10px;
opacity: .6;
line-height: 12px;
white-space: nowrap;
}

.vocabularyMasteryFormAccuracyBar {
position: relative;
width: 100%;
height: 12px;
margin-top: 4px;
background: var(--accent);
border-radius: 5px;
overflow: hidden;
box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}

.vocabularyMasteryFormAccuracyFill {
height: 100%;
background: #3b82f6;
border-radius: 5px;
transition: width .3s ease;
}

.vocabularyMasteryFormAccuracyValue {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;

display: flex;
align-items: center;
justify-content: center;

font-size: 11px;
font-weight: 600;
line-height: 6px;

pointer-events: none;

text-shadow: 0 1px 2px rgba(0,0,0,.65);
}

.vocabularyMasteryFormAccuracyFill.accuracyHigh {
background: #4caf50;
}

.vocabularyMasteryFormAccuracyFill.accuracyGood {
background: #92c82f;
}

.vocabularyMasteryFormAccuracyFill.accuracyMedium {
background: #e0ce2e;
}

.vocabularyMasteryFormAccuracyFill.accuracyLow {
background: #e08a2e;
}

.vocabularyMasteryFormAccuracyFill.accuracyVeryLow {
background: #d9534f;
}

