/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Page ── */
body {
    min-height: 100vh;
    background-color: #0B3D91;   /* blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

form {
    background: white;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    max-width: 460px;
    height: 100%;
    max-height: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.input {
    font-size: 1.2rem;
}

label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #aac4e8;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="number"]:focus {
    border-color: #1a6fc4;
}

/* ── Buttons ── */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-right: 8px;
    transition: background-color 0.2s;
}

/* Convert button */
button {
    font-size: 1.1rem;    
}

button:first-of-type {
    background-color: #e0e0e0;
    color: #333;
}

button:first-of-type:hover {
    background-color: #c8c8c8;
}

/* Clear button */
button:last-of-type {
    background-color: #e0e0e0;
    color: #333;
}

button:last-of-type:hover {
    background-color: #c8c8c8;
}

/* ── Result text ── */
.result {
    margin-top: 14px;
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 1.4rem;   /* keeps layout stable when empty */
}

/* Back Button */
/* .back-button {
    position: fixed;
    margin-top: 600px;
    text-align: center;
}

.back-button a {
    display: inline-block;
    padding: 15px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.back-button a:hover {
    background: #555;
} */