/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fc;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Heading styling */
h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Label and input styling */
label {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    display: inline-block;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Button styling */
button {
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

/* Flexbox container for the results */
.results {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Column for each result */
.result-column {
    width: 23%; /* Each column takes up 1/4th of the space */
    text-align: left;
}

.results p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    h1 {
        font-size: 22px;
    }

    input[type="number"], button {
        font-size: 14px;
        padding: 10px;
    }

    .results p {
        font-size: 16px;
    }

    /* Adjust layout for smaller screens */
    .results {
        flex-direction: column;
        align-items: center;
    }

    .result-column {
        width: 100%; /* Stack the columns on smaller screens */
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 18px;
    }

    input[type="number"], button {
        font-size: 12px;
        padding: 8px;
    }

    .results p {
        font-size: 14px;
    }
}
