-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
110 lines (90 loc) · 1.66 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
width: 100vw;
padding: 15px;
display: flex;
align-items: center;
justify-content: center;
background-color: #f6f7fb;
}
.container {
display: flex;
flex-direction: column;
background-color: #fff;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
padding: 2rem 5rem;
border-radius: 15px;
}
.results div{
display: flex;
gap: 7rem;
justify-content: center;
img {
width: 100px;
}
}
.user-result img {
transform: rotate(90deg);
}
.computer-result img {
transform: rotate(-90deg) rotateY(180deg);
}
.result-text {
text-align: center;
color: #7d2ae8;
font-weight: bold;
margin: 1.5rem 0;
font-size: 2rem;
}
.container.start .user-result {
transform-origin: left;
animation: userShakes 0.7s ease infinite;
}
@keyframes userShakes {
50% {
transform: rotate(10deg);
}
}
.container.start .computer-result {
transform-origin: right;
animation: userShakes 0.7s ease infinite;
}
@keyframes computerShakes {
50% {
transform: rotate(-10deg);
}
}
.options {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 50px;
p{
color: #7d2ae8;
font-size: 1.4rem;
font-weight: bold;
text-align: center;
}
}
.option-image {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
opacity: 0.5;
transition: opacity 0.5s ease;
img {
width: 50px;
}
}
.option-image:hover {
opacity: 1;
}
.option-image:active {
opacity: 1;
}