@charset "UTF-8";

/* Reset de estilos padrão, feito através de arquivo "reset.css" */

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

#calc {
  width: 330px;
  padding: .5em;
  background-color: #c4c4c4;
  color: #000;
  display: flex;
  flex-direction: column;
}

#calc h3 {
  font-size: 1.3em;
  color: #666;
}

#operations {
  text-align: right;
}

#previous-operation {
  color: #666;
  overflow-wrap: break-word;
  min-height: 1.6em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#current-operation {
  min-height: 1.6em;
  font-size: 3em;
  font-weight: bold;
  overflow-wrap: break-word;
}

#buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3px;
}

#buttons-container button {
  border: none;
  border: 1px solid transparent;
  height: 3.4em;
  font-size: 1.2em;
  background-color: #dbdbdb;
}

#buttons-container button:hover {
  background-color: #bababa;
  border-color: #999;
  cursor: pointer;
}

#buttons-container .number {
  background-color: #f3f3f3;
}

#buttons-container #equal-btn {
  grid-column: span 2;
  background-color: #75a5cb;
}

#buttons-container #equal-btn:hover {
  background-color: #3a91d8;
}