*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  body {
    font-family: sans-serif;
    background-color: #ccc3b9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  h1 {
    text-align: center;
    margin: 30px 0;
    color: #322d29;
  }
  #calculator-container {
    width: 340px;
    height: auto;
    background-color: #322d29;
    padding: 5px;
  }
  #buttons-container {
    width: 100%;
    height: auto;
    display: grid;
    background-color: #322d29;
    gap: 2px;
    grid-template-columns: auto auto auto auto;
    width: 330px;
    color: white;
    align-items: center;
    text-align: center;
  }
  #buttons-container > div {
    width: 100%;
    height: 60px;    
    background-color: #7e7e7e;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
  }
  #buttons-container > div:hover {
    cursor: pointer;
  }
  #clear {
    grid-column: 1 / span 2; 
    grid-row: 1;
    color: white;
    background-color: #B53737 !important;
  }
  #zero {
    grid-column: 1 / span 2;
  }
  #equals {
    grid-column: 4;
    grid-row: 4 / span 2;
    height: 100% !important;
    background-color: #0080FE !important;
    font-size: x-large;
  }
  .x-large {
    font-size: 20px;
  }
  .xx-large {
    font-size: 28px;
  }
  #results-container {
    display: flex;
    flex-direction: column;
    background-color: #322d29;   
    border-bottom: 4px solid #322d29; 
    flex-wrap: wrap;
    flex-grow: auto;
    min-height: 80px;
  }
  #display {     
    padding: 10px 4px 0 4px;
    font-size: 34px;
    color: white;
    width: 330px;
    display: flex;
    flex-wrap: wrap;
    word-break: break-all;
    justify-content: flex-end;
    min-height: 50px;
  }  
  #history {
    color: #ffd300;
    font-size: 16px; 
    padding: 4px;
    word-break: break-all;
    display: flex;
    justify-content: flex-end;
    min-height: 30px;
  }
  #add, #subtract, #multiply, #divide {
    background-color: #626262 !important;
  }