body {
  margin: 0;
  font: 50px/59px 'Roboto', arial, helvetica, sans-serif;
  color: #fff;
  background: url(img/Background.png) 100%;
  background-size: cover;
  width: auto;
  height: 1024px;
}

.header {
  margin: 135px auto  30px 102px;
}
.header__title {
  font-size: 57px;
  line-height: 48px;
  font-weight: 700;
  margin: 0 0 -16px 0;
}
.header__text {
  font-size: 19px;
  font-weight: 400;
}
.choice {
  font-weight: 700;
  margin-left: 152px;
  line-height: 82px;
}

.choice__level {
  position: relative;
}

.choice__level input {
  display: none;
}

.choice__radio:checked+label::before {
  content: '';
  position: absolute;
  top: 0px;
  left: -45px;
  bottom: 2px;
  margin: auto;
  width: 18px;
  height: 18px;
  background-color: #d62b2e;
  transform: rotate(45deg);
}
.choice__button {
  font-size: 32px;
  color: #fff;
  background-color: #d62b2e;
  width: 354px;
  height: 97px;
  border-radius: 7px;
  transition: background .2s linear, color .1s linear;
  margin: 102px auto auto -50px;
}

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

.cards__disine1,
.cards__disine2 {
  width: 218px;
  height: 341px;
  position: absolute;
}

.cards__disine1 {
  top: 547px;
  left: 1069px;
  transform: rotate(39deg);
}

.cards__disine2 {
  z-index: -1;
  top: 530px;
  left: 889px;
  transform: rotate(12deg);
}

/*Style for JS*/

.clear{
  display: none;
}

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

.gameArea10 {
  margin-left: 5%;
  margin-right: 5%;
}

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

.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);
}

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

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

