-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
93 lines (81 loc) · 1.61 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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #333, #888888);
font-family: 'Montserrat', sans-serif;
color: #f2f2f2;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
canvas {
border: 1px solid #f2f2f2;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}
header {
text-align: center;
transition: color 0.2s ease-in-out;
}
header:hover {
color: #ccc;
}
.game-selection {
margin: 50px auto;
text-align: center;
}
button {
background-color: #f2f2f2;
color: #333;
border: none;
border-radius: 50px;
font-size: 20px;
font-weight: bold;
padding: 10px 20px;
box-shadow: 0px 3px 10px rgba(255, 255, 255, 0.2);
transition: all 0.2s ease-in-out;
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
cursor: pointer;
outline: none;
animation: pulsate 1.5s infinite;
}
@keyframes pulsate {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
button:first-child {
margin-left: 0;
}
button:active {
transform: scale(0.95);
box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.1);
}
button:hover {
transform: scale(1.1);
box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.3);
}
@media only screen and (max-width: 800px) {
canvas {
max-width: 90%;
height: auto;
}
}
@media only screen and (max-width: 600px) {
button {
padding: 10px;
margin: 5px;
font-size: 1em;
}
}