/*start global rules*/
:root {
  --card-front-color:#141214;
  --card-back-color:#02b3e4;
  --failed-try-color-alt:red;
  --success-try-color-alt:#FFD700;
}

* {
  box-sizing: border-box;
  text-decoration: none !important;
  list-style: none;
}

/*end global rules*/
/* helpers*/
body .congrats-message .congrats-container .congrats-content ul .rating .stars, body .game-info .stars {
  display: inline-block;
  color: #FFD700;
  padding: 0 10px 0 0;
}
body .congrats-message .congrats-container .congrats-content ul .rating .stars li, body .game-info .stars li {
  display: inline-block;
}

body .congrats-message .congrats-container .congrats-content ul .rating, body .congrats-message .congrats-container .congrats-content ul .total-time, body .congrats-message .congrats-container .congrats-content ul .total-moves {
  margin-top: 15px;
}
@media screen and (max-width: 540px) {
  body .congrats-message .congrats-container .congrats-content ul .rating, body .congrats-message .congrats-container .congrats-content ul .total-time, body .congrats-message .congrats-container .congrats-content ul .total-moves {
    margin-top: 5px;
  }
}
@media screen and (max-width: 280px) {
  body .congrats-message .congrats-container .congrats-content ul .rating, body .congrats-message .congrats-container .congrats-content ul .total-time, body .congrats-message .congrats-container .congrats-content ul .total-moves {
    margin-top: 2px;
  }
}

