-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
138 lines (130 loc) · 2.53 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
* {
box-sizing: border-box;
}
body {
background-color: #ffe4e1;
margin: 0;
font-family: "Fredoka One", cursive;
}
main {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.game {
display: flex;
flex-wrap: wrap;
position: relative;
}
.board {
display: flex;
border: rgb(0, 59, 155) 10px solid;
border-top: rgb(0, 59, 155) 5px solid;
border-radius: 2%;
}
.slot {
height: 5.625rem;
width: 5.625rem;
overflow: hidden;
}
.hole {
transform: translate(-25px, -25px);
height: 8.75rem;
width: 8.75rem;
border-radius: 50%;
border: solid 30px rgb(0, 59, 155);
}
.player1 {
background-color: #cc4000;
}
.player2 {
background-color: rgb(51, 190, 255);
/* filter: invert(); */
}
.gameover {
position: absolute;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.431);
display: flex;
justify-content: center;
align-items: center;
visibility: hidden;
flex-direction: column;
}
.gameover p {
color: white;
font-size: 46px;
padding: 5px;
/* font-family: sans-serif; */
}
.gameover p.again {
font-size: 32px;
cursor: pointer;
border-bottom: 0px solid white;
transition: box-shadow 300ms;
box-shadow: inset 0 0px 0 white, inset 0 -0px 0 rgb(255, 255, 255);
}
.gameover p.again::after {
content: "?";
}
.gameover p.again:hover::after {
content: " !";
}
.gameover p.again:hover {
/* border-bottom: 5px solid white; */
box-shadow: inset 0 0px 0 rgb(255, 255, 255),
inset 0 -44px 0 rgba(255, 255, 255, 0.32);
}
.ui {
margin-left: 10px;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.ui .player-name {
padding-left: 5px;
margin-top: 4px;
color: white;
font-weight: bold;
font-family: "Fredoka One", cursive;
font-size: large;
width: 10em;
border-style: none;
}
.ui .player-name.playing {
animation: 1s ease-in-out highlight-player infinite alternate;
}
@keyframes highlight-player {
from {
color: rgb(255, 255, 255);
}
to {
color: rgb(255, 208, 0);
}
}
.restart {
font-size: 32px;
cursor: pointer;
z-index: 2;
}
.slot.cursor .hole {
border-color: #f5f5f5;
}
.cursor {
opacity: 0.7;
height: 80px;
width: 80px;
z-index: -1;
border-radius: 50%;
position: absolute;
top: -90px;
left: 5px;
transition: left ease-out 100ms;
}
.cursor.put {
transition: top ease-out 200ms;
opacity: 1;
filter: invert();
}