-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMunchers.css
107 lines (96 loc) · 2.41 KB
/
Munchers.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
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100vh;
margin: 0;
background-color: #2a1556; /* Deep purple background color */
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: #fff; /* White text color */
text-align: center;
border-image: linear-gradient(red, cyan, purple) 1;
}
.game-wrapper {
width: fit-content;
padding: 10px;
border: 5px solid #fff; /* White border for the game wrapper */
border-radius: 10px;
background-color: #2a1556; /* Background color for the wrapper */
}
.game-header {
background-color: #41337A; /* Lighter purple background for header */
color: #fff;
padding: 10px;
width: 100%;
box-sizing: border-box;
display: flex;
justify-content: space-between; /* Aligns level and title on opposite ends */
}
.game-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #2a1556; /* Background color for the game area */
}
.game-board {
display: grid;
grid-template-columns: repeat(5, 60px);
grid-template-rows: repeat(5, 60px);
gap: 10px;
padding: 10px;
border: 2px solid #ff4081;
border-radius: 8px;
color: #fff;
font-size: 20px;
text-align: center;
}
.game-square, .square {
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #ff4081;
background-color: #2a1556;
color: #fff;
font-size: 20px;
height: 60px;
width: 60px;
cursor: pointer;
transition: background-color 0.3s ease;
position: relative;
}
.muncher-container {
position: absolute;
}
.muncher {
position: relative;
top: 0;
left: 0;
width: 100%; /* Make the muncher fill the square */
height: 100%;
background-image: url('path-to-muncher-image.png');
background-size: cover;
z-index: 10;
}
.game-footer {
background-color: #41337A; /* Lighter purple background for footer */
color: #fff;
padding: 10px;
width: 100%;
box-sizing: border-box;
display: flex;
justify-content: space-between; /* Aligns score on opposite end */
}
/* Score and Level Display */
.score-display, .level-display {
font-size: 16px;
color: #fff;
padding: 5px 10px;
border: 1px solid #ffffff;
border-radius: 5px;
}
/* Remove Timer and Lives indicators if not needed */
.timer-display, .lives-display {
display: none;
}