-
Notifications
You must be signed in to change notification settings - Fork 0
/
petition.css
153 lines (133 loc) · 2.46 KB
/
petition.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
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: 'Alkatra', sans-serif;
}
/* div,
h1,
h3 {
/* display: flex;
justify-content: center;} */
.main-content {
background-color: antiquewhite;
border-color: black;
box-shadow: 0 0 .5rem black;
border-radius: .5rem;
margin-bottom:10px;
/* display: flex;
justify-content: center;
align-items: center; */
/* height: 100%; */
}
.choice-area{
display: flex;
justify-content: center;
/* flex-direction: row; */
}
img{
max-width: 100%;
max-height: 100%;
}
.rock,
.paper,
.scissors,
.play-again {
/* display: flex;
justify-content: center; */
border: .2rem solid black;
border-radius: .5rem;
margin: 1rem;
font-size: 1.5rem;
padding: 1rem .5rem;
transition: all .07s ease;
width: 8rem;
text-align: center;
color: white;
background: rgba(0,0,0,0.4);
text-shadow: 0 0 .5rem black;
object-fit: fill;
cursor: pointer;
}
.button-clicked {
transform: scale(1.1);
border-color: #ffc600;
box-shadow: 0 0 1rem #ffc600;
}
.user-win {
border-color: green;
box-shadow: 0 0 1rem green;
}
.computer-win {
border-color: red;
box-shadow: 0 0 1rem red;
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
10%, 30%, 50%, 70%, 90% {
transform: translateX(-3px);
}
20%, 40%, 60%, 80% {
transform: translateX(3px);
}
}
.shake {
animation: shake .5s;
}
@keyframes floatUp {
0% {
transform: translateY(0);
opacity: 1;
}
100% {
transform: translateY(-100px);
opacity: 0;
}
}
.floating-point {
position:absolute;
font-size: 1.5rem;
animation: floatUp 2s linear forwards;
}
@keyframes grow-and-shrink {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
.play-again {
animation: grow-and-shrink 4000ms;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
.white-space{
margin-top: 40px;
}
#Github-logo{
width: 15px;
height: 15px;
}
a{
text-decoration:none;
color: black;
}
a:hover{
text-decoration: underline;
}
footer{
background-color: lightgray;
width: 100%;
position: fixed;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
}