/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #2d3436;
}

/* Form Container */
form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    transition: transform 0.3s ease;}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e272e;
    line-height: 1.2;
}

/* Number Input */#input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1.1rem;    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

/* Radio Buttons & Labels */
input[type="radio"] {    display: none; /* Hide default radio */
}

label {
    display: inline-block;
    width: 100%;
    padding: 12px;
    margin-bottom: 0.8rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

/* Radio Selection Logic via CSS */
input[type="radio"]:checked + label {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

label:hover {
    background-color: #f8f9fa;
    border-color: #4a90e2;
}

/* Button Styling */
button {
    width: 100%;
    background: #2d3436;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: #000000;    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.98);
}/* Display Result */
#Display {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00b894;
    min-height: 1.5rem;
    word-break: break-word;
}

/* Clean up <br> spacing if needed */
br {
    display: none;
}/* Responsive Adjustments */
@media (max-width: 480px) {
    form {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.25rem;
    }

    #input, label, button {
        padding: 10px;
    }
}