body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #1e1e2f;
  font-family: Arial;
}

.calculator {
   width: 100vw;    
 height: auto;      
  max-width: 2000px;     
  padding: 50px;
  background: #2c2c3e;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

#display {
  width: 100%;
   height: 120px;
  font-size: 5rem;
  margin-bottom: 25px;
  text-align: right;
  padding: 20px;
  border: none;
  border-radius: 15px;
  background: black;
  color: whitesmoke

}

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

button {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 3rem;
  border: none;
  border-radius: 18px;
  background: #4e4e6a;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.05);
  background: #6c6c8a;
}


.zero {
  grid-column: span 2;
  aspect-ratio: auto;
  height: 100%;
}
button:hover {
  background: #6c6c8a;
  transform: scale(1.08);
}


.zero {
  grid-column: span 2;
}
@media (max-width: 480px) {
  .calculator {
    width: 95vw;
    padding: 20px;
  }

  button {
    font-size: 1.5rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .calculator {
    width: 90vw;
  }

  #display {
    height: 80px;
    font-size: 2.5rem;
  }

  button {
    font-size: 2rem;
  }
}
@media (min-width: 769px) {
   .calculator {
    width: 90vw;        
    max-width: 900px;  
  }

  #display {
    height: 120px;
    font-size: 5rem;
  }

  button {
    font-size: 3rem;
  }
}