* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 20px;
}

.input-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .input-group {
        grid-template-columns: 1fr; /* Stack inputs vertically on small screens */
    }

    .input-group input,
    .input-group select,
    .input-group button {
        width: 100%; /* Full width inputs and buttons */
    }

    .buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

    .buttons button {
        width: 100%; /* Full width buttons */
        margin: 5px 0; /* Adjust margin for stacked buttons */
    }

    .footer {
        position: relative; /* Change footer position for better mobile layout */
        bottom: auto;
        margin-top: 20px;
    }
}

input, select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

button:hover {
    background-color: #1557b0;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f0fe;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

.buttons {
    text-align: center;
    margin-top: 20px;
}

.footer {
    text-align: center;
    padding: 15px 0;
    position: absolute;
    bottom: 10px;
    width: 100%;
    left: 0;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #1557b0;
    text-decoration: underline;
}