*{ box-sizing: inherit; }

html { box-sizing: border-box; }

body {
  padding: 0;
  margin: 0;
  width: 100vw;
  background: #ecf0f3;
  font-family: 'Tilt Neon', sans-serif;
}

.container{
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.message{
  text-align: center;
}

.calculator {
  padding: 12px;
  border-radius: 8px;
  box-shadow: 12px 12px 20px #cbced1, -12px -12px 20px #ffffff;
}

.display #screen {
  width: 100%;
  height: 60px;
  font-size: 35px;
  outline: none;
  border: none;
  text-align: right;
  padding-right: 1rem;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: inset 5px 5px 8px rgba(16, 16, 16, 0.1), inset -5px -5px 8px #ffffff;
}

.btns {
  display: grid;
  grid-template-columns: repeat(6, auto);
  row-gap: 12px;
  column-gap: 12px;
  margin-top: 12px;
}

.btns button {
  width: 80px;
  height: 30px;
  font-size: 16px;
  border: none;
  outline: none;
  border-radius: 4px;
  box-shadow: 5px 5px 8px #00000020, -5px -5px 8px #ffffff;
  transition: 0.1s;
}
.btns button:hover {
  box-shadow: inset 5px 5px 8px rgba(16, 16, 16, 0.1), inset -5px -5px 8px #ffffff;
  background: #ffffff;
}

#eval {
  background: #33ccff;
  color: #ffffff;
  box-shadow: inset 5px 5px 8px #66d9ff, inset -5px -5px 8px #00ace6;
}
#eval:hover {
  box-shadow: inset 5px 5px 8px #00ace6, inset -5px -5px 8px #00ace6;
}

#ac {
  background: #33cc33;
  color: #ffffff;
}
#ac:hover {
  box-shadow: inset 5px 5px 8px #2eb82e, inset -5px -5px 8px #33cc33;
}

#ce {
  background: #ff3399;
  color: #ffffff;
}
#ce:hover {
  box-shadow: inset 5px 5px 8px #e60073, inset -5px -5px 8px #ff3399;
}

footer {
  background-color: #BC7AF9;
  color: #EEEEEE;
  text-align: center;
  padding: 10px;
  width: 100%;
}

@media only screen and (orientation: portrait) {
  .calculator {
    display: none;
  }
}

@media only screen and (orientation: landscape) {
  .message {
    display: none;
  }
}

@media (max-width: 950px){
  .display #screen {
    height: 45px;
    font-size: 25px;
  }
  .btns {
    row-gap: 8px;
    column-gap: 8px;
    margin-top:8px;
  }
  .btns button {
    width: 60px;
    height: 23px;
    font-size: 12px;
  }
  .btns button:hover {
    box-shadow: 5px 5px 8px #00000020, -5px -5px 8px #ffffff;
    background: #ecf0f3;
  }
  .btns button:active {
    box-shadow: inset 5px 5px 8px rgba(16, 16, 16, 0.1), inset -5px -5px 8px #ffffff;
    background: #ffffff;
  }
}

@media (max-width: 655px){
  .display #screen {
    height: 35px;
    font-size: 20px;
  }
  .btns {
    row-gap: 8px;
    column-gap: 8px;
    margin-top:8px;
  }
  .btns button {
    width: 45px;
    height: 18px;
    font-size: 8px;
  }
  .calculator {
    padding: 8px;
  }
}
