blob: 2d800513080ef3cbc03d278a43b548b3b4f1b968 (
plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
body {
font-family: "Inter", sans-serif;
}
.perspective {
perspective: 1000px;
}
.transform-style-preserve-3d {
transform-style: preserve-3d;
}
.backface-hidden {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
/* Safari */
}
.rotate-y-180 {
transform: rotateY(180deg);
}
/* Flashcard styles */
.flashcard-container {
perspective: 1000px;
width: 100%;
max-width: 600px;
height: 400px;
cursor: pointer;
margin: 0 auto;
}
.flashcard {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
border-radius: 0.5rem;
}
.flipped .flashcard {
transform: rotateY(180deg);
}
.flashcard-front,
.flashcard-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-radius: 0.5rem;
overflow: hidden;
}
.flashcard-front {
z-index: 2;
}
.flashcard-back {
transform: rotateY(180deg);
}
/* Card hover effect */
.flashcard-container:hover .flashcard {
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* Responsive adjustments */
@media (max-width: 640px) {
.flashcard-container {
height: 350px;
}
}
/* Slide animations */
@keyframes slide-in-right {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.animate-slide-in-right {
animation: slide-in-right 0.5s ease-out forwards;
}
@keyframes slide-in-left {
from {
transform: translateX(-100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.animate-slide-in-left {
animation: slide-in-left 0.5s ease-out forwards;
}
@keyframes slide-out-left {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(-100%);
opacity: 0;
}
}
.animate-slide-out-left {
animation: slide-out-left 0.5s ease-in forwards;
}
@keyframes slide-out-right {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
.animate-slide-out-right {
animation: slide-out-right 0.5s ease-in forwards;
}
|