-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
75 lines (66 loc) · 1.82 KB
/
style.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
*{
/* resetting all the default margin and padding of all the elements */
margin:0 ;
padding:0 ;
box-sizing:border-box ; /*default was content-box*/
}
#canvas1{
border:5px solid black;
position:absolute; /*This means that the element will be positioned relative to its closest positioned ancestor or to the document if there is no positioned ancestor.*/
top: 50%;
left :50% ;
transform:translate(-50% , -50%) ;
background:#4d79bc;
max-width : 100% ;
max-height: 100%;
}
.bangers-regular {
font-family: "Bangers", system-ui;
font-weight: 400;
font-style: normal;
}
#layer1 ,#layer2 , #layer3 , #layer4 , #player , #angler1 , #angler2 , #lucky , #projectile , #hivewhale , #drone{
display: none;
}
#play-again-button {
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
color: #fff;
background-color: #4CAF50;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
position:absolute ;
top: 70% ;
left:50% ;
transform:translate(-50% , -50%) ;
}
#play-again-button:hover {
background-color: #45a049;
}
#play-again-button:focus {
outline: none;
}
#controls {
position: absolute;
top: calc(20% + 20px); /* Adjust as needed */
left: 20px; /* Adjust as needed */
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
padding: 10px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
font-family: Arial, sans-serif;
max-width: 220px; /* Adjust as needed */
}
#controls h3 {
margin-bottom: 10px;
font-size: 20px;
color: #333; /* Dark gray text color */
}
#controls li {
margin-bottom: 5px;
font-size: 16px;
color: #666; /* Medium gray text color */
}