* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #091921;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(#e91e63, #ffc107);
  clip-path: circle(22% at 30% 20%);
  animation: animate 3s linear infinite;
}
body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(#fff, #da00ff);
  clip-path: circle(20% at 70% 90%);
  animation: animate 3s normal infinite;
  animation-delay: 1.5s;
}

@keyframes animate {
  0%,
  100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(500px);
  }
}

.container {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  z-index: 10;
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
}

.container .calculator {
  position: relative;
  display: grid;
}
.container .calculator .value {
  grid-column: span 4;
  height: 140px;
  width: 300px;
  text-align: right;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 30px;
  background: transparent;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.container .calculator span {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  color: #fff;
  font-weight: 400;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.5s;
}

.container .calculator span:hover {
  transition: 0s;
  background: rgba(255, 255, 255, 0.05);
}

.container .calculator span:active {
  background: #14ff47;
  color: #192f00;
  font-size: 24px;
  font-weight: 500;
}

.container .calculator .clear {
  grid-column: span 2;
  width: 150px;
  background: rgba(255, 255, 255, 0.05);
}

.container .calculator .plus {
  grid-row: span 2;
  height: 150px;
}

.equal {
  background: rgba(255, 255, 255, 0.05);
}

@media screen and (max-width: 600px) {
     body{
          overflow: hidden;
     }

     .container{
          width: 100% !important;
     }

     .calculator{
          width: 100% !important;
     }

     input{
          width: 100% !important;
     }

     span{
          width: 90px !important;
     }

     .clear{
          width: 200px !important;
     }
}