sto-k-odnomu/src/components/Game.css

198 lines
3.5 KiB
CSS
Raw Normal View History

2025-12-31 16:53:26 +00:00
.game {
width: 100%;
max-width: 1400px;
margin: 0 auto;
}
2025-12-31 17:05:48 +00:00
.game-header {
margin-bottom: 30px;
display: flex;
flex-direction: column;
gap: 15px;
align-items: center;
}
.manage-players-button {
background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
color: white;
border: none;
padding: 12px 30px;
font-size: 1rem;
font-weight: bold;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
white-space: nowrap;
}
.manage-players-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5);
}
.manage-players-button:active {
transform: translateY(0);
}
2025-12-31 16:53:26 +00:00
.game-over {
display: flex;
justify-content: center;
align-items: center;
min-height: 400px;
padding: 40px;
}
.game-over-content {
text-align: center;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 60px 40px;
border: 2px solid rgba(255, 215, 0, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.game-over-title {
font-size: 5rem;
color: #ffd700;
margin-bottom: 30px;
text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}
.game-over-score {
font-size: 3.5rem;
color: #fff;
margin-bottom: 40px;
font-weight: bold;
}
.restart-button {
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
color: white;
border: none;
padding: 25px 60px;
font-size: 2rem;
border-radius: 35px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.restart-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}
.restart-button:active {
transform: translateY(0);
}
2025-12-31 17:05:48 +00:00
.no-players-message {
text-align: center;
padding: 60px 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
border: 2px solid rgba(255, 215, 0, 0.3);
}
.no-players-message p {
color: #fff;
font-size: 1.5rem;
margin: 0;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.final-scores {
width: 100%;
margin: 30px 0;
}
.final-scores-title {
color: #fff;
font-size: 2rem;
margin-bottom: 20px;
text-align: center;
}
.final-score-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 25px;
margin: 10px 0;
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
border: 2px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.final-score-item.final-score-winner {
background: rgba(255, 215, 0, 0.2);
border-color: #ffd700;
box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}
.final-score-name {
color: #fff;
font-size: 1.5rem;
font-weight: 500;
}
.final-score-value {
color: #ffd700;
font-size: 1.5rem;
font-weight: bold;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.final-score-winner .final-score-name,
.final-score-winner .final-score-value {
color: #ffd700;
text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}
2025-12-31 16:53:26 +00:00
@media (max-width: 768px) {
.game-over-title {
font-size: 2rem;
}
.game-over-score {
font-size: 1.5rem;
}
.restart-button {
font-size: 1.1rem;
padding: 12px 30px;
}
2025-12-31 17:05:48 +00:00
.no-players-message p {
font-size: 1.2rem;
}
.final-scores-title {
font-size: 1.5rem;
}
.final-score-item {
padding: 12px 20px;
}
.final-score-name,
.final-score-value {
font-size: 1.2rem;
}
.manage-players-button {
font-size: 0.9rem;
padding: 10px 20px;
}
.game-header {
margin-bottom: 20px;
}
2025-12-31 16:53:26 +00:00
}