-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
127 lines (109 loc) · 2.03 KB
/
styles.css
File metadata and controls
127 lines (109 loc) · 2.03 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
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
min-height: 100vh;
display: flex;
flex-direction: column;
background-color: #f0f0f0;
color: #333;
}
header {
text-align: center;
padding: 1rem;
background-color: #4a90e2;
color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.score-container {
font-size: 1.5rem;
margin-top: 0.5rem;
}
main {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem;
gap: 1rem;
}
#gameCanvas {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
max-width: 100%;
}
.controls-info {
text-align: center;
color: #666;
margin-top: 1rem;
}
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
opacity: 1;
transition: opacity 0.3s ease;
}
.modal.hidden {
opacity: 0;
pointer-events: none;
}
.modal-content {
background-color: white;
padding: 2rem;
border-radius: 8px;
text-align: center;
transform: scale(1);
transition: transform 0.3s ease;
}
.modal.hidden .modal-content {
transform: scale(0.8);
}
#restartButton {
margin-top: 1rem;
padding: 0.5rem 1.5rem;
font-size: 1.1rem;
background-color: #4a90e2;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s ease;
}
#restartButton:hover {
background-color: #357abd;
}
#restartButton:focus {
outline: 3px solid #90caf9;
outline-offset: 2px;
}
footer {
text-align: center;
padding: 1rem;
background-color: #333;
color: white;
}
@media (max-width: 768px) {
header h1 {
font-size: 1.5rem;
}
.score-container {
font-size: 1.2rem;
}
main {
padding: 1rem;
}
.controls-info {
font-size: 0.9rem;
}
}