@import url('https://fonts.googleapis.com/css2?family=Alef&family=Frank+Ruhl+Libre&family=Tinos&display=swap');

.font-frank-ruhl-libre {
    font-family: 'Frank Ruhl Libre', serif;
}
.font-alef {
    font-family: 'Alef', sans-serif;
}
.font-tinos {
    font-family: 'Tinos', serif;
}

.show:not(.product-link-dropdown-menu) {
    display: block !important;
}
.show-flex {
    display: flex !important;
}

div.flashcard-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

div.learning-tool {
    min-height: 49rem;
}

.flashcard {
    min-height: 30rem;
    border-radius: 1.25em;
    box-shadow:  -1px -1px 25px 2px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow:  -1px -1px 25px 2px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: var(--secondary-white);
}

div.select-categories {
    position: relative;
    display: flex;
    flex-direction: row;
}
div.select-categories .select-container {
    width: 45%;
    margin: 0.5rem;
}

.dark-mode div.flashcard {
    box-shadow:  -1px -1px 25px 2px rgba(255, 255, 255 0.25);
    -webkit-box-shadow:  -1px -1px 25px 2px rgba(255, 255, 255, 0.25);   
}

i#prev-button, i#next-button {
    color: #001832;
    z-index: 5;
    margin: 0 5rem;
    font-size: 2rem;
    user-select: none;
    touch-action: manipulation;
}

i#prev-button:hover, i#next-button:hover {
    cursor: pointer;
}

.dark-mode div.directions i {
    color: white;
}
.btn-lg {
    padding: var(--button-padding);
}

.flashcard-content {
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 3rem;
}

.flashcard-controls {
    height: 5rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.audio-container {
    position: absolute;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#btn-audio {
    display: inline-block;
    height: 4rem;
    width: 4rem;
    padding: 0 1.5rem;
    margin: 1rem !important;
    line-height: 4rem;
    font-size: 1.5rem;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.7);
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
}
#btn-audio:hover {
    background-color: #f8f9fa;
}
#btn-audio:active {
    background-color: #e9ecef;
}

#position-counter {
    user-select: none;
    position: absolute;
    bottom: -2.125rem;
    margin-bottom: 5px;
    font-size: 1.25em;
}
.alt-position-counter {
    bottom: -2.7rem !important;
}

.flashcard-button {
    position: absolute;
    text-transform: uppercase;
    color: #ffffff;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--primary-blue);
    user-select: none;
    touch-action: manipulation;
}
.flashcard-button:hover {
    background-color: var(--primary-white);
    color: var(--primary-blue);
}
.flashcard-button:active {
    background-color: var(--primary-blue);
    color: var(--primary-white);
}

#flashcard-shuffle, #flashcard-translate, #helps-button {
    bottom: 0;
    margin-bottom: 20px;
}

#flashcard-shuffle {
    right: 0;
    margin-right: 20px;
}

#flashcard-translate, #helps-button {
    left: 0;
    margin-left: 20px;
}

.tool-cards-row {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: row;
}

.learning-tool-flashcard {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15rem !important;
    width: 25rem !important;
    margin: 1rem;
    text-decoration: none;
    color: inherit;
    min-height: auto;
}
.learning-tool-flashcard:hover {
    cursor: pointer;
    background-color: var(--primary-white);
}

.learning-tool-flashcard-title {
    height: 25%;
    font-size: 1.5rem;
    margin: 1rem 1rem 0 1rem;
}
.learning-tool-flashcard-desc {
    height: 75%;
    font-size: 0.8rem;
    margin: 0 1rem 1rem 1rem;
}
.learning-tool-flashcard-desc p {
    margin: 0;
}

#bible-verse-info {
    position: absolute;
    left: 1rem;
    top: 1rem;
}

#male, #female {
    border: 1px solid var(--primary-white);
    padding: 0.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

#male {
    border-radius: 1rem 0rem 0rem 1rem;
}

#female {
    border-radius: 0rem 1rem 1rem 0rem;
}

#user-input-container {
    display: flex;
    justify-content: center;
    margin: 1rem;
}

