body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f2f2f2;
    font-family: Arial, sans-serif;
}

button2 {
    padding: 15px 30px;
    font-size: 16px;
    color: white;
    background-color: #70777d;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin: 10px; /* spacing between buttons */
}

button2:hover {
    background-color: #8f9ba8;
}

button2:focus {
    outline: none;
}

button2:active {
    background-color: #5c636a; /* Even darker when actively pressed */
    transform: scale(0.97); /* Subtle press-down effect */
}

/* Optional: feedback after a button has been pressed */
button2.pressed {
    background-color: #4caf50 !important; /* Green to indicate it's part of the correct sequence */
}
.calculator {
    border: 1px solid rgb(179, 179, 179);
    border-radius: 0.375rem;
    width: 190px;
    height: 254px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 10px;
  }
  
  .output {
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    height: 40px;
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
  }
  
  .result {
    font-size: 20px;
  }
  
  .buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
  }
  
  button {
    border: none;
    border-radius: 0.375rem;
    padding: 10px;
    background-color: #eee;
    cursor: pointer;
    font-size: 16px;
  }
  
  button:hover {
    background-color: #ddd;
  }
  
  button:active {
    background-color: #ccc;
  }
  
  .bg-green {
    background-color: rgba(0, 177, 29, 0.651);
    color: white;
  }
  
  .bg-green:hover {
    background-color: rgba(0, 231, 39, 0.651);
    color: white;
  }
  
  .bg-red {
    background-color: rgba(223, 4, 4, 0.651);
    color: white;
  }
  
  .bg-red:hover {
    background-color: rgba(255, 1, 1, 0.651);
    color: white;
  }