*,*::after, *::before {
    box-sizing: border-box;
}

@import url('https://rsms.me/inter/inter.css');
html { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) 
{
  html { font-family: 'Inter var', sans-serif; }
}

:root {
    margin: 0;
    padding: 0;
       }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter var', sans-serif;
    font-size: 16px;
    background-color: black;
    max-width: 1000px;
}

h1 {
    font-size: 28px;
    color: #ffffff;
    justify-self: center;
    margin-bottom: 2rem;
        }


h4 {
color: hsla(250, 19%, 40%, 1);
font-weight: bold;
text-align: center;
font-size: 20px;
}

h5 {
color: #000;
font-weight: 400;
text-align: center;
font-size: 16px;
}

.back {
 grid-column: 1  2;
    grid-row: 1  2;
 background-color: rgba(90, 84, 91, 0.959);
    font-size: 20px;
    border-radius: 10px;
    margin: 5px;
    height: 3rem;
    width: 10rem;
    color: #fff;
    padding: 0.5rem;
    text-align: center;
     cursor: pointer;
}

.grid-container {
padding: 0;
max-width: 800px;

max-height: 100vh;
background-color: hsla(0, 0%, 96%, 1);

margin: 0 auto;
text-align: center;
}



.boxitem {
display: flex;
flex-direction: column;
background-color: hsla(252, 100%, 63%, 1);
/* align-items: center; */
justify-content: center;
margin: 0 auto;
padding: 5px;
}

.boxitem2 {
background-color: #ffffff;
padding: 5px;
margin: 10px;
}

.inputBox {
    font-size: 58px;
    font-weight: 800;
    background-color: hsla(252, 100%, 63%, 1);
    color: #ffffff;
    border: 1px solid white;
    text-align: center;
    margin: 0 auto;
  max-width: 150px;
    }


#btn-convert {
width: 7rem;
height: 2.5rem;
align-self: center;
margin: 2rem 0;
font-size: 16px;
}

@media (max-width: 400px)  {
h1{
line-height: 1.2em;
}
h4 {
    line-height: .8em;

}

h5 {

    line-height: 1em;
}
#btn-convert {
    width: 6rem;
    height: 2rem;
    align-self: center;
    margin: 1rem 0;
    font-size: 16px;
    }

}