body {
  background-color: #d4d4d2;
}

.calculator {
  margin: 0 auto;
  width: 280px;
  height: 550px;
  border: 1px solid;
  border-radius: 30px;
  background-color: #1c1c1c;
  box-shadow: 0px 0px 20px 2px #505050;
}

#input {
  margin-top: 40px;
  text-align: end;
  border-radius: 20px;
  color: white;
  border: none;
  outline: none;
  width: 90%;
  height: 150px;
  padding: 10px;
  background-color: #1c1c1c;
  font-size: 20px;
  white-space: pre-wrap;
  resize: none;
}
.boxes {
  padding: 0 15px;
  display: flex;
  gap: 10px;
}
button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: all 300ms ease;
  background-color: #d4d4d2;
  color: #1c1c1c;
  margin-bottom: 10px;
  font-weight: 500;
}
button:hover {
  opacity: 80%;
}
button:active {
  transform: scale(0.9);
}

.button1 {
  background-color: #ff9500;
  font-size: 18px;
}
.b2 {
  background-color: #505050;
}
.b2:hover {
  opacity: 100%;
}
.line {
  width: 100px;
  color: white;
  border: 1px solid;
  border-radius: 10px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .calculator {
    width: 90%;
    height: auto;
    padding-bottom: 20px;
  }

  #input {
    font-size: 18px;
    height: 120px;
  }

  .boxes {
    gap: 20px;
    justify-content: center;
  }

  button {
    width: 55px;
    height: 55px;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .button1 {
    font-size: 16px;
  }

  .line {
    width: 60px;
  }
}
