File size: 1,053 Bytes
9e3a33b
 
 
0f8795b
9e3a33b
 
 
 
 
 
 
 
 
0f8795b
 
 
9e3a33b
 
 
 
0f8795b
 
9e3a33b
 
 
 
 
 
 
 
 
 
 
 
0f8795b
 
9e3a33b
 
 
 
 
 
 
0f8795b
 
9e3a33b
 
 
 
 
 
 
 
 
 
0f8795b
9e3a33b
 
 
 
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
@import url('https://cdn.jsdelivr.net/npm/daisyui@3.1.6/dist/full.css');
@import url('https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio');

body {
 font-family: Arial, sans-serif;
 height: 100vh;
 margin: 0;
 padding: 0;
 display: flex;
 justify-content: center;
 align-items: center;
 background-color: #f5f5f5;
 color: #333;
}

h1 {
 font-size: 48px;
 text-align: center;
 font-weight: bold;
 margin-bottom: 20px;
}

.game {
 position: relative;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 padding: 20px;
 margin: 20px;
 width: 400px;
 height: 400px;
 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
 background-color: #fff;
}

.game-canvas {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 400px;
 height: 400px;
}

button {
 padding: 10px 20px;
 font-size: 16px;
 cursor: pointer;
 border: none;
 background-color: #4CAF50;
 color: #fff;
 text-align: center;
 outline: none;
 transition: .4s ease-in-out;
}

button:hover {
 background-color: #45a049;
}