-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcandy.css
More file actions
56 lines (53 loc) · 1.1 KB
/
Copy pathcandy.css
File metadata and controls
56 lines (53 loc) · 1.1 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
body{
background: url("background.jpg") no-repeat center center fixed;
background-size: cover;
font-family: Arial, Helvetica, sans-serif;
color:white;
text-align: center;
}
#board{
width:450px;
height:450px;
background-color: lightblue;
border:5px solid slategray;
border-radius: 10px;
margin:0 auto;
display: flex;
flex-wrap: wrap;
}
#board img{
width:50px;
height:50px;
}
#quitButton {
background-color: #f44336;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
#quitButton:hover {
background-color: #d32f2f;
}
/* Media query for smaller devices */
@media only screen and (max-width: 600px) {
#board {
grid-template-columns: repeat(4, 1fr);
max-width: 400px;
}
}
/* Media query for larger devices */
@media only screen and (min-width: 1200px) {
#board {
grid-template-columns: repeat(12, 1fr);
max-width: 1200px;
}
}
#highScoreDisplay {
margin-top: 20px;
font-size: 20px;
font-weight: bold;
color: #333;
}