Rename style.css to styles.css
Browse files- style.css +0 -28
- styles.css +44 -0
style.css
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
body {
|
| 2 |
-
padding: 2rem;
|
| 3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 4 |
-
}
|
| 5 |
-
|
| 6 |
-
h1 {
|
| 7 |
-
font-size: 16px;
|
| 8 |
-
margin-top: 0;
|
| 9 |
-
}
|
| 10 |
-
|
| 11 |
-
p {
|
| 12 |
-
color: rgb(107, 114, 128);
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
.card {
|
| 19 |
-
max-width: 620px;
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
.card p:last-child {
|
| 27 |
-
margin-bottom: 0;
|
| 28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
styles.css
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body {
|
| 2 |
+
display: flex;
|
| 3 |
+
justify-content: center;
|
| 4 |
+
align-items: center;
|
| 5 |
+
height: 100vh;
|
| 6 |
+
background-color: #f0f0f0;
|
| 7 |
+
margin: 0;
|
| 8 |
+
font-family: Arial, sans-serif;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
#game-container {
|
| 12 |
+
position: relative;
|
| 13 |
+
width: 600px;
|
| 14 |
+
height: 200px;
|
| 15 |
+
border: 2px solid #000;
|
| 16 |
+
background-color: #fff;
|
| 17 |
+
overflow: hidden;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
#dino {
|
| 21 |
+
position: absolute;
|
| 22 |
+
bottom: 0;
|
| 23 |
+
width: 40px;
|
| 24 |
+
height: 40px;
|
| 25 |
+
background-color: #4caf50;
|
| 26 |
+
border-radius: 10px;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
#obstacle {
|
| 30 |
+
position: absolute;
|
| 31 |
+
bottom: 0;
|
| 32 |
+
width: 20px;
|
| 33 |
+
height: 40px;
|
| 34 |
+
background-color: #e74c3c;
|
| 35 |
+
border-radius: 5px;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
#score {
|
| 39 |
+
position: absolute;
|
| 40 |
+
top: 10px;
|
| 41 |
+
left: 10px;
|
| 42 |
+
font-size: 24px;
|
| 43 |
+
color: #333;
|
| 44 |
+
}
|