Spaces:
Running
Running
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body, html { | |
width: 100%; | |
height: 100%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
background-color: #000; | |
overflow: hidden; | |
font-family: 'Arial', sans-serif; | |
} | |
.game-container { | |
position: relative; | |
width: 100%; | |
max-width: 800px; | |
height: 100%; | |
max-height: 600px; | |
border: 3px solid #fff; | |
border-radius: 25px; | |
background: linear-gradient(135deg, #000 0%, #111 100%); | |
} | |
#game-area { | |
position: relative; | |
width: 100%; | |
height: 100%; | |
max-width: 800px; | |
max-height: 600px; | |
padding-left: 25px; | |
overflow: hidden; | |
} | |
.player { | |
position: absolute; | |
bottom: 10px; | |
left: 50%; | |
width: 100px; | |
height: 20px; | |
background-color: #fff; | |
transform: translateX(-50%); | |
border-radius: 20px; | |
box-shadow: 0 0 10px 2px #fff; | |
transition: left 0.1s ease; /* Плавное движение */ | |
} | |
.orb { | |
position: absolute; | |
width: 30px; | |
height: 30px; | |
border-radius: 50%; | |
background: radial-gradient(circle, #ff0000 0%, #cc0000 100%); | |
box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5); | |
} | |
.bonus { | |
position: absolute; | |
width: 30px; | |
height: 30px; | |
border-radius: 50%; | |
background: radial-gradient(circle, #00ff00 0%, #00cc00 100%); | |
box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.5); | |
} | |
#score-board { | |
position: absolute; | |
top: 10px; | |
left: 10px; | |
color: #fff; | |
font-size: 24px; | |
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); | |
} | |
#pause-button { | |
position: absolute; | |
top: 10px; | |
right: 10px; | |
background-color: rgba(255, 255, 255, 0.3); | |
color: #fff; | |
font-size: 18px; | |
padding: 5px 10px; | |
border-radius: 20px; | |
cursor: pointer; | |
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); | |
} | |
#game-over { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
color: #fff; | |
font-size: 48px; | |
display: none; | |
text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); | |
} | |
#pause-menu { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
background-color: rgba(0, 0, 0, 0.8); | |
padding: 20px; | |
border-radius: 10px; | |
box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); | |
display: none; | |
text-align: center; | |
} | |
.resume-button { | |
background-color: #fff; | |
color: #000; | |
font-size: 24px; | |
padding: 10px 20px; | |
border: none; | |
border-radius: 20px; | |
cursor: pointer; | |
text-shadow: none; | |
} | |
.resume-button:hover { | |
background-color: #ddd; | |
} | |
/* Trail effect for orbs and bonuses */ | |
.trail { | |
position: absolute; | |
width: 30px; | |
height: 30px; | |
border-radius: 50%; | |
opacity: 0.5; | |
animation: fade-out 1s linear forwards; | |
} | |
@keyframes fade-out { | |
from { | |
opacity: 0.5; | |
} | |
to { | |
opacity: 0; | |
} | |
} | |
@media (max-width: 600px) { | |
#pause-button { | |
display: block; | |
} | |
.player { | |
width: 60px; | |
height: 12px; | |
} | |
.orb, .bonus, .trail { | |
width: 20px; | |
height: 20px; | |
} | |
#score-board { | |
font-size: 18px; | |
} | |
#game-over { | |
font-size: 36px; | |
} | |
.resume-button { | |
font-size: 20px; | |
padding: 10px 15px; | |
} | |
} | |