@font-face {
  font-style: normal;
  font-weight: normal;
  font-family: "GOTFont";

  src: url("../font/GameofThrones.ttf") format("truetype");
}

body {
  position: relative;

  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);

  font-family: "GOTFont";

  background-image: url(../img/board-mobile.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover ;
}
.main {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 225px;

  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.board {
  display: -webkit-box;
  display: flex;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  justify-content: space-between;
  width: 100%;
  padding: 0;

  opacity: 1;

  -webkit-transition: 1s;
          transition: 1s;
}

.board--disabled {
  opacity: 0;
}

.card {
  position: relative;

  display: block;
  box-sizing: border-box;
  width: 65px;
  height: 95px;
  margin-top: 12.5px;

  background-size: cover;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;

  -webkit-transition: 0.25s ease;
          transition: 0.25s ease;
}

.card:nth-of-type(1),
.card:nth-of-type(2),
.card:nth-of-type(3) {
  margin-top: 0;
}

.card--flip {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.card--hidden {
  opacity: 0;
}

.card__front,
.card__back {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-size: cover;
  border-radius: 10px;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.card__back {
  background-image: url(../img/card-back.jpg);
}

.card__front {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.modal__title {
  margin-top: -25px;

  font-size: 30px;
  line-height: 2;
  text-align: center;
  color: #d8b88d;
  letter-spacing: 3px;
  text-shadow: 2px 2px 2px #000000;
}

.modal__button {
  display: block;
  height: 55px;
  margin: 0 auto;
  margin-top: 75px;
  padding: 0 25px;

  font-size: 11px;
  color: #482427;
  letter-spacing: 2px;

  background: #d8b88d;
  border: 3px solid #000000;
  border-radius: 15px;

  -webkit-transition: 0.25s ease;
          transition: 0.25s ease;
}

.modal__button:hover {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);

  -webkit-transition: 0.25s ease;
          transition: 0.25s ease;
}

.modal--disabled {
  display: none;
}

@media (min-width: 360px) {
  .main {
    width: 250px;
  }
  .card {
    width: 70px;
    height: 110px;
  }

  .modal__title {
    margin-top: -30px;

    font-size: 32px;
  }
}

@media (min-width: 400px) {
  .main {
    width: 280px;
  }
  .card {
    width: 80px;
    height: 120px;
  }

  .modal__title {
    margin-top: -35px;

    font-size: 34px;
  }

  .modal__button {
    font-size: 12px;
  }
}

@media (min-width: 600px) {
  .main {
    width: 435px;
  }
  .card {
    width: 90px;
    height: 135px;
    margin-top: 25px;
  }
  .card:nth-of-type(4) {
    margin-top: 0;
  }

  .modal__title {
    margin-top: -37.5px;

    font-size: 36px;
  }

  .modal__button {
    height: 60px;

    font-size: 13px;
  }
}

@media (min-width: 750px) {
  .main {
    width: 455px;
  }
  .card {
    width: 95px;
    height: 140px;
  }
}

@media (min-width: 1000px) {
  body {
    background-image: url(../img/board.jpg);
    cursor: url(../img/cursor.png), auto;
  }

  .modal__button {
    cursor: url(../img/cursor.png), auto;
  }
  
}

@media (min-width: 1400px) {
  .main {
    width: 495px;
  }
  .card {
    width: 105px;
    height: 155px;
  }

  .modal__title {
    margin-top: -40px;

    font-size: 38px;
  }

  .modal__button {
    height: 62.5px;

    font-size: 14px;
  }
}
