-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
96 lines (83 loc) · 1.67 KB
/
style.css
File metadata and controls
96 lines (83 loc) · 1.67 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
body {
background-color: #2b2b2bb9;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: Arial, sans-serif;
}
.container {
border: 20px solid #000000;
border-radius: 10px;
background-color: #fc1ae979;
padding: 20px;
box-shadow: 0px 0px 105px rgba(10, 14, 226, 0.966);
}
h1 {
text-align: center;
margin-bottom: 20px;
color: #000000fb;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Geneva, Tahoma, sans-serif;
font-weight: bold;
}
#score {
text-align: center;
font-size: 18px;
margin-bottom: 10px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-weight: bold;
}
#startButton {
display: block;
margin: 0 auto;
font-size: 16px;
padding: 10px 20px;
background-color: #4caf50;
color: #0c0c0c;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#startButton:hover {
background-color: #45a049;
}
#controls {
display: flex;
justify-content: center;
margin-top: 20px;
}
#controls button {
font-size: 24px;
padding: 10px 20px;
margin: 5px;
background-color: #008CBA;
color: #000000;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#controls button:hover {
background-color: #05cdff;
}
#speedControl {
text-align: center;
margin-top: 20px;
}
#speedControl label {
font-size: 16px;
margin-right: 10px;
}
#speedControl input {
width: 100%;
margin-top: 5px;
}
.container.collision {
animation: shake 0.3s linear;
border-color: #FF0000; /* Color del marco en caso de colisión */
}
/* Estilos para el canvas del juego */
#gameCanvas {
border: 9px solid #000;
}