* {
    margin: 0;
    padding: 0;
     box-sizing: border-box;
}

body {
    font-size: 100%;
  }

  img {
    display: block;
    height: auto;
    max-width: 100%;
  }

  .container {
    width: 100%;
    height: 100vh;
    background: #4f818f;
    display: flex;
    align-items: center;
    justify-content: center;

  }

  .calculator {
    background: #3a4452;
    padding: 1.25rem;
    border-radius: 0.625rem;

  }

  .calculator form input {
    border: 0;
    outline: 0;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.625rem;
    box-shadow: -0.5rem 0.5rem 0.938rem rgba(255, 255, 255, 0.1), 0.313rem 0.313rem 0.938rem rgba(0, 0, 0, 0.2);
    background: transparent;
    font-size: 1.25rem;
    color: white;
    cursor: pointer;
    margin: 0.625rem;
  }

  form .display {
    display: flex;
    justify-content: flex-end;
    margin: 1.25rem 0;
  }


  form .display input {
    text-align: right;
    flex: 1;
    font-size: 2.813rem;
    box-shadow: none;
    background: #ffffff;
    color: #000000;
    padding-right: 0.5rem;
  }

  form input.equal {
    width: 9.063rem;

  }

  form input[type="button"]:hover {
    animation-name: hoverIncrease;
    animation-duration: 0.5s;

  }

  form input.operator {
    color: #000000;
    background-color: #dad6d6;

  }

form input.operator-red {
    color: #fff;
    background-color: #bb3838;

}

form input.operator-orange {
  color: #000000;
  background-color: #cf8b0c;

}

@keyframes hoverIncrease {
    from {transform: scale(1);}
    to {transform: scale(1.08);}
}

@media screen and (max-width: 480px){
 
  
  .calculator {
    padding: 1rem;
  }

  .calculator form input {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
    margin: 0.2rem;
  }

  form .display {
    margin: 1rem 0;
  }


  form .display input {
    font-size: 1.5rem;

  }

  form input.equal {
    width: 6.875rem;

  }

}

}
