-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpsgame.css
123 lines (106 loc) · 1.91 KB
/
rpsgame.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
body{
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 0px;
}
.header{
background-color: black;
color: darkorange;
padding: 25px;
text-align: center;
font-size: 32px;
width: auto;
flex: 2;
}
h1{
margin: 0;
}
.content{
background-color: #333332;
color: white;
flex: 3;
text-align: center;
width: auto;
}
.battle, .weapons{
display: flex;
justify-content: center;
margin: 2em 0;
padding: 2em 0;
}
.battle{
gap: 5em;
}
.result {
margin: 20px;
gap: 1em;
}
.result div{
font-size: 3em;
text-shadow: -3px 0 black, 0 3px black, 3px 0 black, 0 -3px black;
margin-bottom: 10px;
}
.weapons{
justify-content: center;
align-items: center;
gap: 5em;
}
.signal{
padding: 1em;
background-color: #70706f;
border-radius: 1rem;
font-size: 3rem;
text-shadow: -3px 0 black, 0 3px black, 3px 0 black, 0 -3px black;
max-width: 5em;
}
.signal:hover{
background-color: lightgrey;
}
.footer{
background-color: black;
color: white;
margin: 0;
text-align: center;
flex: 1;
}
.game-over{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: 3px solid black;
max-width: 500px;
background-color: #70706f;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 35px;
border-radius: 3px;
visibility: hidden;
box-shadow: 5px 10px 8px #888888;
z-index: 101;
padding: 1em;
}
#overlay-div{
display: none;
z-index: 100;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(90, 90, 90, 0.5);
}
@media (max-width: 750px) {
.weapons{
flex-direction: column;
gap: 3em;
}
}