Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
115 lines (106 loc) · 3.3 KB
/
Copy pathstyle.css
File metadata and controls
115 lines (106 loc) · 3.3 KB
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
:root {
--c-gold-text: #b45309;
--c-mint-text: #059669;
--c-gold-gfx: #f59e0b;
--c-bg-page: #f8fafc;
--c-bg-surface: #ffffff;
--c-border-strong: #cbd5e1;
}
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
/* Accordion Transitions */
.ac-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.4s ease-out;
opacity: 0;
padding: 0 2rem;
}
.ac-content.open {
max-height: 5000px;
padding: 1.5rem 2rem;
opacity: 1;
}
.ch-icon { transition: transform 0.3s ease; }
.ch-icon.rotate { transform: rotate(180deg); }
/* Flashcards 3D Flip */
.flashcard-container {
perspective: 1000px;
width: 100%;
max-width: 400px;
height: 280px;
margin: 0 auto;
}
.flashcard-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.6s;
transform-style: preserve-3d;
cursor: pointer;
}
.flashcard-inner.flipped { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
border-radius: 1.5rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.flashcard-front { background: white; border: 2px solid #e2e8f0; color: var(--c-gold-text); }
.flashcard-back { background: #1e293b; border: 2px solid var(--c-gold-gfx); color: #ffffff; transform: rotateY(180deg); }
/* Quiz & RAG UI */
.quiz-card { min-height: 480px; display: flex; flex-direction: column; justify-content: center; }
.quiz-opt { transition: all 0.2s ease; border: 1px solid #e2e8f0; text-align: left; }
.quiz-opt:hover:not(:disabled) { border-color: var(--c-gold-gfx); background-color: #fffbeb; }
.quiz-opt.correct { background-color: #d1fae5; border-color: #059669; color: #065f46; font-weight: 600; }
.quiz-opt.incorrect { background-color: #fee2e2; border-color: #dc2626; color: #991b1b; opacity: 0.7; }
.rag-badge {
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 2px 8px;
border-radius: 9999px;
margin-bottom: 8px;
display: inline-block;
}
.badge-amber { background-color: #fef3c7; color: #92400e; }
input[type="range"] {
-webkit-appearance: none;
width: 100%;
height: 10px;
background: #e2e8f0;
border-radius: 99px;
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--c-gold-gfx);
border: 3px solid #ffffff;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
cursor: pointer;
}
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.point-box {
position: absolute;
right: 0;
top: 0;
width: 320px;
background-color: #ffffff;
border: 2px solid #e2e8f0;
border-radius: 1rem;
padding: 1.25rem;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
z-index: 100;
}