Spaces:
Sleeping
Sleeping
Update style.css
Browse files- static/css/style.css +111 -91
static/css/style.css
CHANGED
|
@@ -5,60 +5,77 @@
|
|
| 5 |
}
|
| 6 |
|
| 7 |
body {
|
| 8 |
-
background: linear-gradient(135deg, #
|
| 9 |
-
color: #
|
| 10 |
-
font-family: '
|
| 11 |
min-height: 100vh;
|
| 12 |
overflow-x: hidden;
|
| 13 |
position: relative;
|
| 14 |
}
|
| 15 |
|
| 16 |
-
.
|
| 17 |
position: fixed;
|
| 18 |
top: 0;
|
| 19 |
left: 0;
|
| 20 |
-
width:
|
| 21 |
-
height:
|
| 22 |
-
background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
|
| 23 |
-
background-size: cover;
|
| 24 |
-
opacity: 0.15;
|
| 25 |
z-index: -1;
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
.container {
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
background: rgba(30, 42, 30, 0.85);
|
| 33 |
-
backdrop-filter: blur(10px);
|
| 34 |
padding: 40px;
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
h1 {
|
| 40 |
-
color: #
|
| 41 |
-
|
| 42 |
-
font-size:
|
| 43 |
font-weight: 700;
|
|
|
|
| 44 |
margin-bottom: 20px;
|
| 45 |
-
text-shadow: 0
|
| 46 |
}
|
| 47 |
|
| 48 |
.info-box {
|
| 49 |
-
background: rgba(
|
| 50 |
-
color: #
|
| 51 |
-
border
|
|
|
|
| 52 |
padding: 15px;
|
| 53 |
margin-bottom: 30px;
|
| 54 |
text-align: center;
|
| 55 |
font-size: 1.1rem;
|
| 56 |
-
|
|
|
|
|
|
|
| 57 |
}
|
| 58 |
|
| 59 |
.main-fields {
|
| 60 |
display: grid;
|
| 61 |
-
gap:
|
|
|
|
|
|
|
| 62 |
}
|
| 63 |
|
| 64 |
.input-group {
|
|
@@ -67,27 +84,28 @@ h1 {
|
|
| 67 |
}
|
| 68 |
|
| 69 |
label {
|
| 70 |
-
color: #
|
| 71 |
-
font-weight:
|
| 72 |
-
font-size: 1.
|
| 73 |
-
margin-bottom:
|
| 74 |
}
|
| 75 |
|
| 76 |
input[type="text"], input[type="number"], select {
|
| 77 |
width: 100%;
|
| 78 |
-
padding:
|
| 79 |
-
border:
|
| 80 |
-
border-radius:
|
| 81 |
-
background: rgba(
|
| 82 |
-
color: #
|
| 83 |
font-size: 1.1rem;
|
| 84 |
transition: all 0.3s ease;
|
| 85 |
}
|
| 86 |
|
| 87 |
input:focus, select:focus {
|
| 88 |
outline: none;
|
| 89 |
-
|
| 90 |
-
box-shadow: 0 0 10px rgba(
|
|
|
|
| 91 |
}
|
| 92 |
|
| 93 |
.difficulty-group, .question-type-group {
|
|
@@ -98,13 +116,13 @@ input:focus, select:focus {
|
|
| 98 |
}
|
| 99 |
|
| 100 |
.diff-btn, .qt-btn {
|
| 101 |
-
background: rgba(
|
| 102 |
-
color: #
|
| 103 |
-
border: 1px solid
|
| 104 |
-
border-radius:
|
| 105 |
padding: 12px 20px;
|
| 106 |
-
font-size: 1rem;
|
| 107 |
-
font-weight:
|
| 108 |
cursor: pointer;
|
| 109 |
transition: all 0.3s ease;
|
| 110 |
display: flex;
|
|
@@ -113,13 +131,14 @@ input:focus, select:focus {
|
|
| 113 |
}
|
| 114 |
|
| 115 |
.diff-btn.selected, .qt-btn.selected {
|
| 116 |
-
background:
|
| 117 |
-
color: #
|
| 118 |
-
|
|
|
|
| 119 |
}
|
| 120 |
|
| 121 |
.diff-btn:hover, .qt-btn:hover {
|
| 122 |
-
background: rgba(
|
| 123 |
transform: translateY(-2px);
|
| 124 |
}
|
| 125 |
|
|
@@ -129,16 +148,19 @@ input:focus, select:focus {
|
|
| 129 |
|
| 130 |
.advanced-options {
|
| 131 |
margin-top: 30px;
|
| 132 |
-
background: rgba(
|
| 133 |
-
border
|
|
|
|
| 134 |
padding: 20px;
|
| 135 |
-
|
|
|
|
|
|
|
| 136 |
}
|
| 137 |
|
| 138 |
.advanced-options summary {
|
| 139 |
-
color: #
|
| 140 |
-
font-weight:
|
| 141 |
-
font-size: 1.
|
| 142 |
cursor: pointer;
|
| 143 |
padding-bottom: 10px;
|
| 144 |
}
|
|
@@ -150,40 +172,46 @@ input:focus, select:focus {
|
|
| 150 |
|
| 151 |
.main-btn {
|
| 152 |
width: 100%;
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
|
|
|
|
|
|
| 156 |
border: none;
|
| 157 |
-
border-radius:
|
| 158 |
-
padding:
|
| 159 |
-
margin-top:
|
| 160 |
-
font-size: 1.
|
| 161 |
cursor: pointer;
|
| 162 |
transition: all 0.3s ease;
|
| 163 |
-
box-shadow: 0
|
| 164 |
}
|
| 165 |
|
| 166 |
.main-btn:hover {
|
| 167 |
-
background: linear-gradient(90deg, #68a063 0%, #98c379 100%);
|
| 168 |
transform: scale(1.05);
|
| 169 |
-
box-shadow: 0
|
|
|
|
| 170 |
}
|
| 171 |
|
| 172 |
#quiz-output {
|
| 173 |
-
margin-top:
|
|
|
|
|
|
|
| 174 |
}
|
| 175 |
|
| 176 |
.question-card {
|
| 177 |
-
background: rgba(
|
| 178 |
-
border
|
| 179 |
-
|
|
|
|
| 180 |
margin-bottom: 20px;
|
| 181 |
-
box-shadow: 0
|
| 182 |
transition: transform 0.3s ease;
|
| 183 |
}
|
| 184 |
|
| 185 |
.question-card:hover {
|
| 186 |
transform: translateY(-5px);
|
|
|
|
| 187 |
}
|
| 188 |
|
| 189 |
.question-card ul {
|
|
@@ -192,13 +220,13 @@ input:focus, select:focus {
|
|
| 192 |
}
|
| 193 |
|
| 194 |
.answer {
|
| 195 |
-
color: #
|
| 196 |
margin-top: 10px;
|
| 197 |
-
font-weight:
|
| 198 |
}
|
| 199 |
|
| 200 |
.explanation {
|
| 201 |
-
color: #
|
| 202 |
margin-top: 5px;
|
| 203 |
font-size: 0.95em;
|
| 204 |
font-style: italic;
|
|
@@ -206,55 +234,47 @@ input:focus, select:focus {
|
|
| 206 |
|
| 207 |
.loading {
|
| 208 |
text-align: center;
|
| 209 |
-
color: #
|
| 210 |
-
font-size: 1.
|
| 211 |
margin-top: 20px;
|
| 212 |
animation: pulse 1.5s infinite;
|
| 213 |
}
|
| 214 |
|
| 215 |
.error {
|
| 216 |
-
color: #
|
| 217 |
-
font-weight:
|
| 218 |
text-align: center;
|
| 219 |
margin-top: 20px;
|
| 220 |
}
|
| 221 |
|
| 222 |
footer {
|
| 223 |
text-align: center;
|
| 224 |
-
color: #
|
| 225 |
-
margin:
|
| 226 |
font-size: 1rem;
|
| 227 |
}
|
| 228 |
|
| 229 |
.about-box {
|
| 230 |
-
background: rgba(
|
| 231 |
-
border
|
|
|
|
| 232 |
padding: 20px;
|
| 233 |
margin-bottom: 20px;
|
| 234 |
-
box-shadow: 0
|
| 235 |
}
|
| 236 |
|
| 237 |
@keyframes pulse {
|
| 238 |
-
0% { opacity: 0.
|
| 239 |
50% { opacity: 1; }
|
| 240 |
-
100% { opacity: 0.
|
| 241 |
-
}
|
| 242 |
-
|
| 243 |
-
#particle-canvas {
|
| 244 |
-
position: fixed;
|
| 245 |
-
top: 0;
|
| 246 |
-
left: 0;
|
| 247 |
-
z-index: -2;
|
| 248 |
-
pointer-events: none;
|
| 249 |
}
|
| 250 |
|
| 251 |
@media (max-width: 768px) {
|
| 252 |
.container {
|
| 253 |
-
margin: 20px;
|
| 254 |
padding: 20px;
|
| 255 |
}
|
| 256 |
h1 {
|
| 257 |
-
font-size:
|
| 258 |
}
|
| 259 |
.main-fields {
|
| 260 |
gap: 15px;
|
|
|
|
| 5 |
}
|
| 6 |
|
| 7 |
body {
|
| 8 |
+
background: linear-gradient(135deg, #0d0d2b 0%, #1a1a3d 100%);
|
| 9 |
+
color: #e0e0ff;
|
| 10 |
+
font-family: 'Roboto Mono', monospace;
|
| 11 |
min-height: 100vh;
|
| 12 |
overflow-x: hidden;
|
| 13 |
position: relative;
|
| 14 |
}
|
| 15 |
|
| 16 |
+
.starfield {
|
| 17 |
position: fixed;
|
| 18 |
top: 0;
|
| 19 |
left: 0;
|
| 20 |
+
width: 100vw;
|
| 21 |
+
height: 100vh;
|
|
|
|
|
|
|
|
|
|
| 22 |
z-index: -1;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.star {
|
| 26 |
+
position: absolute;
|
| 27 |
+
width: 2px;
|
| 28 |
+
height: 2px;
|
| 29 |
+
background: #ffffff;
|
| 30 |
+
opacity: 0.7;
|
| 31 |
+
border-radius: 50%;
|
| 32 |
+
animation: twinkle infinite alternate;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
@keyframes twinkle {
|
| 36 |
+
0% { opacity: 0.3; }
|
| 37 |
+
100% { opacity: 0.8; }
|
| 38 |
}
|
| 39 |
|
| 40 |
.container {
|
| 41 |
+
width: 100vw;
|
| 42 |
+
min-height: 100vh;
|
|
|
|
|
|
|
| 43 |
padding: 40px;
|
| 44 |
+
display: flex;
|
| 45 |
+
flex-direction: column;
|
| 46 |
+
align-items: center;
|
| 47 |
+
justify-content: flex-start;
|
| 48 |
}
|
| 49 |
|
| 50 |
h1 {
|
| 51 |
+
color: #00ffea;
|
| 52 |
+
font-family: 'Orbitron', sans-serif;
|
| 53 |
+
font-size: 3.5rem;
|
| 54 |
font-weight: 700;
|
| 55 |
+
text-align: center;
|
| 56 |
margin-bottom: 20px;
|
| 57 |
+
text-shadow: 0 0 20px rgba(0, 255, 234, 0.5);
|
| 58 |
}
|
| 59 |
|
| 60 |
.info-box {
|
| 61 |
+
background: rgba(0, 255, 234, 0.1);
|
| 62 |
+
color: #00ffea;
|
| 63 |
+
border: 1px solid rgba(0, 255, 234, 0.3);
|
| 64 |
+
border-radius: 10px;
|
| 65 |
padding: 15px;
|
| 66 |
margin-bottom: 30px;
|
| 67 |
text-align: center;
|
| 68 |
font-size: 1.1rem;
|
| 69 |
+
max-width: 600px;
|
| 70 |
+
width: 100%;
|
| 71 |
+
box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
|
| 72 |
}
|
| 73 |
|
| 74 |
.main-fields {
|
| 75 |
display: grid;
|
| 76 |
+
gap: 25px;
|
| 77 |
+
max-width: 800px;
|
| 78 |
+
width: 100%;
|
| 79 |
}
|
| 80 |
|
| 81 |
.input-group {
|
|
|
|
| 84 |
}
|
| 85 |
|
| 86 |
label {
|
| 87 |
+
color: #00ffea;
|
| 88 |
+
font-weight: 500;
|
| 89 |
+
font-size: 1.3rem;
|
| 90 |
+
margin-bottom: 10px;
|
| 91 |
}
|
| 92 |
|
| 93 |
input[type="text"], input[type="number"], select {
|
| 94 |
width: 100%;
|
| 95 |
+
padding: 15px;
|
| 96 |
+
border: 1px solid rgba(0, 255, 234, 0.3);
|
| 97 |
+
border-radius: 8px;
|
| 98 |
+
background: rgba(255, 255, 255, 0.05);
|
| 99 |
+
color: #e0e0ff;
|
| 100 |
font-size: 1.1rem;
|
| 101 |
transition: all 0.3s ease;
|
| 102 |
}
|
| 103 |
|
| 104 |
input:focus, select:focus {
|
| 105 |
outline: none;
|
| 106 |
+
border-color: #00ffea;
|
| 107 |
+
box-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
|
| 108 |
+
background: rgba(255, 255, 255, 0.1);
|
| 109 |
}
|
| 110 |
|
| 111 |
.difficulty-group, .question-type-group {
|
|
|
|
| 116 |
}
|
| 117 |
|
| 118 |
.diff-btn, .qt-btn {
|
| 119 |
+
background: rgba(0, 255, 234, 0.1);
|
| 120 |
+
color: #e0e0ff;
|
| 121 |
+
border: 1px solid rgba(0, 255, 234, 0.3);
|
| 122 |
+
border-radius: 8px;
|
| 123 |
padding: 12px 20px;
|
| 124 |
+
font-size: 1.1rem;
|
| 125 |
+
font-weight: 500;
|
| 126 |
cursor: pointer;
|
| 127 |
transition: all 0.3s ease;
|
| 128 |
display: flex;
|
|
|
|
| 131 |
}
|
| 132 |
|
| 133 |
.diff-btn.selected, .qt-btn.selected {
|
| 134 |
+
background: rgba(0, 255, 234, 0.3);
|
| 135 |
+
color: #0d0d2b;
|
| 136 |
+
border-color: #00ffea;
|
| 137 |
+
box-shadow: 0 0 15px rgba(0, 255, 234, 0.5);
|
| 138 |
}
|
| 139 |
|
| 140 |
.diff-btn:hover, .qt-btn:hover {
|
| 141 |
+
background: rgba(0, 255, 234, 0.2);
|
| 142 |
transform: translateY(-2px);
|
| 143 |
}
|
| 144 |
|
|
|
|
| 148 |
|
| 149 |
.advanced-options {
|
| 150 |
margin-top: 30px;
|
| 151 |
+
background: rgba(255, 255, 255, 0.05);
|
| 152 |
+
border: 1px solid rgba(0, 255, 234, 0.2);
|
| 153 |
+
border-radius: 10px;
|
| 154 |
padding: 20px;
|
| 155 |
+
max-width: 800px;
|
| 156 |
+
width: 100%;
|
| 157 |
+
box-shadow: 0 0 15px rgba(0, 255, 234, 0.1);
|
| 158 |
}
|
| 159 |
|
| 160 |
.advanced-options summary {
|
| 161 |
+
color: #00ffea;
|
| 162 |
+
font-weight: 600;
|
| 163 |
+
font-size: 1.4rem;
|
| 164 |
cursor: pointer;
|
| 165 |
padding-bottom: 10px;
|
| 166 |
}
|
|
|
|
| 172 |
|
| 173 |
.main-btn {
|
| 174 |
width: 100%;
|
| 175 |
+
max-width: 400px;
|
| 176 |
+
background: linear-gradient(90deg, #00ffea 0%, #ff00ff 100%);
|
| 177 |
+
color: #0d0d2b;
|
| 178 |
+
font-family: 'Orbitron', sans-serif;
|
| 179 |
+
font-weight: 600;
|
| 180 |
border: none;
|
| 181 |
+
border-radius: 10px;
|
| 182 |
+
padding: 20px;
|
| 183 |
+
margin-top: 40px;
|
| 184 |
+
font-size: 1.3rem;
|
| 185 |
cursor: pointer;
|
| 186 |
transition: all 0.3s ease;
|
| 187 |
+
box-shadow: 0 0 20px rgba(0, 255, 234, 0.5);
|
| 188 |
}
|
| 189 |
|
| 190 |
.main-btn:hover {
|
|
|
|
| 191 |
transform: scale(1.05);
|
| 192 |
+
box-shadow: 0 0 30px rgba(0, 255, 234, 0.7);
|
| 193 |
+
background: linear-gradient(90deg, #ff00ff 0%, #00ffea 100%);
|
| 194 |
}
|
| 195 |
|
| 196 |
#quiz-output {
|
| 197 |
+
margin-top: 50px;
|
| 198 |
+
max-width: 1000px;
|
| 199 |
+
width: 100%;
|
| 200 |
}
|
| 201 |
|
| 202 |
.question-card {
|
| 203 |
+
background: rgba(255, 255, 255, 0.05);
|
| 204 |
+
border: 1px solid rgba(0, 255, 234, 0.2);
|
| 205 |
+
border-radius: 10px;
|
| 206 |
+
padding: 25px;
|
| 207 |
margin-bottom: 20px;
|
| 208 |
+
box-shadow: 0 0 15px rgba(0, 255, 234, 0.1);
|
| 209 |
transition: transform 0.3s ease;
|
| 210 |
}
|
| 211 |
|
| 212 |
.question-card:hover {
|
| 213 |
transform: translateY(-5px);
|
| 214 |
+
box-shadow: 0 0 20px rgba(0, 255, 234, 0.3);
|
| 215 |
}
|
| 216 |
|
| 217 |
.question-card ul {
|
|
|
|
| 220 |
}
|
| 221 |
|
| 222 |
.answer {
|
| 223 |
+
color: #00ffea;
|
| 224 |
margin-top: 10px;
|
| 225 |
+
font-weight: 500;
|
| 226 |
}
|
| 227 |
|
| 228 |
.explanation {
|
| 229 |
+
color: #e0e0ff;
|
| 230 |
margin-top: 5px;
|
| 231 |
font-size: 0.95em;
|
| 232 |
font-style: italic;
|
|
|
|
| 234 |
|
| 235 |
.loading {
|
| 236 |
text-align: center;
|
| 237 |
+
color: #00ffea;
|
| 238 |
+
font-size: 1.4rem;
|
| 239 |
margin-top: 20px;
|
| 240 |
animation: pulse 1.5s infinite;
|
| 241 |
}
|
| 242 |
|
| 243 |
.error {
|
| 244 |
+
color: #ff00ff;
|
| 245 |
+
font-weight: 500;
|
| 246 |
text-align: center;
|
| 247 |
margin-top: 20px;
|
| 248 |
}
|
| 249 |
|
| 250 |
footer {
|
| 251 |
text-align: center;
|
| 252 |
+
color: #e0e0ff;
|
| 253 |
+
margin: 50px 0 20px;
|
| 254 |
font-size: 1rem;
|
| 255 |
}
|
| 256 |
|
| 257 |
.about-box {
|
| 258 |
+
background: rgba(255, 255, 255, 0.05);
|
| 259 |
+
border: 1px solid rgba(0, 255, 234, 0.2);
|
| 260 |
+
border-radius: 10px;
|
| 261 |
padding: 20px;
|
| 262 |
margin-bottom: 20px;
|
| 263 |
+
box-shadow: 0 0 15px rgba(0, 255, 234, 0.1);
|
| 264 |
}
|
| 265 |
|
| 266 |
@keyframes pulse {
|
| 267 |
+
0% { opacity: 0.5; }
|
| 268 |
50% { opacity: 1; }
|
| 269 |
+
100% { opacity: 0.5; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
}
|
| 271 |
|
| 272 |
@media (max-width: 768px) {
|
| 273 |
.container {
|
|
|
|
| 274 |
padding: 20px;
|
| 275 |
}
|
| 276 |
h1 {
|
| 277 |
+
font-size: 2.5rem;
|
| 278 |
}
|
| 279 |
.main-fields {
|
| 280 |
gap: 15px;
|