Files

206 lines
3.9 KiB
CSS
Raw Permalink Normal View History

/* Railtrack Pro - Main Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #ffffff;
overflow: hidden;
}
#app {
display: flex;
flex-direction: column;
height: 100vh;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
header h1 {
font-size: 1.8rem;
color: #fb5607;
text-shadow: 0 0 10px rgba(251, 86, 7, 0.5);
}
#controls {
display: flex;
gap: 10px;
}
button {
padding: 10px 20px;
border: none;
border-radius: 8px;
background: rgba(251, 86, 7, 0.3);
color: #ffffff;
cursor: pointer;
font-size: 1rem;
transition: all 0.3s ease;
border: 2px solid rgba(251, 86, 7, 0.5);
}
button:hover {
background: rgba(251, 86, 7, 0.6);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(251, 86, 7, 0.3);
}
button.active {
background: #fb5607;
box-shadow: 0 0 15px rgba(251, 86, 7, 0.7);
}
#viewport {
flex: 1;
position: relative;
cursor: crosshair;
}
#viewport canvas {
display: block;
}
#info-panel {
width: 250px;
background: rgba(0, 0, 0, 0.3);
padding: 15px;
margin: 10px;
border-radius: 10px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
#stats {
margin-bottom: 15px;
}
#stats h3 {
color: #fb5607;
margin-bottom: 5px;
}
#stats p {
font-size: 0.9rem;
color: #cccccc;
}
#selected-info {
padding-top: 15px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#selected-info h4 {
color: #fb5607;
margin-bottom: 10px;
}
#selected-info p {
font-size: 0.85rem;
color: #cccccc;
}
.tooltip {
position: absolute;
background: rgba(0, 0, 0, 0.8);
padding: 5px 10px;
border-radius: 5px;
pointer-events: none;
font-size: 0.85rem;
}
/* === Train Controls Section === */
#trainControls {
background: var(--panel-bg);
padding: 15px;
margin-top: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
#trainControls h3 {
color: var(--primary-color);
margin-bottom: 15px;
font-size: 1.1rem;
border-bottom: 2px solid var(--primary-color);
padding-bottom: 8px;
}
.train-btn {
display: block;
width: 100%;
padding: 12px;
margin-bottom: 10px;
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color-dark) 100%);
border: 2px solid var(--secondary-color);
color: white;
font-weight: bold;
border-radius: 6px;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
font-size: 0.9rem;
}
.train-btn:hover {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-dark) 100%);
border-color: var(--primary-color);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}
.train-btn:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}
#trainStatus {
background: rgba(255, 255, 255, 0.1);
padding: 12px;
margin-top: 12px;
border-radius: 6px;
font-size: 0.85rem;
border-left: 4px solid var(--primary-color);
}
#trainStatus p {
margin: 5px 0;
line-height: 1.5;
}
#trainStatus strong {
color: var(--primary-color);
}
/* Train animation indicator */
.train-moving-indicator {
display: inline-block;
width: 8px;
height: 8px;
background: #00ff00;
border-radius: 50%;
margin-right: 8px;
animation: blink 1s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
/* Train status colors */
.status-moving { color: #00ff00; }
.status-stopped { color: #ff0000; }
.status-reversing { color: #ff8800; }