-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
196 lines (173 loc) · 3.45 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
* {
color: white;
font-family: sans-serif;
transition: 0.2s ease-in-out;
user-select: none;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.align {
display: flex;
justify-content: center;
align-items: center;
}
body {
width: 100vw;
text-align: center;
padding-top: 5vh;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
section {
position: absolute;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
gap: 2px;
flex-wrap: wrap;
overflow: hidden;
}
section::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(#000, #0f0, #000);
animation: animate 5s linear infinite;
}
@keyframes animate {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(100%);
}
}
section span {
position: relative;
display: block;
width: calc(6.25vw - 2px);
height: calc(6.25vw - 2px);
background: #181818;
z-index: 0;
transition: 1.5s;
text-align: center;
}
section span:hover {
background: #0f0;
transition: 0s;
}
section .outerbox {
position: absolute;
width: 340px;
height: 100%;
background: #333333;
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
border-radius: 4px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 9);
color: rgb(34, 40, 142);
}
section .outerbox .content {
position: relative;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 10px;
}
section .game-container {
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
section .game-container span {
margin: 0 10px;
}
section .game-container .tic-tac-toe-span {
position: relative;
display: block;
width: calc(6.25vw - 2px);
height: calc(6.25vw - 2px);
background: #333333;
z-index: 0;
transition: 1.5s;
}
section .game-container .tic-tac-toe-span:hover {
background: #0f0;
transition: 0s;
}
.turn-container {
width: 170px;
height: 80px;
margin: auto;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
position: relative;
}
.turn-container h3 {
margin: 0;
grid-column-start: 1;
grid-column-end: 3;
}
.turn-container .turn-box {
border: 3px solid #061d12;
font-size: 1.6rem;
font-weight: 700;
}
.turn-container .turn-box:nth-child(even) {
border-right: none;
}
.bg {
position: absolute;
bottom: 0;
left: 0;
width: 85px;
height: 40px;
background-color: #2568a2;
z-index: -1;
}
.main-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
height: 250px;
width: 250px;
margin: 30px auto;
border: 2px solid #06020b;
}
.box {
cursor: pointer;
font-size: 2rem;
font-weight: 700;
border: 2px solid #0dee0d;
}
.box:hover {
background-color: #181e17;
}
#play-again {
background-color: #0f120f;
padding: 10px 25px;
border: none;
font-size: 1.2rem;
border-radius: 5px;
cursor: pointer;
display: none;
}
#play-again:hover {
padding: 10px 40px;
background-color: #1b241d;
color: #299b29;
}