Spaces:
Running
Running
File size: 3,764 Bytes
d60d661 3018fb3 7f64cb0 d60d661 aae2c9c 3018fb3 cf3dae3 d60d661 7f64cb0 d60d661 7f64cb0 1ed23fd 1fd2082 7f64cb0 1fd2082 3018fb3 cf3dae3 d60d661 7f64cb0 3018fb3 d60d661 7f64cb0 1fd2082 7f64cb0 3018fb3 d60d661 aae2c9c 3018fb3 d60d661 7f64cb0 cf3dae3 7f64cb0 cf3dae3 aae2c9c cf3dae3 1fd2082 cf3dae3 22dddc0 cf3dae3 d60d661 5afa95e 7f64cb0 eb4cfea 7f64cb0 5afa95e 7f64cb0 cf3dae3 7f64cb0 fa90def aae2c9c fa90def 7f64cb0 d60d661 7f64cb0 d60d661 7f64cb0 22dddc0 1fd2082 d60d661 aae2c9c d60d661 7f64cb0 d60d661 7f64cb0 1fd2082 d60d661 7f64cb0 d60d661 7f64cb0 1ed23fd 7f64cb0 d60d661 7f64cb0 d60d661 7f64cb0 d60d661 aae2c9c 1fd2082 d60d661 7f64cb0 d60d661 cf3dae3 7f64cb0 d60d661 7f64cb0 aae2c9c d60d661 1fd2082 d60d661 7f64cb0 d60d661 7f64cb0 d60d661 cf3dae3 1fd2082 d60d661 cf3dae3 7f64cb0 aae2c9c 7f64cb0 aae2c9c 7f64cb0 aae2c9c d60d661 aae2c9c 7f64cb0 d60d661 fa90def | 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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | /* General styles */
body {
font-family: Arial, sans-serif;
background: #1a1a1a;
color: #ffffff;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
/* Container styling */
.container {
width: 95%;
max-width: 600px;
display: flex;
flex-direction: column;
align-items: center;
background: #2c2c2c;
border: 2px solid #444;
border-radius: 15px;
padding: 15px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Header styling */
header {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
header h1 {
font-size: 24px;
color: #e63946;
text-align: center;
animation: bounce 1.5s infinite;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
header .balance-display {
font-size: 14px;
}
/* Button styling */
#back-btn {
background: #e63946;
color: #ffffff;
padding: 8px 15px;
border: none;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease;
}
#back-btn:hover {
background: #a62639;
transform: scale(1.1);
}
/* Game screen styling */
.game-screen {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
border: 2px solid #e63946;
border-radius: 10px;
overflow: hidden;
margin-bottom: 15px;
display: flex;
align-items: flex-end;
justify-content: flex-start;
background: #3a3a3a;
}
/* Sky image styling */
.sky-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}
/* Adjusted plane position */
.plane {
position: absolute;
bottom: 20px;
left: 10px;
width: 50px;
height: auto;
transition: transform 0.2s ease-in-out, left 0.4s ease-in-out;
}
.plane:hover {
transform: scale(1.1);
}
/* Multiplier styling */
.multiplier {
position: absolute;
top: 5px;
left: 5px;
background: rgba(0, 0, 0, 0.7);
color: #ffffff;
padding: 8px 12px;
border-radius: 8px;
font-size: 14px;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0%, 100% {
background: rgba(0, 0, 0, 0.7);
}
50% {
background: rgba(0, 0, 0, 0.9);
}
}
/* Controls styling */
.controls {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.controls input {
width: 90%;
padding: 10px;
border: 2px solid #e63946;
border-radius: 8px;
background: #202124;
color: #ffffff;
font-size: 14px;
transition: box-shadow 0.3s ease;
}
.controls input:focus {
outline: none;
box-shadow: 0 0 8px #e63946;
}
.buttons-group {
display: flex;
gap: 8px;
width: 100%;
justify-content: center;
}
.controls button {
flex: 1;
padding: 8px;
border: none;
border-radius: 8px;
font-size: 14px;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease;
}
.controls #stake-btn {
background: #e63946;
color: #ffffff;
}
.controls #cashout-btn {
background: #444;
color: #ffffff;
}
.controls button:disabled {
background: #555;
cursor: not-allowed;
}
.controls button:hover:not(:disabled) {
background: #a62639;
transform: scale(1.05);
}
/* Responsive design */
@media (max-width: 480px) {
header h1 {
font-size: 20px;
}
.container {
padding: 12px;
border-radius: 10px;
}
.controls input {
font-size: 12px;
padding: 8px;
}
.controls button {
font-size: 12px;
padding: 6px;
}
.multiplier {
font-size: 12px;
padding: 6px 10px;
}
} |