-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathstyle.css
125 lines (108 loc) · 2.12 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
125
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #2c3e50;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
overflow: hidden;
}
.header {
display: flex;
align-items: center;
justify-content: space-around;
padding: 0.5em;
margin-top: 0.5em;
background-color: #34495e;
border-bottom: 5px solid #ecf0f1;
animation: slide-down 0.5s ease-out;
}
@keyframes slide-down {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0);
}
}
.header img {
width: 60px;
animation: spin 5s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.buttons button {
letter-spacing: 2px;
text-transform: uppercase;
border: none;
color: #ecf0f1;
background-color: #e74c3c;
padding: 10px;
letter-spacing: 1px;
font-size: 1em;
font-weight: bold;
cursor: pointer;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.buttons button:hover {
text-decoration: underline;
font-size: 1.05em;
transform: scale(1.1);
background-color: #c0392b;
}
.buttons button:active {
transform: scale(1.05);
}
.pong-wrapper {
display: flex;
justify-content: center;
align-items: center;
margin-top: 3em;
animation: fade-in 1s ease-in;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#ping-pong {
width: 80%;
max-width: 680px;
border: 12px solid #ecf0f1;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
animation: grow 1s ease-in-out;
}
@keyframes grow {
from {
transform: scale(0.8);
}
to {
transform: scale(1);
}
}
@media screen and (max-width: 480px) {
.header img {
width: 40px;
}
.buttons button {
letter-spacing: 1px;
padding: 5px;
font-size: 0.7em;
}
.buttons button:hover {
font-size: 0.75em;
}
#ping-pong {
width: 90%;
}
}