132 lines
2.0 KiB
CSS
132 lines
2.0 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Arial', sans-serif;
|
|
background: #1a1a1a;
|
|
color: white;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#game-container {
|
|
position: relative;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
#game-canvas {
|
|
border: 2px solid #333;
|
|
background: #2a2a2a;
|
|
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
#game-ui {
|
|
position: absolute;
|
|
top: 20px;
|
|
width: 100%;
|
|
z-index: 10;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#score-board {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
padding: 15px 30px;
|
|
border-radius: 10px;
|
|
margin: 0 auto;
|
|
width: fit-content;
|
|
gap: 40px;
|
|
}
|
|
|
|
.team {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.team-name {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: #ccc;
|
|
}
|
|
|
|
.score {
|
|
font-size: 36px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
}
|
|
|
|
.time-display {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
#period {
|
|
font-size: 14px;
|
|
color: #ccc;
|
|
}
|
|
|
|
#clock {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
}
|
|
|
|
#game-stats {
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 20px;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
padding: 15px;
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#penalties {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#controls {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
display: flex;
|
|
gap: 10px;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
button {
|
|
padding: 10px 20px;
|
|
background: #4a90e2;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
button:hover {
|
|
background: #357abd;
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.penalty-box {
|
|
background: #ff4444;
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 3px;
|
|
margin: 2px;
|
|
font-size: 12px;
|
|
} |