-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
156 lines (131 loc) · 2.24 KB
/
styles.css
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
:root {
--bg-grad-one: #d7f5ef;
--bg-grad-two: #9480ff;
--primary-color: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-grad-one: #a2d5c8;
--bg-grad-two: #6a5bc9;
--primary-color: #ffffff;
}
}
body {
font-family: system-ui, -apple-system, 'Segoe UI', Ubuntu, Roboto, sans-serif;
background: fixed linear-gradient(0deg, var(--bg-grad-one), var(--bg-grad-two));
color: var(--primary-color);
text-align: center;
box-sizing: border-box;
margin: 0;
padding: 0;
}
header,
header a,
#controls,
input,
select,
section {
margin: 10px;
padding: 10px;
border: 1px solid #000000;
border-radius: 8px;
}
header a {
display: block;
width: 50%;
text-decoration: none;
margin: 10px auto;
text-align: center;
transition: color 0.3s ease-in-out;
}
header a:hover {
color: dodgerblue;
}
header a span {
font-weight: bold;
}
header img {
border-radius: 50%;
height: 200px;
width: auto;
margin-top: 20px;
animation: floatAnimation 3s infinite;
}
@keyframes floatAnimation {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-15px);
}
}
h1 {
background: linear-gradient(to right, #ff5555, #5555ff);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
header p {
font-weight: bold;
}
input {
width: 40vw;
transition: width 0.4s ease-in-out;
box-sizing: border-box;
margin: 10px auto;
}
input:focus {
width: calc(100vw - 40px);
}
select {
cursor: pointer;
}
input:hover,
select:hover,
input:focus,
select:focus,
input:active,
select:active {
border-color: royalblue;
}
main {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
section {
flex: 1;
margin: 10px;
}
ul {
display: flex;
justify-content: space-around;
list-style: none;
border-radius: 8px;
padding: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
ul:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
li {
margin: 10px;
}
li a {
text-decoration: none;
}
li img {
height: 32px;
width: auto;
border-radius: 2px;
transition: transform 0.3s ease-in-out;
}
li img:hover {
transform: scale(1.2);
}
footer {
font-size: small;
}