Initial commit.
This commit is contained in:
@@ -0,0 +1,151 @@
|
||||
:root {
|
||||
--bg-dark: #1a1a1a;
|
||||
--bg-medium: #2d2d2d;
|
||||
--bg-light: #3d3d3d;
|
||||
--text-color: #e0e0e0;
|
||||
--border-color: #555;
|
||||
--primary-color: #4a90e2;
|
||||
--success-color: #5cb85c;
|
||||
--danger-color: #d9534f;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Courier New', monospace;
|
||||
background: var(--bg-dark);
|
||||
color: var(--text-color);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#game-container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#gameCanvas {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Login Screen */
|
||||
login-screen {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.95);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
/* Stats Display */
|
||||
stats-display {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
background: var(--bg-medium);
|
||||
border: 2px solid var(--border-color);
|
||||
padding: 15px;
|
||||
min-width: 250px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
/* Building Toolbox */
|
||||
building-toolbox {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 120px;
|
||||
background: var(--bg-medium);
|
||||
border: 2px solid var(--border-color);
|
||||
padding: 10px;
|
||||
width: 250px;
|
||||
max-height: calc(100vh - 130px);
|
||||
overflow-y: auto;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
/* Chat Box */
|
||||
chat-box {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 10px;
|
||||
width: 400px;
|
||||
height: 200px;
|
||||
background: black;
|
||||
border: 2px solid var(--border-color);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
/* Context Menu */
|
||||
context-menu {
|
||||
position: absolute;
|
||||
background: var(--bg-medium);
|
||||
border: 2px solid var(--border-color);
|
||||
padding: 5px;
|
||||
min-width: 150px;
|
||||
display: none;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
/* Common Styles */
|
||||
.button {
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 8px 16px;
|
||||
cursor: pointer;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.button:disabled {
|
||||
background: var(--bg-light);
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
background: var(--bg-dark);
|
||||
border: 1px solid var(--border-color);
|
||||
color: var(--text-color);
|
||||
padding: 8px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
input[type="text"]:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--bg-dark);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--border-color);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #666;
|
||||
}
|
||||
Reference in New Issue
Block a user