Uo / styles.css
yyy
Upload folder using huggingface_hub
063aef8 verified
Raw
History Blame Contribute Delete
2.08 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
color: white;
min-height: 100vh;
overflow: hidden;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: rgba(0, 0, 0, 0.7);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
header h1 {
font-size: 1.8rem;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
header a {
color: #ffcc00;
text-decoration: none;
font-weight: bold;
padding: 0.5rem 1rem;
border: 2px solid #ffcc00;
border-radius: 4px;
transition: all 0.3s ease;
}
header a:hover {
background: #ffcc00;
color: #1a2a6c;
}
.container {
display: flex;
height: calc(100vh - 120px);
padding: 1rem;
gap: 1rem;
}
.controls {
width: 250px;
background: rgba(0, 0, 0, 0.7);
border-radius: 10px;
padding: 1.5rem;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.control-group, .stats {
background: rgba(30, 30, 50, 0.8);
padding: 1rem;
border-radius: 8px;
}
.control-group h2, .stats h2 {
margin-bottom: 1rem;
color: #ffcc00;
text-align: center;
}
.control-group p, .stats p {
margin: 0.5rem 0;
line-height: 1.4;
}
.stats p {
font-size: 1.1rem;
}
.canvas-container {
flex: 1;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
background: #0a0a1a;
}
#gameCanvas {
width: 100%;
height: 100%;
display: block;
}
footer {
text-align: center;
padding: 1rem;
background: rgba(0, 0, 0, 0.8);
color: #aaa;
font-size: 0.9rem;
}
/* Responsive design */
@media (max-width: 768px) {
.container {
flex-direction: column;
height: auto;
}
.controls {
width: 100%;
}
header {
flex-direction: column;
gap: 1rem;
}
}