body {
  background: url(images/Background.png);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  width: auto;
}

.container {
  color: #fff;
  font-family: 'Roboto', arial, helvetica, sans-serif;
}

.header {
  margin: 133px auto  50px 102px;
}

.header__title {
  font-size: 54px;
  line-height: 60px;
  margin-bottom: -3px;
}

.header__subtitle {
  font-weight: 400;
  font-size: 19px;
  line-height: 17px;
  margin: 17px 0 61px 3px;
}

.choice {
  margin-left: 153px;
  font-size: 48px;
  line-height: 59px;
  font-weight: 700;
}

.choice__level {
  position: relative;
  margin-bottom: 25.5px;
}

.choice__level input {
  display: none;
}

.choice__radio:checked + label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -45px;
  bottom: 2px;
  margin: auto;
  width: 18px;
  height: 18px;
  background-color: #d62b2e;
  transform: rotate(45deg);
}

.choice__btn {
  font-size: 32px;
  color: #fff;
  background-color: #d62b2e;
  width: 352px;
  height: 95px;
  border-radius: 7px;
  margin: 88px auto auto -50px;
  transition: background 0.2s linear, color 0.1s linear;
}

.choice__btn:hover {
  color: #d62b2e;
  background-color: #fff;
  font-size: 34px;
}

.cards__1,
.cards__2 {
  position: absolute;
}

.cards__1 {
  left: 890px;
  top: 530px;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.7));
  transform: rotate(12deg);
}

.cards__2 {
  left: 1067px;
  top: 548px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25)), drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.3));
  transform: rotate(39deg);
}

.clear {
  display: none;
}

.table {
  display: flex;
  height: 71%;
  margin: 156px 20% 0 20%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.table3Cards {
  margin-top: 23.7%;
}

.table10Cards {
  margin: 15% 4% 0 4%;
}

.card {
  margin: 0 12px 28px 12px;
  transition-duration: 2s;
  perspective: 1000px;
  width: 218px;
  height: 341px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card:not(.gameOver, .bug):hover {
  cursor: pointer;
  animation-name: moveCards;
  animation-duration: 0.5s;
  -webkit-transform: translate(0, -25px);
  -ms-transform: translate(0, -25px);
  transform: translate(0, -25px);
  filter: drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.5));
}

.cover {
  background: url(images/card.png);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
}

