-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
78 lines (68 loc) · 1.31 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
body {
margin: 0;
background-color: rgb(65, 65, 65);
display: flex;
justify-content: center;
font-family: "Courier New", Courier, monospace;
}
canvas {
margin-top: 15px;
z-index: 10;
}
.game-over-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 450px;
height: 600px;
background-color: rgb(56, 56, 56);
margin-top: -2px;
z-index: 11;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: rgb(187, 0, 0);
}
button {
cursor: pointer;
color: rgb(0, 0, 0);
background-color: rgb(195, 195, 195);
border: none;
height: 50px;
width: 200px;
border-radius: 5px;
font-size: 20px;
font-family: "Courier New", Courier, monospace;
}
button:hover {
filter: brightness(80%);
}
button:active {
transform: scale(0.95);
}
button:focus {
outline: none;
}
/* Montior and Larger Screens */
@media screen and (min-width: 1800px) {
canvas {
margin-top: 100px;
}
.game-over-container {
margin-top: -19px;
}
}
/* L Smartphone (Vertical) */
@media screen and (max-width: 500px) {
canvas {
width: 100%;
height: 700px;
margin-top: 50px;
}
.game-over-container {
width: 100%;
height: 700px;
}
}