@import '../themes.css';

.responsive-btn:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.flashcard-module {
    height: 300px;
    padding: 50px;
}

.pack-title {
    font-size: 0.7rem;
}

.pack-title:before {
    content: '束';
}

.flashcard-display-el {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80%;
}

.add-pack-btn {
    margin-bottom: 25px;
    height: 30px;
}

.pack-list-pack-container {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.flashcard-pack-element {
    height: 200px;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-primary);
    position: relative;
}

.flashcard-pack-element:hover {
    cursor: pointer;
}

.delete-pack-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-small);
    aspect-ratio: 1;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    text-align: center;
}

.btn-input-container {
    height: 40px;
    padding: 5px;
    padding-left: 0;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    width: auto;
}

.pack-name-input {
    background-color: var(--bg-tertiary);
    color: var(--font-primary);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-primary);
}

.pack-list-add-btn {
    height: 30px;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-primary);
    color: var(--font-primary);
    background-color: var(--bg-tertiary);
}

/* card list view */
.card-view-card-container {
    margin-top: 25px;
    overflow-y: scroll;
    scroll: hidden;
    max-height: 500px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 25px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-small);
    scrollbar-width: none;
}

.card-view-card-container::-webkit-scrollbar {
    display: none;
}

.flashcard-card-element {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 310px;
    position: relative;
    padding: 5px;
    gap: 5px;
}

.card-input {
    height: 200px;
    width: 175px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-primary);
    color: var(--font-primary);
    padding: var(--padding-medium);
    font-family: var(--font);
}

.delete-card-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-primary);
}

.card-list-study-btn {
    top: 15px;
    right: 15px;
}

.card-list-back-btn {
    top: 15px;
    left: 15px;
}

.card-view-btn {
    position: absolute;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--font-primary);
    padding: var(--padding-small);
    border-radius: var(--border-radius-small);
    font-family: var(--font);
}

.card-view-add-card-btn {
    position: relative;
    width: 100px;
}

.card-confirm-btn {
    position: relative;
    width: 100px;
    margin-top: 25px;
}

.flashcard-nav-btn {
    height: 100%;
    aspect-ratio: 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.study-view-return-btn {
    width: 100px;
    height: 30px;
    color: var(--font-primary);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    font-family: var(--font);
    border-radius: var(--border-radius-small);
}

.flashcard {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 80%;
    aspect-ratio: 1.5;
    margin-bottom: 25px;
}

.flashcard-btn-holder {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.card-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.card-container.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-back {
    transform: rotateY(180deg);
}

.tab-flashcards {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px;
}
