-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
193 lines (177 loc) · 4.71 KB
/
Copy pathindex.html
File metadata and controls
193 lines (177 loc) · 4.71 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>🎮 Game Zone | MRINALxVIRUS</title>
<style>
:root{
--accent1:#00e5ff;
--accent2:#ff00e0;
--accent3:#7cff00;
--bg-dark:#06081a;
--text:#e8f4ff;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
font-family:"Orbitron",system-ui,Segoe UI,Roboto,sans-serif;
background: radial-gradient(circle at center,#090c20,#01030a);
color:var(--text);
overflow-x:hidden;
min-height:100vh;
display:flex;
flex-direction:column;
align-items:center;
}
body::before{
content:"";
position:fixed;
inset:0;
background-image:
linear-gradient(90deg,#111 1px,transparent 1px),
linear-gradient(#111 1px,transparent 1px);
background-size:40px 40px;
opacity:0.15;
animation:bgmove 15s linear infinite;
z-index:-1;
}
@keyframes bgmove{
0%{background-position:0 0;}
100%{background-position:40px 40px;}
}
h2{
margin-top:30px;
text-align:center;
font-size:clamp(28px,6vw,50px);
background:linear-gradient(90deg,var(--accent1),var(--accent2),var(--accent3));
background-size:300% 300%;
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
animation: shift 6s linear infinite;
letter-spacing:2px;
}
@keyframes shift{
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
p.tagline{opacity:.8;margin-bottom:10px}
.cube-area{
perspective:1000px;
height:220px;
display:grid;
place-items:center;
}
.cube{
position:relative;
width:120px;
transform-style:preserve-3d;
animation:spin 10s linear infinite;
}
@keyframes spin{
0%{transform:rotateX(0) rotateY(0);}
100%{transform:rotateX(360deg) rotateY(360deg);}
}
.face{
position:absolute;
inset:0;
background:linear-gradient(135deg,var(--accent1),var(--accent2));
border:2px solid #fff2;
}
.front{transform:translateZ(60px)}
.back{transform:rotateY(180deg) translateZ(60px)}
.right{transform:rotateY(90deg) translateZ(60px)}
.left{transform:rotateY(-90deg) translateZ(60px)}
.top{transform:rotateX(90deg) translateZ(60px)}
.bottom{transform:rotateX(-90deg) translateZ(60px)}
.game-wrap{
width:min(95vw,600px);
background:#0e1333;
border-radius:14px;
padding:20px;
margin-bottom:60px;
}
.controls{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
}
input{
background:#11162e;
border:1px solid #1e2c5f;
border-radius:8px;
padding:8px;
color:#fff;
}
.btn{
background:linear-gradient(135deg,var(--accent1),var(--accent2));
border:none;
padding:8px 12px;
border-radius:10px;
cursor:pointer;
font-weight:700;
}
.badge{
background:#0c1025;
padding:6px 12px;
border-radius:999px;
font-weight:700;
}
.board{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
margin-top:16px;
}
.cell{
aspect-ratio:1/1;
background:#0c112b;
border-radius:10px;
display:grid;
place-items:center;
cursor:pointer;
}
.mark{
font-size:60px;
font-weight:900;
}
.X{color:var(--accent1)}
.O{color:var(--accent2)}
.win{background:#122d18}
footer{margin:20px;opacity:.8}
</style>
</head>
<body>
<h2>🎮 Game Zone</h2>
<p class="tagline">All The Best From Team MRINALxVIRUS!</p>
<div class="cube-area">
<div class="cube">
<div class="face front"></div>
<div class="face back"></div>
<div class="face right"></div>
<div class="face left"></div>
<div class="face top"></div>
<div class="face bottom"></div>
</div>
</div>
<section class="game-wrap">
<h3 style="text-align:center">Tic Tac Toe</h3>
<div class="controls">
<input id="p1Input" placeholder="Player 1 (X)">
<input id="p2Input" placeholder="Player 2 (O) or Bot">
<button class="btn" id="startBtn">Start</button>
<button class="btn" id="botBtn">Play vs Bot</button>
</div>
<div style="text-align:center;margin:10px">
<span class="badge" id="turnBadge">Turn: —</span>
<span class="badge">X: <b id="sx">0</b> | O: <b id="so">0</b></span>
</div>
<div class="board" id="board"></div>
<div id="status" style="text-align:center;margin-top:8px;"></div>
</section>
<footer>Developed by <b>MRINALxVIRUS TEAM</b></footer>
<!-- External JS -->
<script src="game.js"></script>
</body>
</html>