-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
165 lines (164 loc) · 3.36 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
*{
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* Header Start */
.header{
background-color: rgba(12, 12, 12, 0.842);
border-bottom: 2px solid white;
}
.navbar{
display: flex;
justify-content: center;
align-items: center;
gap: 5em;
}
.paper img,.rock img,.scissor img{
height: 100px;
width: 200px;
padding: 30px 0px;
cursor: pointer;
}
.scissor{
transform: rotate(160deg);
}
.ampersand{
font-size: 70px;
padding: 30px 40px;
transform: skew(-20deg);
}
/* Header End */
/* Container Start */
.container{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: rgba(12, 12, 12, 0.692);
padding: 30px 0px;
}
.score-heading p{
font-size: 50px;
}
.score{
display: flex;
gap: 500px;
align-items: flex-start;
}
#userScore p, #computerScore p{
font-size: 30px;
font-weight: bold;
}
/* Container End */
/* Game Start */
.game{
display: flex;
justify-content: center;
background-color: rgba(12, 12, 12, 0.692);
gap: 40px;
padding-bottom: 60px;
flex-wrap: wrap;
}
#rock,#paper,#scissor{
display: flex;
border: 2px solid rgb(190, 174, 174);
height: 400px;
width: 300px;
justify-content: center;
align-items: center;
border-radius: 10px;
cursor: pointer;
}
#rock img,#paper img,#scissor img,.computerScore img,.userChoice img{
max-height: 100px;
max-width: 300px
}
#rock:hover,#paper:hover,#scissor:hover{
box-shadow: 0px 0px 20px white;
transition: cubic-bezier(.51,.43,.35,.61);
transform: translateY(-5px);
transition-duration: 250ms;
}
/* Game End */
/* Game Result */
.gameResult{
font-size: 20px;
}
#computerScore, #userScore {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.computerScore,.userChoice{
padding: 40px 0px ;
}
/* Game Result End */
/* Footer */
.footer{
display: flex;
justify-content: center;
align-items: center;
gap: 90px;
padding: 30px 0px;
border-top: 2px solid white;
background-color: rgba(0, 0, 0, 0.541);
}
.contact a{
text-decoration: none;
}
.contact i{
color:rgb(0, 0, 0);
font-size: 40px;
}
/* Footer End */
/* Modal Start */
#modal{
display: none;
}
.modalContainer{
display: flex;
justify-content: center;
align-items: center;
transition: cubic-bezier(.51,.43,.35,.61);
transition-duration: 250ms;
}
.modal{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 30px;
padding: 30px 20px;
width: 300px;
border-radius: 5px;
border: 2px solid rgb(214, 207, 207);
background-color: rgba(34, 32, 32, 0.993);
color: white;
}
.modal button{
padding: 10px 30px;
border-radius: 5px;
border: 2px solid rgba(223, 199, 199, 0.74);
font-size: 15px;
font-weight: 600;
background-color: rgba(0, 0, 0, 0.945);
color: white;
}
.modalText{
font-size: 20px;
}
.modal button:hover{
transform: translateY(-5px);
transition: cubic-bezier(.51,.43,.35,.61);
transition-duration: 250ms;
}
.center {
position: absolute;
float: left;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
/* Modal End */