body {
    font-family: 'Arial', sans-serif;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
  }
  
  .calculator {
    background-color: #34495e;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 320px;
  }
  
  .calculator input[type="text"] {
    width: 100%;
    height: 60px;
    font-size: 30px;
    text-align: right;
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    color: #34495e;
    padding: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }
  
  .button-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .calculator button {
    height: 60px;
    font-size: 24px;
    color: white;
    background-color: #16a085;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .calculator button.operator {
    background-color: #e74c3c;
  }
  
  .calculator button.clear {
    background-color: #f39c12;
  }
  
  .calculator button:hover {
    background-color: #1abc9c;
  }
  
  .calculator button.operator:hover {
    background-color: #c0392b;
  }
  
  .calculator button.clear:hover {
    background-color: #f1c40f;
  }
  
  .calculator button:active {
    background-color: #2ecc71;
  }
  
  /* Adding animations */
  .calculator input[type="text"] {
    animation: bounceIn 0.5s ease;
  }
  
  @keyframes bounceIn {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
  }
  
