-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
136 lines (117 loc) · 2.9 KB
/
style.css
File metadata and controls
136 lines (117 loc) · 2.9 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
:root {
--border-color: #ccc;
--header-bg: #e9ecef;
--cell-bg: #fff;
--correct-bg: #d4edda;
--incorrect-bg: #f8d7da;
--drag-over-bg: #cfe2ff;
}
body {
font-family: sans-serif;
background-color: #f8f9fa;
color: #333;
padding: 20px;
}
h1, h2 {
text-align: center;
color: #004085;
}
#game-controls {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 900px;
margin: 0 auto 15px auto;
padding: 0 10px;
}
#game-controls h2 {
margin: 0;
color: #dc3545;
}
#reset-btn {
background-color: #6c757d;
padding: 8px 20px;
font-size: 14px;
}
#app-container {
display: grid;
grid-template-columns: 280px 1fr;
gap: 20px;
max-width: 900px;
margin: 0 auto;
}
#term-bank {
background-color: var(--header-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 10px;
}
#bank-list {
height: 80vh;
overflow-y: auto;
}
.term-item {
background-color: #fff;
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 10px;
margin-bottom: 5px;
cursor: grab;
transition: background-color 0.3s;
font-size: 15px;
}
.term-item.dragging {
opacity: 0.5;
}
#drop-zone-container {
display: flex;
flex-direction: column;
gap: 10px;
}
.drop-zone {
border: 2px dashed var(--border-color);
border-radius: 8px;
padding: 15px;
background-color: #fff;
min-height: 70px;
display: flex;
flex-direction: column;
justify-content: center;
transition: background-color 0.3s;
}
.drop-zone.drag-over {
background-color: var(--drag-over-bg);
}
.drop-zone .definition {
font-size: 1.2em;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.drop-zone .mnemonic {
font-size: 0.9em;
font-style: italic;
color: #6c757d;
}
.term-item.correct {
background-color: var(--correct-bg);
border-color: #c3e6cb;
}
.term-item.incorrect {
background-color: var(--incorrect-bg);
border-color: #f5c6cb;
}
footer {
width: 100%; /* Ensures the footer spans the full width */
text-align: center; /* Centers the text and icons */
margin-top: 40px; /* Adds space above the footer */
padding-top: 20px; /* Adds space below the separator line */
border-top: 1px solid #ccc; /* A subtle line to separate it from the game */
color: #6c757d; /* A muted gray color for the text */
font-size: 0.9em; /* Makes the font slightly smaller */
}
.social-icon {
height: 1.1em; /* Sets the icon height relative to the text size */
width: auto; /* Maintains the icon's aspect ratio */
vertical-align: middle; /* Aligns the icon nicely with the text line */
}