Spaces:
Running
Running
Update styles.css
Browse files- styles.css +55 -10
styles.css
CHANGED
|
@@ -9,20 +9,23 @@ body {
|
|
| 9 |
justify-content: center;
|
| 10 |
align-items: center;
|
| 11 |
height: 100vh;
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
/* Container styling */
|
| 15 |
.container {
|
| 16 |
width: 90%;
|
| 17 |
-
|
|
|
|
| 18 |
display: flex;
|
| 19 |
flex-direction: column;
|
| 20 |
align-items: center;
|
| 21 |
background: #2c2c2c;
|
| 22 |
border: 2px solid #444;
|
| 23 |
-
border-radius:
|
| 24 |
padding: 20px;
|
| 25 |
-
box-shadow: 0
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
/* Header styling */
|
|
@@ -35,8 +38,9 @@ header {
|
|
| 35 |
}
|
| 36 |
|
| 37 |
header h1 {
|
| 38 |
-
font-size:
|
| 39 |
color: #e63946; /* Red title */
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
header .balance-display {
|
|
@@ -51,18 +55,19 @@ header .balance-display {
|
|
| 51 |
border-radius: 5px;
|
| 52 |
cursor: pointer;
|
| 53 |
font-size: 16px;
|
| 54 |
-
transition: background 0.3s ease;
|
| 55 |
}
|
| 56 |
|
| 57 |
#back-btn:hover {
|
| 58 |
background: #a62639;
|
|
|
|
| 59 |
}
|
| 60 |
|
| 61 |
/* Game screen styling */
|
| 62 |
.game-screen {
|
| 63 |
position: relative;
|
| 64 |
width: 100%;
|
| 65 |
-
|
| 66 |
border: 2px solid #e63946;
|
| 67 |
border-radius: 10px;
|
| 68 |
overflow: hidden;
|
|
@@ -70,6 +75,7 @@ header .balance-display {
|
|
| 70 |
display: flex;
|
| 71 |
align-items: flex-end;
|
| 72 |
justify-content: flex-start;
|
|
|
|
| 73 |
}
|
| 74 |
|
| 75 |
.sky-video {
|
|
@@ -80,6 +86,7 @@ header .balance-display {
|
|
| 80 |
height: 100%;
|
| 81 |
object-fit: cover;
|
| 82 |
z-index: -1;
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
.plane {
|
|
@@ -88,7 +95,11 @@ header .balance-display {
|
|
| 88 |
left: 10px;
|
| 89 |
width: 60px;
|
| 90 |
height: auto;
|
| 91 |
-
transition: transform 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
}
|
| 93 |
|
| 94 |
.multiplier {
|
|
@@ -108,17 +119,18 @@ header .balance-display {
|
|
| 108 |
display: flex;
|
| 109 |
flex-direction: column;
|
| 110 |
align-items: center;
|
|
|
|
| 111 |
}
|
| 112 |
|
| 113 |
.controls input {
|
| 114 |
width: 80%;
|
| 115 |
padding: 10px;
|
| 116 |
-
margin-bottom: 10px;
|
| 117 |
border: 2px solid #e63946;
|
| 118 |
border-radius: 5px;
|
| 119 |
background: #202124;
|
| 120 |
color: #ffffff;
|
| 121 |
font-size: 16px;
|
|
|
|
| 122 |
}
|
| 123 |
|
| 124 |
.buttons-group {
|
|
@@ -135,7 +147,7 @@ header .balance-display {
|
|
| 135 |
border-radius: 5px;
|
| 136 |
font-size: 16px;
|
| 137 |
cursor: pointer;
|
| 138 |
-
transition: background 0.3s ease;
|
| 139 |
}
|
| 140 |
|
| 141 |
.controls #stake-btn {
|
|
@@ -155,6 +167,35 @@ header .balance-display {
|
|
| 155 |
|
| 156 |
.controls button:hover:not(:disabled) {
|
| 157 |
background: #a62639;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
}
|
| 159 |
|
| 160 |
/* Responsive design */
|
|
@@ -164,8 +205,12 @@ header .balance-display {
|
|
| 164 |
padding: 10px;
|
| 165 |
}
|
| 166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
.controls input,
|
| 168 |
.controls button {
|
| 169 |
width: 100%;
|
| 170 |
}
|
| 171 |
-
}
|
|
|
|
| 9 |
justify-content: center;
|
| 10 |
align-items: center;
|
| 11 |
height: 100vh;
|
| 12 |
+
overflow: hidden;
|
| 13 |
}
|
| 14 |
|
| 15 |
/* Container styling */
|
| 16 |
.container {
|
| 17 |
width: 90%;
|
| 18 |
+
aspect-ratio: 16 / 9; /* Ensures a 16:9 ratio */
|
| 19 |
+
max-width: 800px;
|
| 20 |
display: flex;
|
| 21 |
flex-direction: column;
|
| 22 |
align-items: center;
|
| 23 |
background: #2c2c2c;
|
| 24 |
border: 2px solid #444;
|
| 25 |
+
border-radius: 15px;
|
| 26 |
padding: 20px;
|
| 27 |
+
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.6);
|
| 28 |
+
animation: fadeIn 1s ease-out;
|
| 29 |
}
|
| 30 |
|
| 31 |
/* Header styling */
|
|
|
|
| 38 |
}
|
| 39 |
|
| 40 |
header h1 {
|
| 41 |
+
font-size: 28px;
|
| 42 |
color: #e63946; /* Red title */
|
| 43 |
+
animation: slideInLeft 0.5s ease-out;
|
| 44 |
}
|
| 45 |
|
| 46 |
header .balance-display {
|
|
|
|
| 55 |
border-radius: 5px;
|
| 56 |
cursor: pointer;
|
| 57 |
font-size: 16px;
|
| 58 |
+
transition: background 0.3s ease, transform 0.3s ease;
|
| 59 |
}
|
| 60 |
|
| 61 |
#back-btn:hover {
|
| 62 |
background: #a62639;
|
| 63 |
+
transform: scale(1.1);
|
| 64 |
}
|
| 65 |
|
| 66 |
/* Game screen styling */
|
| 67 |
.game-screen {
|
| 68 |
position: relative;
|
| 69 |
width: 100%;
|
| 70 |
+
flex-grow: 1;
|
| 71 |
border: 2px solid #e63946;
|
| 72 |
border-radius: 10px;
|
| 73 |
overflow: hidden;
|
|
|
|
| 75 |
display: flex;
|
| 76 |
align-items: flex-end;
|
| 77 |
justify-content: flex-start;
|
| 78 |
+
animation: slideInUp 1s ease-out;
|
| 79 |
}
|
| 80 |
|
| 81 |
.sky-video {
|
|
|
|
| 86 |
height: 100%;
|
| 87 |
object-fit: cover;
|
| 88 |
z-index: -1;
|
| 89 |
+
filter: brightness(0.8);
|
| 90 |
}
|
| 91 |
|
| 92 |
.plane {
|
|
|
|
| 95 |
left: 10px;
|
| 96 |
width: 60px;
|
| 97 |
height: auto;
|
| 98 |
+
transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
.plane:hover {
|
| 102 |
+
transform: scale(1.2);
|
| 103 |
}
|
| 104 |
|
| 105 |
.multiplier {
|
|
|
|
| 119 |
display: flex;
|
| 120 |
flex-direction: column;
|
| 121 |
align-items: center;
|
| 122 |
+
gap: 10px;
|
| 123 |
}
|
| 124 |
|
| 125 |
.controls input {
|
| 126 |
width: 80%;
|
| 127 |
padding: 10px;
|
|
|
|
| 128 |
border: 2px solid #e63946;
|
| 129 |
border-radius: 5px;
|
| 130 |
background: #202124;
|
| 131 |
color: #ffffff;
|
| 132 |
font-size: 16px;
|
| 133 |
+
animation: fadeIn 0.8s ease-out;
|
| 134 |
}
|
| 135 |
|
| 136 |
.buttons-group {
|
|
|
|
| 147 |
border-radius: 5px;
|
| 148 |
font-size: 16px;
|
| 149 |
cursor: pointer;
|
| 150 |
+
transition: background 0.3s ease, transform 0.3s ease;
|
| 151 |
}
|
| 152 |
|
| 153 |
.controls #stake-btn {
|
|
|
|
| 167 |
|
| 168 |
.controls button:hover:not(:disabled) {
|
| 169 |
background: #a62639;
|
| 170 |
+
transform: translateY(-5px);
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
/* Animations */
|
| 174 |
+
@keyframes fadeIn {
|
| 175 |
+
from {
|
| 176 |
+
opacity: 0;
|
| 177 |
+
}
|
| 178 |
+
to {
|
| 179 |
+
opacity: 1;
|
| 180 |
+
}
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
@keyframes slideInLeft {
|
| 184 |
+
from {
|
| 185 |
+
transform: translateX(-100%);
|
| 186 |
+
}
|
| 187 |
+
to {
|
| 188 |
+
transform: translateX(0);
|
| 189 |
+
}
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
@keyframes slideInUp {
|
| 193 |
+
from {
|
| 194 |
+
transform: translateY(100%);
|
| 195 |
+
}
|
| 196 |
+
to {
|
| 197 |
+
transform: translateY(0);
|
| 198 |
+
}
|
| 199 |
}
|
| 200 |
|
| 201 |
/* Responsive design */
|
|
|
|
| 205 |
padding: 10px;
|
| 206 |
}
|
| 207 |
|
| 208 |
+
header h1 {
|
| 209 |
+
font-size: 20px;
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
.controls input,
|
| 213 |
.controls button {
|
| 214 |
width: 100%;
|
| 215 |
}
|
| 216 |
+
}
|