@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');

* {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1, h2 {
  text-align: center;
}
table {
  width: 80%;
  margin: 20px auto;
  border-collapse: collapse;
}
th, td {
  padding: 10px;
  text-align: center;
  border: 1px solid #666;
}
th {
  background-color: #f0f0f0;
}

.app-container {
  display: grid;
  grid-template-columns: auto 480px auto;
  grid-template-areas: 
    "history calculator links"
    "history exemple links"
    ;
}

.calculator-container {
  grid-area: calculator;
}

.links-lateral {
  grid-area: links;
  justify-self: flex-start;
}

.list-group-item {
  cursor: pointer;
}

.list-group-item:hover {
  background-color: rgb(var(--bs-tertiary-bg-rgb));
}

.exemple {
  grid-area: exemple;
}

.history-lateral {
  width: 250px;
  grid-area: history;
  justify-self: flex-end;
}

@media screen and (max-width: 576px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "calculator"
      "history"
      "exemple"
      "links"
      ;
  }

  .history-lateral {
    width: 100%;
  }

  .calculator-container {
    width: 100%;
  }
}