Spaces:
Sleeping
Sleeping
Create style.css
Browse files
style.css
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* styles.css */
|
2 |
+
|
3 |
+
.main .block-container {
|
4 |
+
padding: 2rem;
|
5 |
+
}
|
6 |
+
|
7 |
+
.title {
|
8 |
+
text-align: center;
|
9 |
+
margin-bottom: 1rem;
|
10 |
+
}
|
11 |
+
|
12 |
+
.section-title {
|
13 |
+
margin-top: 2rem;
|
14 |
+
font-size: 1.5rem;
|
15 |
+
}
|
16 |
+
|
17 |
+
.text-area {
|
18 |
+
margin-top: 1rem;
|
19 |
+
margin-bottom: 1rem;
|
20 |
+
}
|
21 |
+
|
22 |
+
.flashcard-container {
|
23 |
+
display: flex;
|
24 |
+
flex-direction: row; /* Aligns flashcards horizontally */
|
25 |
+
overflow-x: auto; /* Allows horizontal scrolling if necessary */
|
26 |
+
gap: 20px; /* Adds space between flashcards */
|
27 |
+
padding: 1rem;
|
28 |
+
}
|
29 |
+
|
30 |
+
.flashcard {
|
31 |
+
width: 250px;
|
32 |
+
height: 200px;
|
33 |
+
border: 2px solid #4682b4; /* Steel Blue border */
|
34 |
+
border-radius: 5px;
|
35 |
+
font-size: 16px;
|
36 |
+
color: black;
|
37 |
+
background-color: #f0f8ff; /* Alice Blue background */
|
38 |
+
perspective: 1000px;
|
39 |
+
cursor: pointer;
|
40 |
+
display: flex;
|
41 |
+
align-items: center;
|
42 |
+
justify-content: center;
|
43 |
+
flex-shrink: 0; /* Prevent shrinking */
|
44 |
+
}
|
45 |
+
|
46 |
+
.flashcard-inner {
|
47 |
+
position: relative;
|
48 |
+
width: 100%;
|
49 |
+
height: 100%;
|
50 |
+
transition: transform 0.6s;
|
51 |
+
transform-style: preserve-3d;
|
52 |
+
}
|
53 |
+
|
54 |
+
.flashcard:hover .flashcard-inner {
|
55 |
+
transform: rotateY(180deg);
|
56 |
+
}
|
57 |
+
|
58 |
+
.flashcard-front, .flashcard-back {
|
59 |
+
position: absolute;
|
60 |
+
width: 100%;
|
61 |
+
height: 100%;
|
62 |
+
backface-visibility: hidden;
|
63 |
+
display: flex;
|
64 |
+
align-items: center;
|
65 |
+
justify-content: center;
|
66 |
+
padding: 1rem;
|
67 |
+
}
|
68 |
+
|
69 |
+
.flashcard-front {
|
70 |
+
background-color: #f0f8ff; /* Alice Blue background */
|
71 |
+
}
|
72 |
+
|
73 |
+
.flashcard-back {
|
74 |
+
background-color: #ffffff; /* White background for the back */
|
75 |
+
transform: rotateY(180deg);
|
76 |
+
}
|