-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
115 lines (104 loc) · 1.94 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
main {
display: flex;
align-items: center;
flex-direction: column;
overflow: hidden;
min-height: 100vh;
background: linear-gradient(to left, rebeccapurple, teal);
user-select: none;
}
#game {
position: relative;
}
#startScreen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url("/background/nebula1.png");
background-repeat: no-repeat;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
backdrop-filter: blur(4px);
padding-inline: 2rem;
}
#startGameBtn {
width: 100%;
font-size: 1.25rem;
color: white;
background-color: transparent;
border: 1px solid white;
border-radius: 8px;
backdrop-filter: blur(4px);
box-shadow: 0 0 12px 1px #0007;
letter-spacing: 4px;
}
#startGameBtn:hover {
cursor: pointer;
}
#playAgainBtn {
position: absolute;
left: 50%;
top: 60%;
transform: translateX(-50%);
width: 80%;
font-size: 1.25rem;
display: none;
color: white;
background-color: transparent;
backdrop-filter: blur(4px);
border: 1px solid white;
text-transform: capitalize;
border-radius: 8px;
text-transform: uppercase;
letter-spacing: 4px;
}
#playAgainBtn:hover {
cursor: pointer;
}
#canvas {
display: flex;
height: 100%;
max-width: 100%;
box-shadow: 0 2px 2px 1px #0003;
}
#buttons {
display: flex;
column-gap: 1.375rem;
padding-block-start: 1rem;
}
button {
width: 100px;
padding-block: 0.75rem;
border-radius: 4px;
text-transform: uppercase;
font-size: 12px;
font-weight: 900;
letter-spacing: 2px;
background: rebeccapurple;
border: 1px solid #fff3;
color: #fff;
box-shadow: 0 1px 1px 1px #0003;
text-shadow: 0 2px #0007;
}
#laser {
background: seagreen;
}
@media (min-width: 769px) {
#buttons {
display: none;
}
#startscreen {
padding-inline: 4rem;
}
}