* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  background-color: #fdf273;
  font-family: 'Montserrat','Arial', sans-serif;
}

.wrapper {
  margin: 0 auto;
  width: 300px;
}

h1 {
  margin: 25px 0;
  text-align: center;
  text-shadow: 2px 2px 5px black;
  font-family: 'Cookie', cursive;
  font-size: 50px;
  color: white;
}

button {
  cursor: pointer;
  font-family: 'Montserrat','Arial', sans-serif;
}

section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  height: 50px;
}

section .game-results {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  height: 100%;
  width: 50%;
  background-color: #5BC8AC;
  border-radius: 10px;
  color: white;
}

section .game-results .flex-child {
  text-align: right;
  width: 50%;
  font-size: 12px;
}

section .game-results .move-text, section .game-results .time-text {
  padding: 6px 6px 0 0;
  text-transform: uppercase;
  font-weight: 550;
}

section .game-results .move-result, section .game-results .time-result {
  padding: 3px 8px 6px 0;
  font-family: 'Montserrat', sans-serif;
}

section .game-results .time-result {
  color: #fdf273;
}

section .game-results .seconds {
  color: white;
  font-weight: normal;
}

.btn-restart {
  height: 100%;
  width: 30%;
  padding: 5px 10px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
}

.game-btn {
  border: none;
  border-radius: 10px;
  -webkit-transition: color .3s, background-color .3s;
  transition: color .3s, background-color .3s;
  background-color: #5BC8AC;
  color: white;
}

.game-btn:hover {
  color: #5BC8AC;
  background-color: white;
}

.game-container {
  position: relative;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  -ms-grid-rows: (1fr)[4];
      grid-template-rows: repeat(4, 1fr);
  gap: 2%;
  width: 300px;
  height: 300px;
  margin: 15px auto;
}

.game-puzzle {
  border-radius: 15px;
  background-color: #aaa7a4;
}

.puzzle-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background-color: #36cca6;
  cursor: pointer;
  -webkit-animation: move-puzzle .3s ease;
          animation: move-puzzle .3s ease;
}

@-webkit-keyframes move-puzzle {
  0% {
    -webkit-transform: scale(0.7);
            transform: scale(0.7);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes move-puzzle {
  0% {
    -webkit-transform: scale(0.7);
            transform: scale(0.7);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

.right-position {
  background-color: #F18D9E;
}

.puzzle-number {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 70px;
  font-family: 'Cookie', cursive;
  color: white;
}

.pause-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  height: 105%;
  width: 105%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  border-radius: 10px;
  background-color: #cfcfcfc9;
  z-index: 2;
}

.pause-bar .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  height: 70px;
  width: 70px;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 3;
  background: none;
  border: none;
}

.pause-bar .play-btn .play-svg {
  height: 100%;
  width: 100%;
}

.congratulations-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  height: 105%;
  width: 105%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  border-radius: 10px;
  background-color: #e4ddd2d0;
  z-index: 2;
  opacity: .95;
}

.congratulations-bar.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-animation: congratulations .5s ease 1;
          animation: congratulations .5s ease 1;
}

.congratulations-bar .congratulations {
  font-weight: bold;
  font-family: 'Cookie', cursive;
  font-size: 43px;
  letter-spacing: 4px;
  text-shadow: 0 0 2px #535353;
  color: #fdf273;
}

.congratulations-bar .final-score {
  width: 60%;
  text-align: center;
  font-weight: bold;
  color: #F18D9E;
  text-shadow: 0px 0px 1px #535353;
}

.congratulations-bar .final-score .final-moves, .congratulations-bar .final-score .final-time {
  color: #fdf273;
}

.congratulations-bar .btn-play-again {
  padding: 15px 30px;
  font-size: 17px;
}

@-webkit-keyframes congratulations {
  from {
    opacity: 0;
    -webkit-transform: translate(-50%, -50%) scale(0);
            transform: translate(-50%, -50%) scale(0);
  }
  to {
    opacity: .95;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes congratulations {
  from {
    opacity: 0;
    -webkit-transform: translate(-50%, -50%) scale(0);
            transform: translate(-50%, -50%) scale(0);
  }
  to {
    opacity: .95;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
}

.btn-pause-play {
  display: block;
  margin: 0 auto;
  padding: 15px 30px;
  font-size: 20px;
}

.btn-restart.disactive, .btn-pause-play.disactive, .game-results.disactive {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: #AAA7A4;
  color: white;
}

.how-to-play {
  width: 90%;
  margin: 20px auto 0 auto;
  font-weight: 450;
  text-align: center;
  color: #aaa7a4;
}

.how-to-play .order {
  font-size: 18px;
  color: #F18D9E;
}

.contact {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 10px auto 0;
  width: 60%;
  font-size: 20px;
}

.my-mail {
  color: #5BC8AC;
  font-size: 100%;
}

.btn-mail {
  background: none;
  border: none;
}

.contact-item {
  -webkit-transition: color .3s, -webkit-transform .3s;
  transition: color .3s, -webkit-transform .3s;
  transition: transform .3s, color .3s;
  transition: transform .3s, color .3s, -webkit-transform .3s;
}

.contact-item:hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.icon {
  height: 22px;
  width: 22px;
}

.mail-info {
  position: absolute;
  top: -50px;
  display: none;
  width: 90vw;
  padding: 10px;
  border-radius: 10px;
  background-color: #7b787ce8;
  text-align: center;
  font-size: 15px;
  color: white;
}

.mail-info.active {
  display: block;
  -webkit-animation: showMailInfo 4s ease 1;
          animation: showMailInfo 4s ease 1;
}

@-webkit-keyframes showMailInfo {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  30% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  70% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}

@keyframes showMailInfo {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  30% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  70% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}

@media (min-width: 375px) {
  section .game-results .flex-child {
    font-size: 14px;
  }
  section button {
    font-size: 15px;
  }
}

@media (min-width: 411px) {
  .wrapper {
    width: 350px;
  }
  .game-container {
    width: 350px;
    height: 350px;
  }
  .congratulations-bar .btn-play-again {
    font-size: 22px;
  }
}

@media (min-width: 520px) {
  .game-results {
    width: 40%;
  }
  .mail-info {
    width: 300px;
  }
}
/*# sourceMappingURL=main.css.map */