:root {
  --background: white;
  --color: black;
  --border-outline: black;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("gruppo.ttf");
}
* {
  text-align: center;
  transition: all 0.5s ease;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Plus Jakarta Sans", sans-serif;
}
html, body {
  background-color: var(--background);
  color: var(--color);
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: clip;
}

.container, .menu-item {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.game-title {
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 40%;
}
.btn {
  width: 50%;
  height: 10%;
  border: 1px solid var(--border-outline);
  border-radius: 10px;
  padding: 5%;
  margin: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.grid-container {
  width: 80%;
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.row-item {
  width: 100%;
  height: 10%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.row-item.preview-item {
  height: 20%;
}
.grid-item {
  width: 12.5%;
  height: 100%;
  outline: 1px solid var(--border-outline);
  cursor: pointer;
}
.grid-item.added {
  background-color: #0b00a8;
}
.grid-item.added.completed {
  animation: animate-end 0.5s ease-in-out;
}
.preview {
  animation: preview 1.5s ease infinite;
}
.grid-item.added.preview {
  animation: preview2 1.25s ease infinite;
}
@keyframes preview {
  0%, 100% {
    background-color: var(--background);
    filter: brightness(0.9);
  }
  50% {
    background-color: var(--background);
    filter: brightness(0.75);
  }
}
@keyframes preview2 {
  0%, 100% {
    background-color: #8886fe;
  }
  50% {
    background-color: #4542ff;
  }
}
@keyframes animate-end {
  0% {
    background-color: #44ff00;
    filter: brightness(1);
  }
  50% {
    background-color: #00ff1e;
    filter: brightness(0.8);
  }
  100% {
    filter: brightness(1);
    background-color: var(--background);
  }
}
.action-container {
  height: 15%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.button {
  width: fit-content;
  padding: 0 5%;
  margin: 0 5%;
  height: 75%;
  border: 1px solid black;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.block-container {
  height: 20%;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.block-item {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 25%;
  height: 50%;
  border: 1px solid black;
  border-radius: 10px;
  margin: 0 2.5%;
}
.block-item.selected {
  background-color: rgba(0,0,0,0.2);
}

.score-container {
  width: 100%;
  height: 5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.score {
  width: fit-content;
  max-width: 30%;
  padding: 0 5px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100%;
}
.score.high {
  font-size: 95%;
}
.end-btn {
  width: fit-content;
  height: fit-content;
  padding: 2px 2%;
  margin: 2%;
  outline: 1px solid black;
  border-radius: 10px;
  cursor: pointer;
}

.settings-item-container {
  width: 100%;
  height: fit-content;
  max-height: 40%;
  padding: 5% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.back-btn {
  width: fit-content;
  height: fit-content;
  padding: 2px 2%;
  margin: 2%;
  outline: 1px solid black;
  border-radius: 10px;
  cursor: pointer;
  position: absolute;
  top: 2%;
  right: 2%
}

.back-btn:hover, .btn:hover, .end-btn:hover, .button:hover {
  transition: all 0.5s ease, background 0.2s ease, color 0.2s ease;
  background: var(--color);
  color: var(--background);
}