@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: blueviolet;

  padding: 20px 0;  
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: white;
}

footer {
  text-align: center;
  margin-top: 20px;
  color: rgb(250, 251, 252);
}

input {
  outline: none;
  border: none;
}

.calculator,
input {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15),
    -1px -1px 10px rgba(0, 0, 0, 0.15);
}

.calculator {
  width: 430px;
  background-color: white;
  padding: 25px;
  border-radius: 10px;
}

input:not(.text) {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  margin: 10px;
  font-size: 24px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

input:hover:not(.text, .op) {
  background-color: black;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.op {
  color: blueviolet;
}

.op:hover {
  background-color: black;
  color: blueviolet;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.output .text {
  width: 100%;
  height: 70px;
  padding: 0 20px 0 0;
  margin-bottom: 15px;
  text-align: right;
  font-size: 30px;
  border-radius: 50px;
}

.calculator .equal {
  width: 155px;
  border-radius: 20%;
}

/* making responsive */
@media (max-width: 768px) {
  .calculator {
    padding: 20px;
  }

  input:not(.text) {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .output .text {
    height: 60px;
    font-size: 25px;
  }

  .calculator .equal {
    width: 130px;
  }
}

@media (max-width: 480px) {
  .calculator {
    padding: 15px;
  }

  input:not(.text) {
    width: 50px;
    height: 50px;
    font-size: 18px;
    margin: 5px;
  }

  .output .text {
    height: 50px;
    font-size: 20px;
    padding: 0 15px 0 0;
  }

  .calculator .equal {
    width: 110px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  footer {
    font-size: 14px;
    margin-top: 15px;
  }
}


 