
html {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: whitesmoke;
  background-color: #d7cce8;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM0 15c0 8.284 6.716 15 15 15 0-8.284-6.716-15-15-15zm30 0c0-8.284-6.716-15-15-15 0 8.284 6.716 15 15 15zm0 0c0 8.284-6.716 15-15 15 0-8.284 6.716-15 15-15z' fill='%23888888' fill-opacity='0.76' fill-rule='evenodd'/%3E%3C/svg%3E");}

.calculator{
  background: white;
  width: 400px;
  border-radius: 12px;
  box-shadow: 0 5px 30px -5px rgba(0, 0, 0, 0.6);


  
}

.calculator-display{
  background: black;
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
border-radius: 10px 10px 0 0 ;
}

/* display */

.calculator-display h1{
  margin: 0;
  padding: 25px;
  font-size: 45px;
  font-family: 'Lucia Console', sans-serif;
  font-weight: 100;
  overflow-x: auto ;
}
/* for custom sctoll bar */

::-webkit-scrollbar {
  width: 10px;
}


::-webkit-scrollbar-track {
  background: #f1f1f1;
}


::-webkit-scrollbar-thumb {
  background: #888;
}


::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* buttons */

.calculator-buttons{
  display: grid;
  grid-template-columns:  repeat(4,1fr);
  grid-gap:10px;
  padding: 10px;
}





button{
  min-height: 50px;
  font-size: 20px;
  font-weight: 100;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: rgb(199, 199, 199);
}


button:hover{
  filter: brightness(110%);

}

button:active{
  transform: translateY(1px);
}

button :focus{
  outline: none;
}

.operator{
  background: grey;
  color:white;
  font-size: 30px;
}





.clear{
  /* background: rgb(13,206,87); */
  color: white;
  background-color: rgb(255, 40 ,40);
}

.clear:hover{
  filter: brightness(90%);
}

.equal-sign{
  grid-column: -2;
  grid-row: 2 / span 4;
  background: rgb(13,206,87);
 
}


/* Media query :large smartphone */

@media screen and (max-widtg:600px){
  .calculator{
    width:95%
  }
}