File size: 1,534 Bytes
5547113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* styles.css */

.main .block-container {
    padding: 2rem;
}

.title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.text-area {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.flashcard-container {
    display: flex;
    flex-direction: row; /* Aligns flashcards horizontally */
    overflow-x: auto; /* Allows horizontal scrolling if necessary */
    gap: 20px; /* Adds space between flashcards */
    padding: 1rem;
}

.flashcard {
    width: 250px;
    height: 200px;
    border: 2px solid #4682b4; /* Steel Blue border */
    border-radius: 5px;
    font-size: 16px;
    color: black;
    background-color: #f0f8ff; /* Alice Blue background */
    perspective: 1000px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
}

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

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

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.flashcard-front {
    background-color: #f0f8ff; /* Alice Blue background */
}

.flashcard-back {
    background-color: #ffffff; /* White background for the back */
    transform: rotateY(180deg);
}