body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e0e0e0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#controls {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#controls h1 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.input-group,.info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#velocityInput {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

button {
    padding: 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: background-color 0.3s ease;
}

#fireButton {
    background-color: #28a745; /* Verde Sucesso */
}

#fireButton:hover {
    background-color: #218838;
}

#fireButton:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#resetButton {
    background-color: #007bff; /* Azul Primário */
}

#resetButton:hover {
    background-color: #0069d9;
}

#gameCanvas {
    border: 2px solid #333;
    background-color: #f0f8ff;
    border-radius: 5px;
}

#messageDisplay {
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    min-height: 20px;
}

.angle-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#angleSlider {
    width: 100%;
}

/* Adicione no final de style.css */

.input-with-unit {
    display: flex;
    align-items: center; /* Alinha o input e o texto verticalmente */
    gap: 8px; /* Adiciona um espaço entre o input e o texto */
}

.input-with-unit input {
    flex-grow: 1; /* Faz o input ocupar o espaço disponível */
    width: 0; /* Necessário para o flex-grow funcionar corretamente em alguns navegadores */
}

.input-with-unit span {
    color: #555; /* Cor do texto da unidade */
    font-size: 0.9em;
}

/* Adicione no final de style.css */

.measure-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.measure-group p {
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.measure-buttons {
    display: flex;
    gap: 8px;
}

.measure-buttons button {
    flex-grow: 1;
    background-color: #6c757d; /* Cinza */
    font-size: 12px;
    padding: 8px;
}

.measure-buttons button:hover {
    background-color: #5a6268;
}

#clearMeasuresBtn {
    background-color: #ffc107; /* Amarelo */
    color: #212529;
}

#clearMeasuresBtn:hover {
    background-color: #e0a800;
}

.footer {
    text-align: center;
    padding: 12px 0;
}
