body,
html {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  background-color: #c7c7c7;
  background-image: url("images/coffee-brown-cream-chess-board-background-vector.jpg");
  background-size: 20%;
  overflow: hidden;
  font-family: "Belleza", sans-serif;
  /* background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23404040' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
}

body::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 192, 203, 0.562);
  z-index: 0;
}

#container {
  margin-top: 40px;
  width: 835px;
  height: 400px;
  padding: 0;
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translate(-48%, 0%);
}

/* Full screen center layout */
#startScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.0);
}

#leaderboardScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
}

#leaderboardList {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  width: 250px;
}

#leaderboardList li {
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  border-radius: 6px;
}

#backBtn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: 'Belleza', sans-serif;
  letter-spacing: 0.5px;
}

#clearBtn {
  margin-top: 3px;
  display: block;
  width: 100%;
  padding: 10px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: 'Belleza', sans-serif;
  letter-spacing: 0.5px;
}

#backBtn:hover {
  opacity: 0.82;
}

.start-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 40px;
  background: rgba(255, 240, 235, 0.9);
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  text-align: center;
}

/* Title */
#startScreen h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

/* Input box */
#playerName {
  padding: 12px 16px;
  width: 250px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
}

/* Button */
#startGameBtn {
  padding: 10px 20px;
  background: #ff7a18;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

#GameBtn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ff7a18;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

/* Hover effect */
#startGameBtn:hover {
  background: #e56700;
}

.me {
  position: relative;
  background-size: 800px 400px;
  background-repeat: no-repeat;
  display: inline-block;
  margin: 2.2px;
  margin-top: -0.5px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: 0.2s;
}

.full {
  height: 400px;
  width: 800px;
  border-radius: 15px;
}


/* @media (max-width: 767px) {
  .full {
    width: 95% !important;
    height: auto !important;
    aspect-ratio: 2 / 1.13;
    border-radius: 15px;
  }

  #container {
    width: 100%;
  }

  .me {
    background-size: contain;
  }

  .start {
    position: absolute;
    top: 26% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 18px 45px;
  }

} */

.me_0 {
  height: 133.33px;
  width: 133.33px;
  background-position: -0px -0px;
}

.me_1 {
  height: 133.33px;
  width: 133.33px;
  background-position: -133.33px -0px;
}

.me_2 {
  height: 133.33px;
  width: 133.33px;
  background-position: -266.66px -0px;
}

.me_3 {
  height: 133.33px;
  width: 133.33px;
  background-position: -399.99px -0px;
}

.me_4 {
  height: 133.33px;
  width: 133.33px;
  background-position: -533.32px -0px;
}

.me_5 {
  height: 133.33px;
  width: 133.33px;
  background-position: -666.65px -0px;
}

.me_6 {
  height: 133.33px;
  width: 133.33px;
  background-position: -0px -133.33px;
}

.me_7 {
  height: 133.33px;
  width: 133.33px;
  background-position: -133.33px -133.33px;
}

.me_8 {
  height: 133.33px;
  width: 133.33px;
  background-position: -266.66px -133.33px;
}

.me_9 {
  height: 133.33px;
  width: 133.33px;
  background-position: -399.99px -133.33px;
}

.me_10 {
  height: 133.33px;
  width: 133.33px;
  background-position: -533.32px -133.33px;
}

.me_11 {
  height: 133.33px;
  width: 133.33px;
  background-position: -666.65px -133.33px;
}

.me_12 {
  height: 133.33px;
  width: 133.33px;
  background-position: -0px -266.66px;
}

.me_13 {
  height: 133.33px;
  width: 133.33px;
  background-position: -133.33px -266.66px;
}

.me_14 {
  height: 133.33px;
  width: 133.33px;
  background-position: -266.66px -266.66px;
}

.me_15 {
  height: 133.33px;
  width: 133.33px;
  background-position: -399.99px -266.66px;
}

.me_16 {
  height: 133.33px;
  width: 133.33px;
  background-position: -533.32px -266.66px;
}

.me_17 {
  height: 133.33px;
  width: 133.33px;
  background-position: -666.65px -266.66px;
}

.prevent_click {
  pointer-events: none;
}

.correct {
  border-radius: 0px;
  box-shadow: 0 0 0 transparent, 0 0 0 transparent;
  animation: corect 0.5s ease;
  animation-delay: 0.2s;
}

