h3 {
    margin-bottom: 20px;
    color: #333;
}
.labels {
    display: flex;
    justify-content: space-around;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
    font-size: 16px;
}
.labels span {
    flex: 1;
    text-align: center;
}
.input-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
}
.input-group input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 120px;
    text-align: center;
    -moz-appearance: textfield;
}
.input-group input::-webkit-outer-spin-button,
.input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.result-box {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 120px;
    text-align: center;
    background-color: #e9f7e9;
    color: #28a745;
    font-weight: bold;
}
.total-result-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.total-result-box {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px;
    text-align: center;
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
}
button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px 5px;
}
button:hover {
    background-color: #0056b3;
}
@media (max-width: 768px) {
    .labels {
        font-size: 9px;
    }
    .input-group {
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
    }
    .input-group input,
    .result-box {
        width: 60px;
        font-size: 10px;
    }
    button {
        font-size: 12px;
        padding: 6px 10px;
    }
    .total-result-box {
        width: 120px;
        font-size: 12px;
    }
}