.bug {
  background: url(images/bug.png);
  border-radius: 10px;
  -webkit-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.gameOver {
  background: url(images/gameOver.png);
  border-radius: 10px;
  -webkit-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

@keyframes moveCards {
  from {
    -webkit-transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    transform: rotate(5deg);
  }

  to {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transform: translate(0, -25px);
    -ms-transform: translate(0, -25px);
    transform: translate(0, -25px);
  }
}

@media only screen and (min-width: 601px) and (max-width: 2000px) {
  .header__subtitle_mobile {
    display: none;
  }
}

@media only screen and (min-width: 100px) and (max-width: 600px) {
  .header__subtitle {
    display: none;
  }
}

@media only screen and (min-width: 1453px) and (max-width: 1920px) {
  .table6Cards {
    margin: 20% 29.18%;
  }

  .table10Cards {
    margin: 20% 15%;
  }

  .header__title {
    font-size: 74px;
    margin-bottom: 50px;
  }

  .header__subtitle {
    font-size: 40px;
    margin-bottom: 150px;
    line-height: 40px;
  }

  .choice {
    margin-left: 153px;
    font-size: 60px;
    font-weight: 550;
  }

  .choice__level {
    padding: 0.7%;
  }

  .choice__btn {
    font-size: 42px;
    width: 402px;
    height: 110px;
  }

  .cards__1 {
    left: 1090px;
    top: 530px;
  }

  .cards__2 {
    left: 1270px;
    top: 548px;
  }
}

@media (max-width: 1743px) {
  .table6Cards {
    margin: 20% 25%;
  }

  .table10Cards {
    margin: 20% 8.349%;
  }
}

@media (max-width: 1452px) {
  .choice {
    margin-top: 10px;
  }

  .cards__1 {
    left: 890px;
    top: 530px;
  }

  .cards__2 {
    left: 1070px;
    top: 548px;
  }

  .table {
    margin-top: 23.76%;
  }

  .table6Cards {
    margin: 10.89% 16.668%;
  }

  .table10Cards {
    margin: 10.95% 0.1%;
  }
}

@media (max-width: 1240px) {
  body {
    overflow-y: hidden;
  }

  .table {
    margin: 20% 20%;
  }

  .header__subtitle {
    margin-bottom: 10%;
  }

  .choice__level {
    padding-top: 2%;
  }

  .choice__btn {
    margin-bottom: 100%;
  }

  .card {
    width: 185px;
    height: 290px;
  }

  .bug {
    background: url(images/bug800.png);
    border-radius: 5px;
  }

  .gameOver {
    background: url(images/gameOver800.png);
    border-radius: 5px;
  }

  .cover {
    background: url(images/card800.png);
  }

  .table6Cards {
    margin: 156px 19% 0 19%;
  }

  .table10Cards {
    margin: 10% 0;
  }
}

@media (max-width: 1045px) {
  .choice {
    margin-left: 90px;
  }

  .choice__level {
    padding: 0;
  }

  .cards__1 {
    left: 540px;
    top: 250px;
    transform: rotate(6deg);
  }

  .cards__2 {
    left: 660px;
    top: 280px;
    transform: rotate(23deg);
  }

  .choice__radio:checked + label::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -50px;
    width: 20px;
    height: 20px;
  }

  .table6Cards {
    margin: 20% 11% 25% 11%;
  }
}

@media only screen and (min-width: 875px) and (max-width: 1045px) {
  .header {
    margin: 60px auto  130px 60px;
  }
}

@media only screen and (min-width: 660px) and (max-width: 874px) {
  body {
    text-align: center;
  }

  .cards {
    display: none;
  }

  .header {
    margin: 90px auto;
  }

  .header__title {
    font-size: 42px;
  }

  .header__subtitle {
    font-size: 14px;
    margin-bottom: 150px;
  }

  .choice__level {
    font-size: 38px;
    margin-bottom: 8px;
  }

  .choice {
    margin: auto;
  }

  .choice__radio:checked + label::before {
    top: 2%;
    right: 172px;
  }

  .choice__btn {
    font-size: 30px;
    padding: 16px;
    width: 300px;
    height: 85px;
    margin: 90px auto;
  }

  .table {
    margin: 45% 10.19% 45%;
  }

  .table10Cards {
    margin-top: 5%;
  }

  .table6Cards {
    margin-top: 30%;
  }

  .card {
    width: 150px;
    height: 232px;
  }

  .cover {
    background: url(images/card700.png);
  }

  .bug {
    background: url(images/bug700.png);
  }

  .gameOver {
    background: url(images/gameOver700.png);
  }
}

@media (max-width: 659px) {
  body {
    text-align: center;
  }

  .header {
    margin: 50px auto;
  }

  .header__title {
    font-size: 30px;
  }

  .choice {
    margin: auto;
  }

  .choice__level {
    font-size: 26px;
    margin-bottom: 0;
  }

  .choice__radio:checked + label::before {
    top: 2%;
    right: 120px;
  }

  .choice__btn {
    padding: 16px 40px 16px 32px;
    width: 230px;
    height: 75px;
    font-size: 24px;
    margin: 70px auto;
  }

  .card {
    width: 116px;
    height: 180px;
  }

  .cards {
    display: none;
  }

  .cover {
    background: url(images/card600.png);
  }

  .bug {
    background: url(images/bug600.png);
  }

  .gameOver {
    background: url(images/gameOver600.png);
  }

  .table {
    margin: 30% 7.52%;
  }

  .table10Cards {
    margin: 5% 7.52%;
  }
}

@media only screen and (min-width: 350px) and (max-width: 500px) {
  .header {
    margin: 60px auto;
  }

  .header__title {
    font-size: 26px;
    line-height: 33px;
  }

  .header__subtitle {
    font-size: 12px;
  }

  .choice__level {
    font-size: 24px;
    padding: 0;
  }

  .choice__btn {
    font-size: 22px;
    padding: 16px 32px;
    margin: 15% 0 100% 0;
    width: 220px;
    height: 65px;
  }

  .choice__radio:checked + label::before {
    top: 4px;
    right: 100px;
    width: 15px;
    height: 15px;
  }

  .card {
    width: 80px;
    height: 123px;
  }

  .cover {
    background: url(images/card320.png);
  }

  .bug {
    background: url(images/bug320.png);
  }

  .gameOver {
    background: url(images/gameOver320.png);
  }

  .table {
    margin: 45% 8.41%;
  }

  .table10Cards {
    margin: 15% 2%;
  }

  .table6Cards {
    margin: 35% 8.41%;
  }
}

@media only screen and (min-width: 100px) and (max-width: 349px) {
  .header {
    margin: 30px 0;
  }

  .header__title {
    line-height: 45px;
    margin-bottom: 40px;
  }

  .table {
    margin: 40% 0%;
  }

  .table6Cards {
    margin: 30% 9.61%;
  }

  .table10Cards {
    margin: 10% 9.61%;
  }

  .card {
    width: 45px;
    height: 70px;
  }

  .cover {
    background: url(images/cardMobile.png);
  }

  .bug {
    background: url(images/bugMobile.png);
  }

  .gameOver {
    background: url(images/gameOverMobile.png);
  }
}
