body {
  margin: 0;
}

.disable-select {
    user-select: none;
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
}

.memory-game-cointainer {
  background-image: url('../images/background.jpg');
  background-size: cover;
  height: 100vh;
  width: 100vw;
}

header {
  height: 7vh;
  text-align: center;
  font-size: 6vh;
  font-family: 'Mansalva', cursive;
  color: #ffffffcf;
}

.play-body {
  height: 90vh;
  display: flex;
}

aside {
  width: 20%;
  color: #ffffffcf;
}

.bar-container {
  display: flex;
  background-color: rgb(0, 0, 0, 0);
  width: 100%;
  height: 30%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.stats {
  font-size: 5vh;
  text-align: center;
}

.bar {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 3vh;
  height: 21%;
}

.bar button {
  margin-top: 0.5em;
  width: 60%;
  font-size: 2.8vh;
}

.bar-container .bar:nth-child(9) {
  justify-content: center;
  font-size: 6vh;
}

main {
  width: 100%;
  height: 100%;
}

.card-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;

}

.card-container .card {
  margin: 1%;
  height: 30%;
  width: 14%;
  border-radius: 25px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: rgb(0, 0, 0, 0.8) 0px 0px 20px 0px;
  border: 0px;
}

.modal-dialog {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-content {
  text-align: center;
  height: 100%;
  width: 40vw;
  font-size: 1.8rem;
}

.card-one {
  background-image: url("../images/card_one.jpg");
}

.card-two {
  background-image: url("../images/card_two.jpg");
}

.card-three {
  background-image: url("../images/card_three.jpg");
}

.card-four {
  background-image: url("../images/card_four.jpg");
}

.card-five {
  background-image: url("../images/card_five.jpg");
}

.card-six {
  background-image: url("../images/card_six.jpg");
}

.card-seven {
  background-image: url("../images/card_seven.jpg");
}

.card-eight {
  background-image: url("../images/card_eight.jpg");
}

.card-nine {
  background-image: url("../images/card_nine.jpg");
}

.card-back {
  background-image: url("../images/card_back.jpg");
  cursor: pointer;
}
.new {
  margin-top: 2vh;
}

.start {
  margin-top: 4vh;
}

.timer {
  margin-top: 2vh;
}

.pause {
  margin-top: 1vh;
}

.continue {
  margin-top: 3vh;
}
@media only screen and (max-height: 1366px) {
  .card-container .card {
    height: 30%;
    width: 14%;
  }

  aside {
    width: 30%;
  }
}

@media only screen and (max-width: 768px) {
  .card-container .card {
    height: 15%;
    width: 30%;
  }

  aside {
    width: 40%;
  }
}

@media only screen and (max-width: 736px) {
  .card-container .card {
    height: 31%;
    width: 14%;
  }

  aside {
    width: 40%;
  }
}

@media only screen and (max-width: 667px) {
  aside {
    width: 25%;
  }

  .card-container .card {
    height: 30%;
    width: 14%;
  }
}

@media only screen and (max-width: 414px) {
  aside {
    width: 100%;
  }

  .play-body {
    flex-wrap: wrap;
  }

  header {
    font-size: 1.5rem;
    height: 4vh;
  }

  .bar {
    font-size: 1rem;
    height: 87%;
  }

  .stats {
    display: none;
  }

  .game-times {
    width: 30%;
  }

  .game-numbers {
    width: 5%;
  }

  .attempts {
    width: 20%;
  }

  .attempts-number {
    width: 5%;
  }

  .accuracy {
    width: 20%;
  }

  .accuracy-number {
    width: 15%;
  }

  .start {
    width: 50%;
    margin-top: 0;
  }

  .new {
    width: 50%;
    margin-top: 0;
  }

  .timer {
    width: 100%;
    margin-top: 0;
  }

  .pause {
    width: 50%;
    margin-top: 0;
  }

  .continue {
    width: 50%;
    margin-top: 0;
  }

  .bar button {
    margin-top: 0;
    font-size: 1.8vh;
  }

  .bar-container .bar:nth-child(9) {
    justify-content: center;
    font-size: 2rem;
    margin-top: 0;
  }

  .card-container {
    align-content: flex-start;
    margin-top: 10px;
  }

  .card-container .card {
    height: 15%;
    width: 29%;
  }

  main {
    height: 73vh;
  }

  .modal-content {
    width: 100vw;
  }
}

@media only screen and (max-width: 320px) {
  aside {
    width: 100%;
  }

  .play-body {
    flex-wrap: wrap;
  }

  header {
    font-size: 1.5rem;
    height: 4vh;
  }

  .bar {
    font-size: 0.8rem;
  }

  .stats {
    display: none;
  }

  .game-times {
    width: 30%;
  }

  .game-numbers {
    width: 5%;
  }

  .attempts {
    width: 20%;
  }

  .attempts-number {
    width: 5%;
  }

  .accuracy {
    width: 20%;
  }

  .accuracy-number {
    width: 15%;
  }

  .start {
    width: 50%;
    margin-top: 0;
  }

  .new {
    width: 50%;
    margin-top: 0;
  }

  .timer {
    width: 100%;
    margin-top: 0;
  }

  .pause {
    width: 50%;
    margin-top: 0;
  }

  .continue {
    width: 50%;
    margin-top: 0;
  }

  .bar button {
    margin-top: 0;
    font-size: 1.8vh;
  }

  .bar-container .bar:nth-child(9) {
    justify-content: center;
    font-size: 2rem;
    margin-top: 0;
  }

  .card-container {
    align-content: flex-start;
    margin-top: 10px;
  }

  .card-container .card {
    height: 15%;
    width: 29%;
  }

  main {
    height: 71vh;
  }

  .modal-content {
    width: 100vw;
  }
}
