*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: 0;
  transition: all 0.5s ease;
}
body{
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background-image: linear-gradient(to bottom right, rgb(243, 142, 102), rgb(143, 204, 233));
  /* background-repeat: repeat-y; */
  background-size: 100%;
}
header{
  text-align: center;
  padding-top: 2%;
  font-size: 30px;
  color: #9b2626;
  font-family: cursive, sans-serif;
  font-weight: 600;
}
a{
  text-decoration: none;
  color: #fff;
}
.container{
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  padding-top: 1.5%;
}
.calculator{
  position: relative;
  height: auto;
  width: auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgb(167, 36, 36);
}
.theme-toggler{
  position: absolute;
  top: 30px;
  right: 30px;
  color: rgb(151, 36, 36);
  cursor: pointer;
  z-index: -1;
}
.theme-toggler.active{
  color: rgb(40, 78, 182);
}
.theme-toggler.active::before{
  background-color: rgb(36, 33, 33);
}
.theme-toggler::before{
  content: '';
  height: 30px;
  width: 30px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgb(31, 28, 28);
  z-index: -1;
} 
#display {
  margin: 0 10px;
  height: 150px;
  width: auto;
  max-width: 270px;
  display: flex;
  align-items: flex-end;
  font-size: 30px;
  margin-bottom: 20px;
  overflow-x: scroll;
}
#display::-webkit-scrollbar{
  display: block;
  height: 3px;
}
button{
  height: 60px;
  width: 60px;
  border: solid #333;
  border-radius: 3px;
  cursor: pointer;
  font-size: 20px;
  transition: all 200ms ease;
  margin: 3px;
}
button:hover{
  transform: scale(1.1);
}
button#equal{
  height: 130px;
}

/* light-theme */

.calculator {
  background-color: rgb(255, 255, 255);
}
.calculator #display{
  color: rgb(0, 0, 0);
}
.calculator button#clear{
  background-color: rgb(187, 156, 156);
}
.calculator button.btn-number{
  background-color: rgb(253, 151, 120);
}
.calculator button.btn-operator{
  background-color: rgb(252, 138, 138);
}
.calculator button.btn-equal{
  background-color: rgb(230, 202, 111);
}
.footer{
  color: rgb(0, 0, 0);
  font-size: 15px;
  padding: 1% 0;
}
.footer a{
  color: rgb(12, 78, 78);
}



      
   