-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe404.css
More file actions
120 lines (108 loc) · 2.09 KB
/
e404.css
File metadata and controls
120 lines (108 loc) · 2.09 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
body {
background-image: linear-gradient(360deg, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 0) 40%), url("../assets/img/404-mirkwood.png");
background-position: top center, center center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
color: #daa520;
display: flex;
flex-direction: column;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
text-align: center;
}
header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: 2rem;
height: 35dvh;
}
h1 {
font-size: 20dvh;
line-height: 20dvh;
}
h3 {
font-size: 2rem;
margin: 0 auto;
padding: 1rem 2rem;
border-radius: 1rem;
background-color: rgba(0, 0, 0, 0.5);
}
main {
height: auto;
flex-grow: 1;
padding-bottom: 4rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
section {
color: #daa520;
width: 70%;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2rem;
}
p {
text-align: center;
font-size: 1.5rem;
line-height: 2.5rem;
}
a:link,
a:visited {
display: block;
width: 7rem;
height: 7rem;
/* border: 1px solid goldenrod; */
background: goldenrod url("../assets/img/hobbit-home-alt.png") center 0.8rem no-repeat;
background-size: 4.8rem;
border-radius: 50%;
text-indent: -9999px;
}
@media (min-width: 768px) {
main {
padding-bottom: 6rem;
}
p {
max-width: 40ch;
text-align: center;
font-size: 2rem;
line-height: 3.5rem;
}
}
@media (min-width: 900px) {
p {
font-size: 2.5rem;
line-height: 4rem;
}
}
@media (hover: hover) {
a {
transition: all 0.5s ease;
}
a:hover {
animation-name: beat;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-fill-mode: both;
}
}
@keyframes beat {
0%,
100% {
transform: scale(1);
}
20%,
60% {
transform: scale(1.1);
}
40%,
80% {
transform: scale(0.9);
}
}