-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
57 lines (51 loc) · 1.02 KB
/
styles.css
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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f4;
}
.flashcard-container {
width: 400px; /* Adjust the width as desired */
height: 250px; /* Adjust the height as desired */
position: relative;
perspective: 800px;
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
}
.flashcard {
width: 100%;
height: 100%;
position: absolute;
transform-style: preserve-3d;
transition: transform 0.5s;
cursor: pointer;
}
.flashcard.flipped {
transform: rotateY(180deg);
}
#flashcard-front,
#flashcard-back {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
border-radius: 5px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
background-color: #ffffff;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
font-family: Arial, sans-serif;
font-size: 32px;
color: #333333;
}
#flashcard-back {
transform: rotateY(180deg);
}
#flashcard-front{
font-size: 64px;
}