-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirusGame.css
87 lines (79 loc) · 1.91 KB
/
virusGame.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
/* Reset some default styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
font-family: 'Nunito', sans-serif;
background-color: #b8665f;
}
/* Full-screen container */
.image-container {
position: relative;
width: 100%;
height: 100vh; /* 100% of the viewport height */
overflow: hidden;
}
/* Background image styling */
.background-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover; /* Ensures the image covers the container while maintaining aspect ratio */
}
/* Trash can styling */
.trash-can {
position: absolute;
bottom: 20px;
left: 20px;
width: 120px;
height: 130px;
background-image: url('trashCan.png'); /* Add the trash can image */
background-size: contain;
background-repeat: no-repeat;
z-index: 10;
}
/* Virus image styling */
.virus {
position: absolute;
width: 50px;
height: 50px;
background-image: url('virus.png');
background-size: contain;
background-repeat: no-repeat;
cursor: grab;
z-index: 5;
}
/* Virus counter overlay styling */
.virus-counter {
position: absolute;
top: 10px;
right: 10px;
font-size: 24px;
background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
padding: 10px;
border-radius: 8px;
z-index: 20; /* Ensure the counter stays on top */
}
/* Button styling */
.next-page-button {
position: absolute;
top: 91%;
left: 83.5%;
transform: translate(-50%, -50%);
font-size: 20px;
padding: 15px 30px;
background-color: #4caf4f00; /* Green background */
color: rgba(255, 255, 255, 0);
border: none;
border-radius: 8px;
cursor: pointer;
z-index: 25; /* Keep it above other elements */
/* Set specific width and height */
width: 320.5px; /* Set button width */
height: 56.5px; /* Set button height */
}