body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

input {
    width: 50px;
    padding: 5px;
    margin-right: 10px;
}

button {
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

.result {
    margin-top: 20px;
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.result-label {
    font-size: 18px;
    flex-grow: 1; /* Allow label to grow to take available space */
    margin-right: 10px;
}

.result-checkbox {
    width: 50px; /* Fixed width for the checkbox column */
    text-align: right;
}

/* Larger checkbox size */
input[type="checkbox"] {
    transform: scale(1.3);
}

/* Responsive handling */
@media (max-width: 600px) {
    .result-row {
        flex-direction: row; /* Ensure horizontal layout on small screens */
        justify-content: space-between;
    }

    .result-label {
        font-size: 16px; /* Slightly smaller font for smaller screens */
    }

    .result-checkbox {
        width: auto; /* Allow checkbox to adjust to the screen size */
    }

    input[type="checkbox"] {
        margin-left: 10px; /* Add space on the left for small screens */
    }
}