/* end helpers*/
/* body */
body {
  font-family: "Permanent Marker", cursive;
  /* header */
  /* end header*/
  /* game info */
  /* end game info */
  /* end game cards container */
  /* end game cards container */
  /* congratulations message */
  /* end congratulations message */
}
body header {
  text-align: center;
}
body header h1 {
  font-family: "Gloria Hallelujah", cursive;
  font-size: 45px;
  margin-bottom: 10px;
}
@media screen and (max-width: 540px) {
  body header h1 {
    font-size: 40px;
  }
}
@media screen and (max-width: 414px) {
  body header h1 {
    font-size: 35px;
  }
}
@media screen and (max-width: 320px) {
  body header h1 {
    font-size: 28px;
  }
}
body .game-info {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
@media screen and (max-width: 540px) {
  body .game-info {
    font-size: 12px;
  }
}
@media screen and (max-width: 375px) {
  body .game-info {
    font-size: 10px;
  }
}
body .game-info .timer {
  display: inline-block;
  padding-left: 10px;
}
body .game-info .fa-redo-alt {
  padding-left: 10px;
  cursor: pointer;
}
body .game-container {
  width: 50vw;
  background-color: #716F71;
  margin: 0 auto;
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
@media screen and (max-width: 1024px) {
  body .game-container {
    gap: 20px;
  }
}
@media screen and (max-width: 912px) {
  body .game-container {
    width: 60vw;
    margin-top: 10px;
  }
}
@media screen and (max-width: 820px) {
  body .game-container {
    width: 70vw;
  }
}
@media screen and (max-width: 768px) {
  body .game-container {
    width: 80vw;
  }
}
@media screen and (max-width: 540px) {
  body .game-container {
    gap: 20px;
  }
}
@media screen and (max-width: 414px) {
  body .game-container {
    gap: 10px;
    padding: 15px;
  }
}
body .game-container .card {
  width: calc( ( 100% - ( 3 * 30px ) ) / 4);
  height: 140px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
}
@media screen and (max-width: 1024px) {
  body .game-container .card {
    width: calc( ( 100% - ( 3 * 20px ) ) / 4);
    height: 110px;
  }
}
@media screen and (max-width: 768px) {
  body .game-container .card {
    height: 140px;
  }
}
@media screen and (max-width: 540px) {
  body .game-container .card {
    width: calc( ( 100% - ( 3 * 20px ) ) / 4);
    height: 90px;
  }
}
@media screen and (max-width: 414px) {
  body .game-container .card {
    width: calc( ( 100% - ( 3 * 10px ) ) / 4);
    height: 60px;
  }
}
@media screen and (max-width: 320px) {
  body .game-container .card {
    height: 50px;
  }
}
@media screen and (max-width: 320px) {
  body .game-container .card {
    height: 40px;
  }
}
body .game-container .card .card-back, body .game-container .card .card-front {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  position: absolute;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
body .game-container .card .card-front {
  background-color: var(--card-front-color);
  cursor: pointer;
}
body .game-container .card .card-back {
  background-color: var(--card-back-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 45px;
  transform: rotateY(180deg);
  transition: 0.5s;
}
@media screen and (max-width: 540px) {
  body .game-container .card .card-back {
    font-size: 30px;
  }
}
@media screen and (max-width: 412px) {
  body .game-container .card .card-back {
    font-size: 25px;
  }
}
@media screen and (max-width: 280px) {
  body .game-container .card .card-back {
    font-size: 20px;
  }
}
body .game-container .card.showCards {
  transform: rotateY(180deg);
}
body .game-container .card.flipped, body .game-container .card.has-flipped {
  transform: rotateY(180deg);
  pointer-events: none;
}
body .game-container.stop-clicking {
  pointer-events: none;
}
body .congrats-message {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
  display: none;
}
body .congrats-message .congrats-container {
  width: 60%;
  margin: 0 auto;
  margin-top: 80px;
  padding: 20px 25px;
  border-radius: 5px;
  background-color: #ffffff;
  transition: 1s;
  transform: translateY(-80px);
  display: none;
}
@media screen and (max-width: 1024px) {
  body .congrats-message .congrats-container {
    width: 80%;
  }
}
@media screen and (max-width: 768px) {
  body .congrats-message .congrats-container {
    width: 80%;
  }
}
@media screen and (max-width: 414px) {
  body .congrats-message .congrats-container {
    width: 95%;
  }
}
@media screen and (max-width: 280px) {
  body .congrats-message .congrats-container {
    padding: 10px 15px;
  }
}
body .congrats-message .congrats-container .header {
  display: flex;
  justify-content: space-between;
}
body .congrats-message .congrats-container .header h2 {
  color: #333;
  font-size: 35px;
  font-weight: bold;
  font-family: Tahoma, Arial, sans-serif;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0;
}
@media screen and (max-width: 768px) {
  body .congrats-message .congrats-container .header h2 {
    font-size: 30px;
  }
}
@media screen and (max-width: 540px) {
  body .congrats-message .congrats-container .header h2 {
    font-size: 20px;
  }
}
@media screen and (max-width: 414px) {
  body .congrats-message .congrats-container .header h2 {
    font-size: 18px;
  }
}
@media screen and (max-width: 280px) {
  body .congrats-message .congrats-container .header h2 {
    font-size: 15px;
  }
}
body .congrats-message .congrats-container .header .close {
  color: #333;
  transition: 0.3s;
  cursor: pointer;
}
@media screen and (max-width: 280px) {
  body .congrats-message .congrats-container .header .close {
    font-size: 15px;
  }
}
body .congrats-message .congrats-container .header .close:hover {
  color: #FFD700;
}
body .congrats-message .congrats-container .congrats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 22px;
  font-family: "Gloria Hallelujah", cursive;
}
@media screen and (max-width: 768px) {
  body .congrats-message .congrats-container .congrats-content {
    font-size: 18px;
  }
}
@media screen and (max-width: 540px) {
  body .congrats-message .congrats-container .congrats-content {
    font-size: 15px;
  }
}
@media screen and (max-width: 414px) {
  body .congrats-message .congrats-container .congrats-content {
    font-size: 12px;
  }
}
@media screen and (max-width: 280px) {
  body .congrats-message .congrats-container .congrats-content {
    font-size: 10px;
  }
}
body .congrats-message .congrats-container .congrats-content ul {
  padding-left: 0;
}
body .congrats-message .congrats-container .congrats-content .play-again {
  font-family: "Gloria Hallelujah", cursive;
  background-color: #141214;
  color: white;
  width: 45%;
  padding: 10px 0;
  margin-top: 10px;
  border-radius: 5px;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
@media screen and (max-width: 540px) {
  body .congrats-message .congrats-container .congrats-content .play-again {
    font-size: 15px;
  }
}
@media screen and (max-width: 414px) {
  body .congrats-message .congrats-container .congrats-content .play-again {
    font-size: 12px;
  }
}
@media screen and (max-width: 280px) {
  body .congrats-message .congrats-container .congrats-content .play-again {
    font-size: 10px;
    padding: 7px 0;
    width: 55%;
  }
}
body .congrats-message .congrats-container.modal {
  transform: translateY(0px);
}

/* end body *//*# sourceMappingURL=style.css.map */