-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
160 lines (136 loc) · 2.7 KB
/
styles.css
File metadata and controls
160 lines (136 loc) · 2.7 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
/*main header*/
h1 {
text-align: center;
color: rgb(255, 115, 0);
}
/* Score */
.score {
display: flex;
flex-direction: column;
align-items: center;
width: fit-content;
}
.score h3 {
margin-bottom: 5px;
font-family: monospace;
font-size: 1.7rem;
}
.score .display{
display: flex;
gap: 10px;
font-size: 3rem;
/* font-family: 'Courier New', Courier, monospace; */
background-color: black;
color: white;
width: fit-content;
padding: 7px;
border-radius: 7px;
align-content: center;
}
/* user & computer section */
.game-space {
display: flex;
align-items: center;
justify-content: center;
gap: 37px;
width: 800px;
/* background-color: antiquewhite; */
margin: auto;
}
.user-space,
.computer-space {
display: flex;
flex-direction: column;
align-items: center;
}
img {
width: 250px;
border-radius: 17px;
padding: 17px;
box-shadow: 0 0 10px rgba(128, 128, 128, 0.322);
transition-duration: 0.5s;
}
/*Weapon buttons*/
.weapon-choice {
width: 800px;
margin: auto;
margin-top: 30px;
text-align: center;
font-family: 'Courier New', Courier, monospace;
}
.weapons {
display: flex;
justify-content: center;
gap: 7px;
margin: 7px;
}
.weapons button {
width: 90px;
padding: 5px;
font-size: large;
background-color: black;
color: white;
border: 2px solid black;
border-radius: 7px;
}
.weapons button:hover{
cursor: pointer;
color: black;
background-color: white;
}
.weapons button:active {
box-shadow: 2px 2px 5px rgba(128, 128, 128, 0.479);
}
.reset {
background-color: rgb(240, 96, 0);
color: white;
display: block;
margin: auto;
margin-top: 50px;
font-size: xx-large;
border: 2px solid rgb(240, 96, 0);
padding: 7px 27px;
border-radius: 11px;
}
.reset:hover {
cursor: pointer;
color: rgb(240, 96, 0);
background-color: white;
}
.reset:active {
box-shadow: 0px 0px 15px rgba(240, 121, 42, 0.479);
}
/* Game status */
.game-status {
width: 800px;
text-align: center;
margin: 3rem auto 1rem;
padding: 1rem;
border: 2px solid black;
border-radius: 1rem 0;
font-size: 2rem;
}
/* Image Styling for Winner And Looser */
.winner {
box-shadow: 0 0 10px rgb(0, 255, 0, 0.5);
transform: scale(1.1);
transition-duration: 0.5s;
}
.looser {
box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
transform: scale(0.8);
transition-duration: 0.5s;
}
.tie {
box-shadow: 0 0 10px rgba(128, 128, 128, 0.322);
transform: scale(1);
transition-duration: 0.5s;
}