
html {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #314755, #26a0da); 
}

.calculator {
  background: white;
  width: 400px;
  border-radius: 12px;
  box-shadow: 0px 16px 30px -8px rgb(0 0 0 /50%);
}

.calculator-display{
  background: black;
  color: white;
  display: flex; 
  align-items: center;
  justify-content: flex-end;
  border-radius: 10px 10px 0 0;
}

.calculator-display h1 {
  margin: 0;
  padding: 25px;
  font-size: 45px;
  font-family: 'Lucida Console', Courier;

  overflow-x: auto;
}


::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
} 


.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  
  gap: 10px;
  padding: 10px;
  
}

button{
  min-height: 50px;
  font-size: 20px;
  font-weight: 100;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: rgb(221, 221, 221);
}

button:hover {
  filter:brightness(105%);
}


button:active{
  transform: translateY(1px);
}
button:focus{
  outline: none;
}

.operator {
  background-color: slategrey;
  color: whitesmoke;
  font-size: 30px;
}

.clear {
  background-color: rgb(179, 6, 6);
  color: white;
}

.clear:hover {
  filter: brightness(80%);
}

.equal-sign {
  grid-column: -2;
  grid-row: 2/ span 4;
  background-color: #BADA55;
}

@media screen  and (max-width:600px){
  .calculator {
    width: 95%;
  }
}