-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (107 loc) · 1.79 KB
/
style.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
* {
box-sizing: border-box;
}
:root {
--steps-number: 22;
}
body {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url("images/pokemonbackground.webp");
background-repeat: no-repeat;
background-size: cover;
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2vmin;
background: rgba(255, 255, 255, 0.3);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(7px);
-webkit-backdrop-filter: blur(7px);
}
img {
width: 20vmin;
margin: 0 auto;
}
h1,
h2,
h3,
button {
font-family: "VT323", monospace;
}
button,
input {
display: block;
font-size: 1rem;
width: 30vmin;
padding: 0.5vmin 1vmin;
}
main div {
display: flex;
}
button {
width: 15vmin;
}
button:hover {
background: white;
cursor: pointer;
}
#go:hover {
background: greenyellow;
}
#reset:hover {
color: white;
background: red;
}
#mainContainer {
display: flex;
flex-direction: column;
flex-wrap: wrap;
min-width: 60vmin;
min-height: 25vmin;
max-height: fit-content;
border-bottom-width: 5px;
border-top-width: 5px;
border-style: double;
border-radius: 5px;
font-family: "VT323", monospace;
align-items: center;
padding: 2vmin;
background: white;
}
h3 {
text-align: center;
margin: 3vmin;
}
span {
display: block;
font-size: 1.2rem;
}
.textAnimation {
display: flex;
flex-wrap: wrap;
width: 100%;
animation: typing 5s steps(var(--steps-number)),
blink 0.5s step-end infinite alternate;
white-space: nowrap;
height: fit-content;
overflow: hidden;
border-right: 3px solid;
}
@keyframes typing {
from {
width: 0;
}
}
@keyframes blink {
50% {
border-color: transparent;
}
}