#user-text-input {
    width: 50%;
}

#translation {
    margin-top: 3rem;
}

#filter-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.verb-parsing-sample-size-select {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    padding-right: 1rem;
}

.radio-group {
    width: 15%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    margin: 0.5rem;
}

.radio-group-title {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.radio-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.radio-group-answer-indicators {
    margin-left: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.radio-answers {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
}

.radio-answer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    user-select: none;
}
.radio-answer input {
    display: none;
}
.radio-answer i {
    margin-right: 0.25rem;
    border: 1px solid black;
    border-radius: 0.25rem;
    padding: 0 0.15rem 0 0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.radio-answer i:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
}
.radio-answer i.selected {
    background-color: var(--primary-white);
    color: var(--primary-blue);
    display: none;
}
.radio-answer input:checked + i {
    display: none;
}
.radio-answer input:checked ~ i.selected {
    display: block !important;
}

#check-answer-div {
    width: 15%;
    margin: 3rem auto 0 auto;
}
#check-answer-button {
    width: 100%;
    padding: 0;
    margin: 1rem 0 0 0;
}
#check-answer-div p {
    margin: 0.25rem 0 0 0;
}

.correct, .incorrect {
    border-radius: 0.5rem;
}

.correct {
    border: 1px solid green;
    background-color: rgba(0, 255, 126, 0.7);
}

.incorrect {
    border: 1px solid red;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
}

.unanswered {
    border: 1px solid rgba(200, 0, 200, 1);
    background-color: rgba(126, 0, 126, 0.7);
}

.answered {
    border: 1px solid rgba(126, 0, 126, 0.7);
    background-color: rgba(200, 0, 200, 1);
}

.verify-answers {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}

.indicator-tag {
    width: 1rem;
    height: 1rem;
    font-size: 0.75rem;
    padding: 0.05rem 0.05rem 0.05rem 0.075rem;
    margin: 0.5rem 0.25rem 0.25rem 0.25rem;
    border-radius: 0.25rem !important;
    color: white !important;
}

#helps-options {
    position: relative;
    margin-top: 11.5rem;
    left: 1.25rem;
    width: 8rem;
    top: 0 !important;
}
#helps-options.show {
    display: flex;
    flex-direction: column;
}
#helps-options p {
    position: relative;
    margin: 0;
}
#helps-options p.disabled {
    color: rgb(126,126,126);
}
#helps-options p.disabled:hover {
    cursor: not-allowed;
}

.helps-active {
    text-decoration: underline;
}

.select-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.select-row i {
    position: relative;
    right: 1rem;
    color: black;
    pointer-events: none;
    width: 0;
}

.filter-options-mobile button {
    margin-right: 0 !important;
}

.filter-options-mobile {
    top: 14.75rem !important;
}

.filter-dropdown-menu:not(#helps-options) {
    top: 15.25rem;
}

.radio-answer-dropdown-button {
    display: none;
}

.radio-group-title div {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.flashcard-content-container {
    display: flex;
    flex-grow: 1;
}

.radio-answer-mobile {
    display: none;
}

#helps-div {
    width: 100%;
}

#get-new-sample-button {
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
}

.condensed-row {
    width: 105%;
}

#top-words-select-label {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tooltip-container {
    display: none;
    position: absolute;
    z-index: 1000;
    height: 3.5rem;
}

svg:hover + .tooltip-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transform: translateX(calc(100% + -4.75rem));
}

.flashcard {
    z-index: 9;
}

.tooltip-toright {
    display: block;
    background-color: var(--primary-white);
    height: 2rem;
    width: 2rem;
    transform: rotate(-45deg);
}

.tooltip-content {
    display: block;
    position: relative;
    left: -1.2rem;
    background-color: var(--primary-white);
    color: var(--primary-black);
    padding: 0.25rem;
    border-radius: 0.9rem 0.25rem 0.25rem 0.9rem;
    width: 16rem;
}

button.disabled {
    cursor: default !important;
    background-color: rgba(128, 128, 128, 0.25) !important;
}

@media (max-width: 460px) {
    svg:hover + .tooltip-container {
        margin-right: 4.65rem !important;
    }
}

