* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 4vw;
  color: #fff;
}

body {
  background: #000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.row {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.images {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image {
  max-width: 100%;
}

.buttons {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.button-wrapper {
  flex: 1 1 calc(100% / 7 - 10px);
  padding-top: calc(100% / 7 - 10px);
  margin: 5px;
  position: relative;
}

.button {
  align-self: center;
  padding: 8px;
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #fff;
  border-radius: 6px;
  background-color: #000;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.keyboard-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #fff;
  border-radius: 6px;
  background-color: #000;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.button:hover,
.button:focus,
.keyboard-button:hover,
.keyboard-button:focus {
  outline: none;
  transform: scale(1.1);
  background-color: #fff;
  color: #000;
}

.wrong,
.wrong:focus,
.wrong:hover {
  background-color: tomato;
}

.correct,
.correct:focus,
.correct:hover {
  background-color: lime;
}

@media (min-width: 800px) {
  * {
    font-size: 24px;
  }
  .row {
    flex-direction: row;
    justify-content: center;
  }
}

.win {
  animation: greenPulsation 1s linear infinite;
}

.lost {
  animation: redPulsation 1s linear infinite;
}

@keyframes greenPulsation {
  0% {
    color: #fff;
  }
  50% {
    color: lime;
  }
  100% {
    color: #fff;
  }
}

@keyframes redPulsation {
  0% {
    color: #fff;
  }
  50% {
    color: tomato;
  }
  100% {
    color: #fff;
  }
}
