* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #111;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#ui {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10;
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
}

#ui label {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.carCountInput {
    width: 60px;
    padding: 4px 8px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}

.carCountInput::-webkit-outer-spin-button,
.carCountInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.carCountInput[type=number] {
    -moz-appearance: textfield;
}

.carCountInput:focus {
    outline: none;
    border-color: #666;
    background: #2a2a2a;
}

#verticalButtons {
    position: fixed;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 10;
}

button {
    border: 1px solid #444;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 0;
    cursor: pointer;
    background: #222;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
}

button:hover {
    background: #333;
    border-color: #666;
}

button:active {
    background: #2a2a2a;
}

#networkCanvas {
    background: #000;
    border: 1px solid #222;
}

#carCanvas {
    background: #ddd;
    border: 1px solid #999;
}