/* Practice page: method selection */
.practice_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 3em;
}

.practice_container h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.25em 0;
}

.practice_intro {
    color: #6e6e6e;
    margin-bottom: 1.5em;
}

.practice_methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.practice_method_button {
    min-width: 10em;
    font-size: 1.1rem;
    padding: 1em 1.5em;
}

/* Flashcards page */
.flashcards_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 3em;
}

.flashcards_header {
    position: relative;
    margin-bottom: 1em;
}

.flashcards_progress {
    color: #6e6e6e;
    margin: 0.25em 0 0 0;
}

.flashcards_empty {
    text-align: center;
    margin-top: 3em;
}

.flashcard_wrapper {
    display: flex;
    justify-content: center;
    margin: 2em auto;
    width: 100%;
    perspective: 1500px;
}

.flashcard {
    width: 100%;
    max-width: 500px;
    min-height: 320px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.flashcard_inner {
    position: relative;
    width: 100%;
    min-height: 320px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard_inner {
    transform: rotateY(180deg);
}

.flashcard_face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 320px;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 2em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flashcard_front {
    background-color: #04AA6D;
    color: #f7f7f5;
    justify-content: center;
    align-items: center;
}

.flashcard_word {
    font-size: 2.25rem;
    font-weight: bold;
    word-break: break-word;
    color: #f7f7f5;
    -webkit-text-stroke: 4.5px #000;
    paint-order: stroke fill;
}


.flashcard_hint {
    margin-top: 1em;
    font-size: 0.9rem;
    opacity: 0.85;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.flashcard_back {
    background-color: #ffffff;
    border: 2px solid #04AA6D;
    transform: rotateY(180deg);
    overflow-y: auto;
    text-align: left;
    align-items: flex-start;
}

.flashcard_back h2 {
    margin: 0 0 0.5em 0;
}

.flashcard_controls {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

.mw-smallcaps {
    font-variant: small-caps;
}

@media (max-width: 600px) {
    .practice_container,
    .flashcards_container {
        padding: 2em;
    }
}
