-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathquote_generator.css
More file actions
141 lines (123 loc) · 2.39 KB
/
quote_generator.css
File metadata and controls
141 lines (123 loc) · 2.39 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
137
138
139
140
141
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #1a1a2e;
color: white;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px 20px;
}
h1 {
margin-bottom: 20px;
font-size: 2.5rem;
text-align: center;
}
.subtitle {
color: #aaa;
margin-bottom: 40px;
text-align: center;
}
.palette-container {
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
max-width: 1200px;
margin-bottom: 40px;
}
.color-box {
width: 200px;
height: 250px;
border-radius: 15px;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 20px;
cursor: pointer;
transition: transform 0.3s;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.color-box:hover {
transform: translateY(-10px);
}
.color-code {
background: rgba(0, 0, 0, 0.5);
padding: 10px;
border-radius: 8px;
text-align: center;
font-weight: 600;
font-size: 1.1rem;
backdrop-filter: blur(10px);
}
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 15px 40px;
font-size: 1.1rem;
border-radius: 50px;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
font-weight: 600;
}
button:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}
button:active {
transform: translateY(-1px);
}
.notification {
position: fixed;
top: 20px;
right: 20px;
background: #28a745;
color: white;
padding: 15px 25px;
border-radius: 10px;
display: none;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Responsive Design */
@media (max-width: 768px) {
.color-box {
width: 150px;
height: 200px;
}
h1 {
font-size: 2rem;
}
button {
padding: 12px 30px;
font-size: 1rem;
}
}
@media (max-width: 480px) {
.color-box {
width: 130px;
height: 180px;
}
h1 {
font-size: 1.8rem;
}
.palette-container {
gap: 15px;
}
}