html {
  box-sizing: border-box;
}

body {
  background-color: #ccc;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}


body {
  font-family: Arial, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
  padding: 40px 15px;
  margin: 0 auto;
}

.game {
  display: flex;
  flex-wrap: wrap;
  max-width: 640px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-bottom: 10px;
  width: 150px;
  height: 150px;
  background-image: url("../img/bg.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 10px;
  transition: background .3s ease-in-out, color .3s ease-out, transform .3s ease-out;
  cursor: pointer;
}

.card.success {
  transform: scale(0.95);
  border: 1px solid #6BB18C;
}

/* медиа-запросы */

@media screen and (max-width: 700px) {
  .card {
    width: 120px;
    height: 120px;
  }
}

@media screen and (max-width: 550px) {
  .card {
    width: 100px;
    height: 100px;
  }
}

@media screen and (max-width: 470px) {
  .card {
    width: 80px;
    height: 80px;
  }
}

@media screen and (max-width: 390px) {
  .card {
    width: 70px;
    height: 70px;
  }
}

@media screen and (max-width: 350px) {
  .card {
    width: 60px;
    height: 60px;
  }
}

