-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.css
136 lines (121 loc) · 2.61 KB
/
game.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
@import url(./global.css);
.players {
width: 100%;
height: 100px;
display: flex;
justify-content: space-evenly;
margin: 20px;
font-size: 32px;
text-align: center;
}
.player1,
.player2 {
display: flex;
justify-content: center;
flex-direction: column;
margin: auto;
}
span {
margin-top: 14px;
}
.main {
display: grid;
grid-template-rows: repeat(3, 100px);
grid-template-columns: repeat(3, 100px);
gap: 0px;
}
.empty {
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.empty:hover {
background-color: hsla(209, 78%, 79%, 0.13);
transition: 0.1s ease-in-out;
}
.empty:nth-child(-1n + 6) {
border-bottom: 6px solid rgb(221, 221, 221);
}
.empty:nth-child(1n + 2):not(:nth-child(4)):not(:nth-child(7)) {
border-left: 4px solid rgb(221, 221, 221);
border-radius: 10px;
}
.o,
.x {
background-repeat: no-repeat;
background-position: center;
background-size: 60px;
}
.o {
background-image: url(./images/o.png);
}
.x {
background-image: url(./images/x.png);
}
.circle {
color: #fb4264;
text-shadow: 0 0 3vw #f40a35;
animation: circle 1s ease infinite;
-moz-animation: circle 1s ease infinite;
-webkit-animation: circle 1s ease infinite;
}
@keyframes circle {
0%,
100% {
text-shadow: 0 0 1vw #fa1c16, 0 0 3vw #fa1c16, 0 0 10vw #fa1c16, 0 0 10vw #fa1c16, 0 0 0.4vw #fed128, 0.3vw 0.3vw 0.1vw #806914;
color: #fed128;
}
50% {
text-shadow: 0 0 0.3vw #800e0b, 0 0 1.5vw #800e0b, 0 0 5vw #800e0b, 0 0 5vw #800e0b, 0 0 0.2vw #800e0b, 0.3vw 0.3vw 0.1vw #40340a;
color: #806914;
}
}
.homeButton {
color: #fefefe;
font-size: 18px;
text-decoration: none;
position: absolute;
background-color: #3ec5f4;
padding: 6px;
border-radius: 6px;
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
font-weight: 500;
top: 40px;
left: 40px;
}
.reset {
padding: 8px 24px;
border-radius: 8px;
cursor: pointer;
margin-top: 34px;
color: #fefefe;
font-size: 18px;
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
background-color: #3ec5f4;
border: 0;
user-select: none;
}
.reset:hover,
.homeButton:hover {
background-color: #ff615f;
transition: 0.2s ease-in-out;
}
@media only screen and (max-width: 540px) {
.tittle {
font-size: 36px;
text-align: center;
}
.players {
font-size: 21px;
}
a.homeButton {
font-size: 14px;
top: 10px;
left: 10px;
padding: 4px;
}
.reset {
padding: 6px 14px;
}
}