-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
142 lines (133 loc) · 2.65 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
@import url('https://fonts.googleapis.com/css?family=Coda+Caption:800');
* {
padding: 0px;
margin: 0px;
font-family: 'Coda Caption', sans-serif;
}
*, *:before, *:after {
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
text-align: center;
}
.main {
display: flex;
justify-content: center;
width: 100%;
height: 100%;
position: absolute;
}
#gameForm {
display: flex;
justify-content: center;
}
.highscoreLabel {
position: absolute;
top: 8%;
transform: perspective(300px) scaleY(2) rotateX(-30deg);
color: #9d76ce;
width: max-content;
/* text-align: center; */
font-size: 3.2vw;
font-weight: 900;
text-transform: uppercase;
letter-spacing: -0.07vw;
text-shadow: 1px 1px 1px #440f70,
1px 2px 1px #440f70,
1px 3px 1px #440f70,
1px 4px 1px #440f70,
1px 5px 1px #440f70,
1px 6px 1px #440f70,
1px 7px 1px #440f70,
1px 8px 1px #440f70,
1px 9px 1px #440f70,
1px 10px 1px #440f70,
1px 18px 6px rgba(162, 75, 233, 0.4),
1px 22px 10px rgba(201, 224, 94, 0.2),
1px 25px 35px rgba(233, 197, 38, 0.2),
1px 30px 60px rgba(226, 241, 5, 0.4);
}
.highScores {
display: table;
font-size: 0.8vw;
border-spacing: 0.4em;
position: absolute;
top: 25%;
}
.highScore {
display: table-cell;
padding: 0.6em;
background-color:rgb(84, 15, 139);
color: white;
font-weight: bold;
}
.name {
display: table-cell;
padding: 0.6em;
background-color: rgba(242, 199, 255, 0.8);
color: black;
width: 15em;
overflow-x: hidden;
}
.table-row {
display: table-row;
}
input[type=text] {
padding: 0.3em;
}
button {
padding: 0.8em;
color: white;
border-radius: 2px;
font-weight: 400;
cursor: pointer;
background: #7D58AA;
border-color: #ad67b6;
width: max-content;
text-transform: uppercase;
font-size: 0.8vw;
border-width: 0.2em;
border-radius: 0.6em;
box-shadow: none;
}
button:hover {
background: #ad67b6;
border-color: #7D58AA;
}
.difficultyElement {
position: absolute;
top: 83%;
padding: 5px;
text-align: center;
font-size: 0.7vw;
}
.startNewGameButton {
position: absolute;
top: 88%;
}
.playerName {
position: absolute;
top: 78%;
font-size: 0.7vw;
border-radius: 0.3em;
border: solid 0.3em #440f70;
}
.playerName:focus {
outline-color: #D5A5CC;
outline-style: double;
outline-width: 0.3em;
}
.game-stats {
position: absolute;
right: 5%;
color: white;
font-size: 1vw;
}
#score {
bottom: 10%;
}
#lives {
bottom: 20%;
}