.result-section {
    display: none;
    width: 100%;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.flashcard-item-template {
    display: none;
}

.flashcard-item {
    perspective: 1000px;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    cursor: pointer;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.flashcard-item-front, .flashcard-item-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 20px;
}

.flashcard-item-front {
    background-color: white;
    border: 2px solid black;
}

.flashcard-item-back {
    background-color: white;
    border: 2px solid black;
    transform: rotateY(180deg);
}

.flashcard-navigation {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.flashcard-navigation button {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    background-color: white;
    border: 1px solid black;
    color: black;
    font-size: 16px;
}

.flashcard-counter {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}