- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRPS.css
More file actions
Latest commit
101 lines (92 loc) · 1.73 KB
/
Copy pathRPS.css
File metadata and controls
101 lines (92 loc) · 1.73 KB
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
/* styles.css */
/* universal selector - Applies to whole document */
*{
padding:0;
margin:0;
box-sizing: border-box;
background:#082c6c;
color:#fff;
}
/* To center everything in game */
.game{
display: flex;
flex-direction: column;
height:100vh;
width:100vw;
justify-content: center;
align-items: center;
}
/* Title of the game */
.title{
position: absolute;
top:0;
font-size:4rem;
z-index:2;
}
/* Score Board */
.score{
display: flex;
width:30vw;
justify-content: space-evenly;
position: absolute;
top:70px;
z-index:1;
}
/* Score */
.p-count,.c-count{
text-align: center;
font-size:1.5rem;
margin-top:1rem;
}
/* displaying three buttons in one line */
.options{
display: flex;
width:50vw;
justify-content: space-evenly;
margin-top:2rem;
}
/* Styling on all three buttons */
.rock, .paper, .scissor{
padding:0.8rem;
width:100px;
border-radius:10px;
background: green;
outline: none;
border-color: green;
border: none;
cursor: pointer;
}
.move{
font-size:2rem;
font-weight: bold;
}
/* Reload button style */
.reload {
display: none;
margin-top:2rem;
padding:1rem;
background: green;
outline: none;
border: none;
border-radius:10px;
cursor: pointer;
}
.result{
margin-top:20px;
font-size:1.2rem;
}
/* Responsive Design */
@media screen and (max-width:612px)
{
.title{
text-align: center;
}
.score{
position: absolute;
top:200px;
width:100vw;
}
.options{
width:100vw;
}
}