Main/resources/[jobs]/[police]/gs_drone/ui/style.css
2025-06-07 08:51:21 +02:00

299 lines
4.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
body {
font-family: 'Inter', sans-serif;
background-color: transparent;
overflow: hidden;
width: 100vw;
height: 100vh;
margin: 0;
user-select: none;
}
.hud-container {
position: relative;
width: 100%;
height: 100%;
}
.data-panel {
background-color: rgba(15, 23, 42, 0.8);
border-radius: 12px;
padding: 16px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.data-value {
font-weight: 500;
color: #f8fafc;
font-size: 20px;
white-space: nowrap;
}
.data-label {
font-weight: 300;
color: #94a3b8;
font-size: 14px;
margin-bottom: 4px;
}
.battery-low {
color: #ef4444;
}
.battery-medium {
color: #f59e0b;
}
.battery-high {
color: #10b981;
}
.signal-low {
color: #ef4444;
}
.signal-medium {
color: #f59e0b;
}
.signal-high {
color: #10b981;
}
.btn {
font-family: 'Inter', sans-serif;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 10px 16px;
color: #f8fafc;
font-weight: 400;
transition: all 0.2s;
cursor: pointer;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn:hover {
background-color: rgba(30, 41, 59, 0.8);
transform: translateY(-1px);
}
.btn-danger {
background-color: rgba(239, 68, 68, 0.8);
border-color: rgba(239, 68, 68, 0.9);
}
.btn-danger:hover {
background-color: rgba(239, 68, 68, 0.9);
}
.btn-primary {
background-color: rgba(59, 130, 246, 0.8);
border-color: rgba(59, 130, 246, 0.9);
}
.btn-primary:hover {
background-color: rgba(59, 130, 246, 0.9);
}
.btn-secondary {
background-color: rgba(100, 116, 139, 0.8);
border-color: rgba(100, 116, 139, 0.9);
}
.btn-secondary:hover {
background-color: rgba(100, 116, 139, 0.9);
}
.instructions-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(15, 23, 42, 0.9);
display: none;
z-index: 100;
align-items: center;
justify-content: center;
}
.instructions-content {
background-color: rgba(30, 41, 59, 0.9);
border-radius: 16px;
padding: 32px;
width: 350px;
border: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.close-btn {
position: absolute;
top: 24px;
right: 24px;
cursor: pointer;
}
.compass-wrapper {
background-color: #bbb;
padding: 5px;
border-radius: 50%;
background-color: rgba(15, 23, 42, 0.8);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.compass {
width: 120px;
height: 120px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.compass-arrow {
position: absolute;
top: 50%;
left: 50%;
transform-origin: left center;
height: 2px;
width: 30px;
background-color: #f8fafc;
}
.compass-marker {
position: absolute;
width: 2px;
height: 10px;
background-color: rgba(255, 255, 255, 0.5);
top: 0;
left: 50%;
transform: translateX(-50%);
}
.compass-label {
position: absolute;
color: rgba(255, 255, 255, 0.7);
font-size: 12px;
transform: translate(-50%, -50%);
}
.absolute {
position: absolute;
}
.bottom-right {
bottom: 2rem;
right: 2rem;
}
.top-left {
top: 2rem;
left: 2rem;
width: 12rem;
}
.top-right {
top: 2rem;
right: 2rem;
width: 12rem;
}
.top-center {
top: 2rem;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
}
.bottom-center {
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 1rem;
}
.panel-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.panel-row:last-child {
margin-bottom: 0;
}
.unit {
font-size: 0.75rem;
color: #94a3b8;
margin-left: 4px;
}
.instructions-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 1.5rem;
}
.instruction-list {
list-style: none;
padding: 0;
margin: 0;
color: #cbd5e1;
}
.instruction-list li {
margin-bottom: 0.25rem;
margin-top: 0.25rem;
}
.key {
border-radius: 4px;
font-size: 14px;
color: #f8fafc;
display: inline-block;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
background-color: rgb(51 65 85);
border-radius: 0.25rem;
margin-right: 0.5rem;
}
.title {
font-size: 1.5rem;
font-weight: 500;
color: white;
margin-bottom: 1.5rem;
margin-top: 0;
}
.section-heading {
font-size: 1.125rem;
font-weight: 500;
color: #e2e8f0;
margin-bottom: 0.75rem;
margin-top: 1.5rem;
}
.mr {
margin-right: 0.5rem;
}
.close-icon {
font-size: 1.5rem;
color: #94a3b8;
}
.close-icon:hover {
color: white;
}