.smallfonts{
    font-size: 0.8em;
}
.main{
    max-width: 560px;
    margin: 50px auto;
    background-color: #fff;
    padding: 40px;
    -webkit-box-shadow: 0 2px 6px 0 #aaa;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    -moz-box-shadow:    0 2px 6px 0 #aaa;  /* Firefox 3.5 - 3.6 */
    box-shadow:         0 2px 6px 0 #aaa;  /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}
#hoplasia{
    -webkit-transition: color 300ms ease-out;
    -moz-transition: color 300ms ease-out;
    -o-transition: color 300ms ease-out;
    transition: color 300ms ease-out;
}
#hoplasia:hover{
    color: #24a777;
}
.calc{
  margin: 0 auto;
  font-size: 20px;
  max-width: 300px;
}
input{
  display: block;
  padding: 10px 2%;
  line-height: 1;
  width: 100px;
  text-align: center;
  border: none;
  outline: 3px solid #ccc;
  transition: outline 300ms ease-out;
}
input,
#taxamount{
  font-size: 22px;
}
input:focus,
input.highlight{
    outline: 3px solid #24a777;
}
.line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
}
.line:last-child{
    padding-top: 30px;
}
.line label{
    width: 180px;
    text-align: right;
}
hr{
   background-color: #ccc;
   border: none;
   height: 2px;
}

@media all and (max-width: 580px){
    .calc{
        max-width: 240px;
    }
    input{
        width: 80px; 
    } 
    input,
    #taxamount{
        font-size: 16px;
    }
    .line label{
        font-size: 15px;
        width: 140px;
    }
}