-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (127 loc) · 2.83 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>2048 Game</title>
<style>
body {
text-align: center;
background-color: #580451;
color: #520f5f;
margin: 0;
padding: 0;
}
h1 {
font-size: 56px;
margin-top: 1px;
background-color: #260581;
padding: 3px;
border-radius: 10px;
color: rgb(221, 14, 14);
text-shadow: 2px 2px 4px rgba(12, 12, 12, 0.6);
}
.subtitle {
font-size: 54px;
margin-top: -10px;
color: #38d4a6;
}
.front-page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #580451;
color: #520f5f;
margin: 0;
padding: 0;
}
.title-box {
width: 300px;
height: 300px;
background-color: #4825a8;
border: 5px solid #1a1818;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
position: relative;
}
.title {
font-size: 72px;
color: #97af0c;
text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.6);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: #750d0d;
border-radius: 15px;
text-decoration: none;
color: #97af0c;
font-weight: bold;
font-size: 16px;
margin: 10px;
transition: all 0.3s ease;
}
.button:hover {
transform: scale(2.2);
}
#start-button {
padding: 10px 20px;
background-color: #750d0d;
color: #97af0c;
}
#instructions-button {
padding: 10px 20px;
background-color: #750d0d;
color: #97af0c;
}
#start-button:hover,
#instructions-button:hover {
background-color: #97af0c;
color: #750d0d;
}
.container {
background-color: #bdc916;
height: calc(100vh - 160px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.game-container {
display: inline-block;
background-color: #4825a8;
border: 2px solid #1a1818;
padding: 50px;
border-radius: 40px;
margin-top: 20px;
}
.button-container {
margin-top: 20px;
}
.button-container button {
margin-right: 10px;
}
</style>
</head>
<body>
<div class="front-page">
<div class="title-box">
<h1 class="title">2048</h1>
</div>
<p class="subtitle">Puzzle</p>
</div>
<div class="button-container">
<button id="start-button">Start</button>
<button id="instructions-button">Instructions</button>
</div>
<script src="script1.js"></script>
</body>
</html>