* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: white;
    background-color: #111827;
}

#container {
    width: 550px;
    margin: 0 auto;
}

/* Header */

#title-container {
    width: 550px;
    min-height: 285px;
    padding: 33px 20px 25px;
    background-color: #6943FF;
    text-align: center;
}

h1 {
    margin: 0 0 25px;
    font-size: 27px;
    line-height: 38px;
    font-weight: 700;
    color: #ffffff;
}

#input-value {
    width: 117px;
    height: 83px;
    padding: 0 10px;
    border: 2px solid #B295FF;
    border-radius: 5px;
    outline: none;

    background-color: #6943FF;
    color: #ffffff;

    font-family: inherit;
    font-size: 60px;
    font-weight: 700;
    text-align: center;

    transition: width 0.15s ease, border-color 0.2s ease;
}

/* Remove number input arrows */

input[type="number"] {
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#input-value:focus {
    border-color: #ffffff;
}

/* Convert button */

#convert-btn {
    width: 117px;
    height: 42px;
    margin-top: 25px;

    border: none;
    border-radius: 5px;

    background-color: #ffffff;
    color: #3D3D3D;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: transform 0.1s ease, background-color 0.2s ease;
}

#convert-btn:hover {
    background-color: #f1f1f1;
}

#convert-btn:active {
    transform: translateY(2px);
}

/* Conversion results */

#measurements-container {
    width: 550px;
    min-height: 444px;
    padding: 25px 0;
    background-color: #1F2937;
}

.all-measurement {
    width: 500px;
    margin: 25px auto 0;
    padding: 15px 15px 10px;

    background-color: #273549;
    text-align: center;

    color: #CCC1FF;
}

.all-measurement:first-child {
    margin-top: 0;
}

.all-measurement h2 {
    margin: 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
}

.conversions {
    margin: 20px 0 10px;

    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/* Responsive */

@media (max-width: 600px) {
    #container,
    #title-container,
    #measurements-container {
        width: 100%;
    }

    .all-measurement {
        width: calc(100% - 32px);
    }
}

