html {
  height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  background-image: url(../img/travel-1767532_1280.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: wheat;
}

* {
  margin: 0;
}

h1 {
  margin: 10px;
}

button {
  font-family: inherit;
  font-size: 1.5rem;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 10px;
  border: none;
  background-color: rgba(198, 185, 160, 0.85);
  color: white;
  font-weight: bold;
  cursor: pointer;
}
button:hover {
  background-color: rgba(198, 185, 160, 0.6);
}

.diceContainer {
  display: flex;
  align-items: center;
  margin: 10px 0;
  justify-content: center;
}
.diceContainer img {
  width: 50px;
  height: 50px;
  padding: 10px;
}
.diceContainer p {
  margin-left: 1rem;
  font-size: 2rem;
  font-weight: bold;
}

.counterContainer .h2pContainer {
  text-align: center;
  padding-bottom: 5px;
  font-size: 2rem;
}
.counterContainer .btnContainer p {
  display: inline-flex;
  font-size: 2rem;
  font-weight: bold;
  margin-left: 20px;
}
.counterContainer .rulesContainer {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.boardgame {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  column-gap: 5px;
  row-gap: 5px;
  margin: 5px 5%;
  border: 1px solid rgb(198, 185, 160);
  padding: 10px 0;
}
.boardgame .box {
  height: 70px;
  position: relative;
}
.boardgame .box img {
  width: 100%;
  height: 100%;
}
.boardgame .box .aereo {
  position: absolute;
  left: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(198, 185, 160, 0.8);
  color: white;
}
footer p {
  margin: 0 10px;
}
footer div {
  margin: 0 10px;
}

@media (max-width: 700px) {
  html {
    height: auto;
  }
  h1 {
    margin: 0;
  }
  button {
    font-size: 1rem;
  }
  .diceContainer {
    flex-wrap: wrap;
    margin: 10px;
  }
  .diceContainer p {
    margin: 10px;
    font-size: 1rem;
  }
  .counterContainer .rulesContainer {
    padding: 10px;
  }
  .boardgame {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    padding: 0;
    margin: 0 5%;
  }
  footer {
    flex-direction: column;
    position: static;
  }
  footer p {
    margin: 5px 0;
  }
}