.gameOver {
  background: url(img/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 (max-width: 1366px) {
  .header{
    margin: 123px auto 46px 74px;
  }

  .header__title {
    font-size: 52px;
    line-height: 62px;
  }

  .header__text {
    font-size: 20px;
    line-height: 23px;
  }

  .choice {
    margin-left: 126px;
    font-size: 46px;
    line-height: 66px;
  }

  .choice__button {
    font-size: 36px;
    width: 305px;
    height: 98px;
    margin: 73px auto auto -50px;
  }

  .cards__disine1 {
    top: 355px;
    left: 759px;
    transform: rotate(39deg);
  }

  .cards__disine2 {
    z-index: -1;
    top: 330px;
    left: 571px;
    transform: rotate(12deg);
   }

  .gameArea{
    height: 61%;
    margin: 156px 5% 0 0%;
  } 
}

@media (max-width: 1240px) {
  .header{
    margin: 118px auto 46px 49px;
  }

  .header__title {
    font-size: 50px;
    line-height: 60px;
  }

  .header__text {
    font-size: 18px;
    line-height: 21px;
  }

  .choice {
    margin-left: 126px;
    font-size: 46px;
    line-height: 66px;
  }

  .choice__button {
    font-size: 34px;
    width: 300px;
    height: 98px;
    margin: 73px auto auto -50px;
  }

  .cards__disine1 {
    top: 355px;
    left: 719px;
    transform: rotate(39deg);
  }

  .cards__disine2 {
    z-index: -1;
    top: 330px;
    left: 540px;
    transform: rotate(12deg);
   }

  .gameArea{
    height: 61%;
    margin: 156px 10% 0 10%;
  } 
}

@media (max-width: 1024px) {
  .header{
    margin: 113px auto 46px 29px;
  }

  .header__title {
    font-size: 45px;
    line-height: 55px;
  }

  .header__text {
    font-size: 16px;
    line-height: 21px;
  }

  .choice {
    margin-left: 120px;
    font-size: 42px;
    line-height: 62px;
  }

  .choice__button {
    font-size: 34px;
    width: 300px;
    height: 98px;
    margin: 73px auto auto -50px;
  }

  .cards__disine1 {
    top: 355px;
    left: 719px;
    transform: rotate(39deg);
  }

  .cards__disine2 {
    z-index: -1;
    top: 330px;
    left: 540px;
    transform: rotate(12deg);
   }

  .gameArea{
    height: 61%;
    margin: 156px 10% 0 10%;
  } 
}

@media (max-width: 800px) {
  .header{
    margin: 70px auto 47px 35px;
  }  

  .header__title {
    font-size: 55px;
    line-height: 51px;
  }

  .header__text {
    font-size: 24px;
    line-height: 31px;
  }

  .choice {
    margin-left: 96px;
    font-size: 35px;
    line-height: 50px;
  }

  .choice__button {
    font-size: 26px;
    width: 239px;
    height: 86px;
    margin: 47px auto auto -50px;
  }

  .cards__disine1,
  .cards__disine2 {
    width: 190px;
    height: 290px;
    position: absolute;
  }

  .cards__disine1 {
    top: 355px;
    left: 594px;
    transform: rotate(39deg);
  }

  .cards__disine2 {
    z-index: -1;
    top: 330px;
    left: 404px;
    transform: rotate(12deg);
  }

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

  .cover {
    background: url(img/card800.png);
    width: 97%;
    height: 100%;
  }

  .bug {
    background: url(img/bug800.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 32%;
    height: 43%;
  }

  .gameOver {
    background: url(img/gameOver800.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 32%;
    height: 43%;
  }
  
  .gameArea{
    height: 65%;
    margin: 141px 14% 0 14%;
  }
}

@media (max-width: 650px) {
  .header{
    margin: 70px auto 47px 35px;
  }  

  .header__title {
    font-size: 45px;
    line-height: 38px;
  }

  .header__text {
    font-size: 20px;
    line-height: 25px;
  }

  .choice {
    margin-left: 96px;
    font-size: 35px;
    line-height: 50px;
  }

  .choice__button {
    font-size: 26px;
    width: 239px;
    height: 86px;
    margin: 47px auto auto -50px;
  }

  .cards__disine1,
  .cards__disine2 {
    display: none;
  }

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

  .cover {
    background: url(img/card600.png);
    width: 97%;
    height: 100%;
  }

  .bug {
    background: url(img/bug600.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 24%;
    height: 46%;
  }

  .gameOver {
    background: url(img/gameOver600.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 24%;
    height: 46%;
  }
  
  .gameArea{
    height: 38%;
    margin: 126px 10% 0 10%;
  }

}

@media (max-width: 450px) {
  .header{
    margin: 70px auto 47px 35px;
  }  

  .header__title {
    font-size: 40px;
    line-height: 34px;
  }

  .header__text {
    font-size: 16px;
    line-height: 23px;
  }

  .choice {
    margin-left: 96px;
    font-size: 30px;
    line-height: 45px;
  }

  .choice__button {
    font-size: 22px;
    width: 222px;
    height: 76px;
    margin: 40px auto auto -50px;
  }

  .cards__disine1,
  .cards__disine2 {
    display: none;
  }

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

  .cover {
    background: url(img/card320.png);
    width: 97%;
    height: 100%;
  }

  .bug {
    background: url(img/bug320.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 44%;
    height: 32%;
  }

  .gameOver {
    background: url(img/gameOver320.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 44%;
    height: 32%;
  }
  
  .gameArea {
    height: 46%;
    margin: 23px 20% 0 20%;
  }

}

@media (max-width: 320px) {
  .header{
    margin: 63px auto 47px 44px;
  }

  .header__title {
    font-size: 37px;
    line-height: 28px;
  }  
  .header__text {
    font-size: 16px;
    line-height: 23px;
  }

  .choice {
    margin-left: 96px;
    font-size: 30px;
    line-height: 45px;
  }

  .choice__button {
    font-size: 22px;
    width: 222px;
    height: 76px;
    margin: 40px auto auto -50px;
  }

  .cards__disine1,
  .cards__disine2 {
    display: none;
  }

  .card{
    width: 100px;
    height: 150px;
  }
  
  .cover {
    background: url(img/card320.png);
    width: 97%;
    height: 100%;
  }

  .bug {
    background: url(img/bug320.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 50%;
    height: 32%;
  }

  .gameOver {
    background: url(img/gameOver320.png);
    border-radius: 10px;
    -webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
    width: 50%;
    height: 32%;
  }
  
  .gameArea{
    height: 46%;
    margin: 23px 20% 0 20%;
  }
}