-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (118 loc) · 2.27 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
*{
padding: 0;
margin: 0;
}
body{
overflow: hidden;
}
.myGame{
height: 100vh;
}
canvas{
background-color: rgb(49,49,49);
max-width: 100%;
}
.name{
font-size: 2vmax;
padding: 1vmax;
border: 2px solid black;
border-radius: 10px;
z-index: 100;
transition: transform 2s;
color: white;
margin: 2vmax;
cursor: pointer;
background-color: pink;
}
.name :hover{
transform: scale(1.5);
}
.credit{
color: white;
font-size: 1vmax;
}
.scoreBoard{
position: fixed;
left: 5%;
top:5%;
font: 600 1.2vmax "Franklin Gothic Medium";
display: none;
color: white;
user-select: none;
}
form{
background-color: rgba(255,255,255,0.158);
height: 60vh;
width: 60vw;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
display: flex;
flex-direction: column;
border-radius: 5px;
justify-content: center;
align-items: center;
}
form >select, form select option{
padding: 2vmax;
width: 20vw;
font-size: 1.4vmax;
transition: all 0.5s;
border: none;
text-align: center;
font-family: cursive;
}
form > input{
margin: 2vmax;
cursor: pointer;
padding: 2vmax;
width: 20vw;
transition: all 0.5s;
background-color: indianred;
color:white;
border: none;
font-size: 1.4vmax;
font-family: cursive;
outline: none;
}
form > select:hover{
box-shadow: 0 0 10px white;
}
form >input:hover{
background-color: rgb(194,27,91);
box-shadow: 0 0 10px white;
}
.gameover{
background-color: rgba(122,122,122,0.041);
border-radius: 5px;
position: fixed;
top: 50%;
left: 50%;
height: 100vh;
width: 100vw;
transform: translateX(-50%) translateY(-50%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.gameover > button{
padding: 1vmax;
border: 2px solid white;
cursor: pointer;
width: 10vw;
background-color: white;
font: 900 1.1vmax cursive;
transition: all 0.5s;
}
.gameover > button:hover{
background-color: rgb(30, 30,34);
color: white;
box-shadow: 0 0 10px rgb(255,255,255);
}
.gameover > div{
margin: 2vmax;
color: white;
font: 600 1.2vmax cursive;
}