body {
    background-color: #f4ebda;
}

.logo {
    display: block;
    width: 36px;
    height: 36px;
    background-image: url('../logo192.png');
    background-size: cover;
    background-position: center;
}

a[href="#"] {
    text-decoration: none;
    color: black;
    font-weight: 400;
}

.nav-bar {
    display: flex;
    width: 100%;
    height: 36px;
}

#flashcard-container {
    /* width: 100v; */
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
}

.flashcard {
    width: 25vw;
    max-width: 400px;
    min-width: 300px;

    height: 40vh;
    max-height: 400px;
    min-height: 300px;

    /* width: 200px; */
    /* height: 200px; */
    perspective: 1000px;
    margin: 20px;
}

.control,
.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-family: 'Scheherazade', serif;
}

.front {
    background-color: #fff;
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
    background-color: #fff;
}

.flashcard.flipped:hover .front {
    transform: rotateY(-180deg);
}

.flashcard.flipped:hover .back {
    transform: rotateY(0deg);
}

.word {
    text-align: center;
    margin: 10px;
    font-size: 2.5rem;
}

.complete {
    position: absolute;
    text-align: right;
    top: 10px;
    right: 10px;
    z-index: 1020;
}

.meaning {
    text-align: center;
    margin: 10px;
    font-size: 2rem;
}

.navigation {
    margin-top: 20px;
    /* width: 100vw; */
    display: flex;
    justify-content: center;
}

.navigation>button {
    margin-left: 5px;
    margin-right: 5px;
}

button {
    border: none;
    background-color: transparent;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 20px;
}

button i {
    transform: translateY(-3px);
}

button:hover i {
    transform: translateY(-5px);
}

.ayah-container {
    width: 100%;
    /* display: flex; */
    /* justify-content: center; */
}

.ayah-container>.arabic,
.ayah-container>.translation {
    width: 100%;
    display: block;
    text-align: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.span-arabic,
.span-eng {
    padding: 3px 6px;
    font-size: 2rem;
}

.span-arabic.active,
.span-eng.active {
    color: green;
}

select#inp-select-surah {
    padding: 10px 15px;
}

select#inp-select-surah>option {
    padding: 15px 10px;
    /* line-height: calc(normal + 10%); */
    appearance: none;
}

.label-surah-select {
    padding: 10px;
    font: 600;
}

@media screen and (min-width: 480px) {
    .small-screen-only {
        display: none;
    }

    .large-screen-only {
        display: unset;
    }
}

@media screen and (max-width: 479px) {
    .small-screen-only {
        display: unset;
    }

    .large-screen-only {
        display: none;
    }
}

.spinner-show {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.spinner-show>#spinner {
    display: flex;
}

#spinner {
    display: none;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    font-size: 30px;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}