@media (max-width: 768px) {
    svg:hover + .tooltip-container {
        transform: translateX(0) translateY(calc(100% + 0.5rem));
    }
    
    .tooltip-content {
        border-radius: 0.25rem;
    }
}

/* ANCHOR: everything below 1000px width */
@media (max-width: 1000px) {
    .condensed-row {
        width: 102%;
        padding: 0 !important;
    }

    .tool-cards-row {
        flex-direction: column;
    }

    .tool-cards-row:first-of-type {
        margin-top: 3rem;
    }

    .verb-parsing-settings {
        width: 90% !important;
    }

    .learning-tool-flashcard {
        width: 22rem !important;
        border-radius: 1rem !important;
    }

    .container {
        margin: 0 !important;
        padding: 0;
        /* overflow: hidden; */
    }

    .tool {
        border: 0 !important;
    }

    .tool-header {
        position: fixed !important;
        display: block;
        top: 4rem;
        left: 0;
        width: 100% !important;
        z-index: 10000;
        border-radius: 0 !important;
        transition: left 1s ease;
        padding-top: 0 !important;
    }

    .tool-content {
        padding: 0 !important;
    }
    
    .select-categories {
        margin: 4rem 0 1rem 0;
    }

    .flashcard:not(.learning-tool-flashcard) {
        width: 100%;
        min-height: 30rem;
        border-radius: 0;
    }
    
    #prev-button, #next-button {
        margin: 0 !important;
        position: absolute;
        top: 30rem;
        z-index: 9998 !important;
    }

    #prev-button {
        left: 1rem;
    }

    #next-button {
        right: 1rem;
    }

    .audio-container {
        width: 1rem;
    }

    .audio-flashcard #flashcard-shuffle, .audio-flashcard #flashcard-translate {
        bottom: 3rem;
    }

    #user-text-input {
        width: 100%;
        margin: 1rem 0;
    }

    #user-input-container {
        flex-direction: column;
    }

    #check-answer-div {
        width: 75%;
    }

    #filter-options-button-mobile {
        margin-top: 1rem !important;
        margin-right: 0.5rem !important;
    }

    .filter-options-mobile {
        top: 10.25rem !important;
        right: 0.5rem !important;
    }

    .radio-answer-dropdown-button {
        display: block;
    }
    
    .radio-group {
        width: 100%;
    }
    .radio-group-title {
        justify-content: space-between;
    }
    .radio-answers {
        /* display: none; */
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
        justify-content: start;
    }
    .radio-answer {
        width: auto;
        min-width: 40%;
        margin: 0 1rem;
    }

    #radio-answers-person, #radio-answers-gender, #radio-answers-number {
        flex-wrap: nowrap;
    }

    #radio-answers-person label, #radio-answers-gender label, #radio-answers-number label {
        width: 1rem;
        min-width: 14%;
    }

    .radio-answer-desktop {
        display: none;
    }
    .radio-answer-mobile {
        display: flex;
    }
}

@media (max-width: 1200px) {
    svg:hover + .tooltip-container {
        /* transform: translateX(calc(100% + 0.25rem)); */
        transform: translateX(3.5rem) translateY(2.5rem);
        flex-direction: column;
        height: 12rem;
        top: -1.75rem !important;
        margin-right: 1.65rem;
    }

    .tooltip-toright {
        height: 4rem;
        width: 4rem;
        transform: rotate(-45deg) skew(25deg, 25deg)
    }

    .tooltip-content {
        left: 0;
        top: -2.17rem;
        width: 9rem;
        border-radius: 0.9rem 0.9rem 0.25rem 0.25rem;
    }
}

@media (max-width: 1540px) {
    .filter-dropdown-menu {
        top: 0 !important;
    }
}

@media (prefers-color-scheme: dark) {
    .flashcard {
        background-color: var(--tertiary-black) !important;
    }

    .learning-tool-flashcard:hover {
        background-color: var(--secondary-black) !important;
    }

    #prev-button, #next-button {
        color: white !important;
    }

    .radio-answer i {
        border: 1px solid white;
    }
}