@keyframes corect {
  0% {
    transform: scale(1);
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  }

  50% {
    transform: scale(1.25);
    border-radius: 5px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  }

  100% {
    transform: scale(1);
    border-radius: 0px;
    box-shadow: 0 0 0 transparent, 0 0 0 transparent;
  }
}

.pre_img {
  margin-top: 10px;
  /* width: 100%; */
  position: absolute;
  /* left: 100px; */
  left: 50%;
  transform: translateX(-50%);
}

.pre_img li {
  display: inline-block;
  list-style: none;
}

.pre_img li img {
  width: 150px;
  height: 75px;
  position: relative;
  cursor: pointer;
}

.cover {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.38);
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.score {
  margin: 13% auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #666;
  width: 300px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

#scr_head {
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  /* font-family: cursive; */
  color: #3d3d3d;
}

#scr_time {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  /* font-family: cursive; */
  color: #3d3d3d;
}

#scr_moves {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  /* font-family: cursive; */
  color: #3d3d3d;
}


.reset {
  padding: 15px 35px;
  display: none;
}

.start {
  padding: 15px 35px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 100px;
}

.OK {
  margin-top: 15px;
  padding: 10px 30px;
  cursor: pointer;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button {
  margin: 0px 10px 10px 0px;
  border-radius: 10px;
  /* font-family: cursive; */
  font-size: 25px;
  color: #FFF;
  text-decoration: none;
  background-color: #2e2eff;
  border-bottom: 5px solid #2e2eff;
  text-shadow: 0px -2px #2e2eff;
  /* background-color: #E74C3C; */
  /* border-bottom: 5px solid #BD3E31; */
  /* text-shadow: 0px -2px #BD3E31; */
  z-index: 999;
  transition: all 0.1s;
  -webkit-transition: all 0.1s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.button:active {
  border-bottom: 1px solid #BD3E31;
}

.i {
  text-align: center;
  /* font-family: cursive; */
  font-weight: 550;
  color: #3c3c3c;
}

#SolvePuzzleText {
  font-size: 3rem;
  text-align: center;
  /* position: absolute; */
  /* top: 5%; */
  text-shadow: 1px 1px 8px #000000b8;
  /* background-color: #dfaea3; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  /* z-index: 999; */
  /* font-family: cursive; */
  border-radius: 10px;
  padding: 0;
  margin: 0 15px 15px 15px;
  color: white;
  width: 800px;
  /* background-color: #3c3c3ca4; */
  /* 
  margin-top: -10px; */
}

/* 
@media (max-width: 767px) {
  :root {
    --boxesSize: '30px';
  }
  .me_0 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: -0px -0px;
  }

  .me_1 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -1) + 0px) -0px;
  }

  .me_2 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -2) + 0px) -0px;
  }

  .me_3 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -3) + 0px) -0px;
  }

  .me_4 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -4) + 0px) -0px;
  }

  .me_5 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -5) + 0px) -0px;
  }

  .me_6 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: -0px calc((var(--boxesSize) * -1) + 0px);
  }

  .me_7 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -1) + 0px) calc((var(--boxesSize) * -1) + 0px);
  }

  .me_8 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -2) + 0px) calc((var(--boxesSize) * -1) + 0px);
  }

  .me_9 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -3) + 0px) calc((var(--boxesSize) * -1) + 0px);
  }

  .me_10 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -4) + 0px) calc((var(--boxesSize) * -1) + 0px);
  }

  .me_11 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -5) + 0px) calc((var(--boxesSize) * -1) + 0px);
  }

  .me_12 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: -0px calc((var(--boxesSize) * -2) + 0px);
  }

  .me_13 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -1) + 0px) calc((var(--boxesSize) * -2) + 0px);
  }

  .me_14 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -2) + 0px) calc((var(--boxesSize) * -2) + 0px);
  }

  .me_15 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -3) + 0px) calc((var(--boxesSize) * -2) + 0px);
  }

  .me_16 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -4) + 0px) calc((var(--boxesSize) * -2) + 0px);
  }

  .me_17 {
    height: var(--boxesSize);
    width: var(--boxesSize);
    background-position: calc((var(--boxesSize) * -5) + 0px) calc((var(--boxesSize) * -2) + 0px);
  }
} */


canvas {
  overflow-y: hidden;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  position: absolute;
}
