@keyframes example {
  0% {
    background-color: rgb(255, 255, 255);
    transform: scale(0.5);
  }
  50% {
    background-color: rgb(50, 140, 235);
    transform: scale(1.1);
  }
  100% {
    background-color: rgb(34, 148, 255);
    transform: scale(1);
  }
}
/* @keyframes spring {
  0% {
    background-color: rgba(67, 255, 195, 0.283);
    transform: scale(0.5);
  }
  20% {
    transform: scale(1.3);
  }
  40% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.3);
  }
  80% {
    transform: scale(0.8);
  }
  100% {
    background-color: rgb(34, 148, 255);
    transform: scale(1);
  }
} */

@keyframes spring {
  0% {
    background-color: rgba(0, 208, 255, 0.283);
    transform: scale(0.5);
    border-radius: 10px;
  }
  60% {
    transform: scale(1.1);
    background-color: rgba(13, 0, 255, 0.283);
  }
  100% {
    background-color: rgb(34, 148, 255);
    transform: scale(1);
    border-radius: 0px;
  }
}

@keyframes scan {
  0% {
    background-color: rgba(67, 255, 195, 0.283);
    transform: scale(0.1);
  }
  10% {
    transform: scale(1.2);
  }
  100% {
    background-color: rgb(34, 148, 255);
    transform: scale(1);
  }
}

@keyframes pathAnime {
  0% {
    transform: scale(0.1);
    background-color: rgb(167, 255, 195);
  }
  50% {
    transform: scale(1.6);
  }
  100% {
    background-color: rgb(34, 255, 104);
    transform: scale(1);
  }
}

@keyframes wallAnime {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes weightAnime {
  0% {
    transform: scale(0.1) translateY(30px);
  }
  80% {
    transform: scale(1.1) translateY(0px);
  }
  100% {
    transform: scale(1) translateY(0px);
  }
}

@keyframes cellAnime {
  0% {
    background-color: rgb(0, 110, 245);
    border-radius: 15px;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    background-color: white;
  }
}

html {
  font-family: "Anton", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.custom-title {
  margin: auto 1rem;
  font-weight: 500;
}

.board {
  display: grid;
  grid-template-columns: repeat(51, 30px);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  /* width: fit-content; */
  /* height: 600px; */
  margin-top: 1rem;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.nav-item :first-child {
  margin: 0 10px;
}
nav {
  width: 100%;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* .nav-container-icon{
  font-family: 'Anton', sans-serif;
  color: white;
  font-size: 3rem;
} */
/* .nav-body {
  width: 100%;
  height: 60px;
  display: flex;
  background-color: rgb(56, 56, 56);
  color: white;
}

.nav-container {
  padding: 10px;
  border: 1px solid rgb(145, 145, 145);
  color: rgb(221, 221, 221);
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-item {
  border: 1px solid black;
  flex: 1;
  height: 100%;
} */

.play_back_button {
  filter: invert(100%);
  display: flex;
  margin: 0px 10px;
  justify-content: center;
  align-items: center;
  width: 15px;
  height: 15px;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  background-color: rgb(189, 189, 189);
  border: solid 4px rgba(112, 112, 112, 0.4);
}
.play_back_button:hover {
  background-color: rgb(255, 120, 120);
}
.play_back_button img {
  width: 100%;
}

.board div {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  border: solid 1px rgba(213, 213, 213, 0.5);
  border-top: none;
  border-left: none;
}
.cell {
  width: 30px;
  height: 30px;
  /* box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15) inset;  */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: background-color 1000;
  animation-name: cellAnime;
}
.scaning {
  background-color: rgb(34, 148, 255);
  font-size: 14px;
  /* animation-duration: 500ms; */
  animation-name: spring;
  font-weight: 900;
}
.path {
  background-color: rgb(34, 255, 104);
  /* box-shadow: 0px 0px 18px rgba(255, 211, 54); */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  animation-name: pathAnime;
  /* animation-duration: 1s; */
}

.weight {
  /* border: solid 2px black; */
  background-image: url(img/weight.svg);
  background-repeat: no-repeat, repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white !important;
  font-size: 1rem !important;
  font-weight: 800;
  animation: weightAnime 0.2s ease-out;
}

.wall {
  background-color: rgb(53, 59, 67);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: gray;
  animation-name: wallAnime;
  border: none !important;
}
.target {
  background-image: url(img/destination.png);
  background-repeat: no-repeat, repeat;
  background-size: cover;
  border: solid 1px rgb(213, 213, 213);
  border-top: none;
  border-left: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: gray;
  animation-name: pathAnime;
}
.entry {
  /* background-color: rgb(255, 67, 67); */
  background-image: url("img/arrow%20.png");
  background-repeat: no-repeat, repeat;
  background-size: cover;
  border: solid 1px rgb(213, 213, 213);
  border-top: none;
  border-right: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: gray;
}
.candidate {
  background-color: rgb(160, 160, 160);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 900;
  color: rgb(0, 0, 0);
}
.nav-item {
  display: flex;
  width: 100%;
  min-width: 11rem;
  justify-content: center;
  align-items: center;
  /* margin: 0rem 2rem; */
  color: rgba(0, 0, 0, 0.5);
}

.legend {
  width: 100%;
  height: fit-content;
  background-color: #3f4851;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.legend__item {
  min-width: 160px;
  min-height: 30px;
  border-right: solid 1px rgb(138, 138, 138);
  border-left: solid 1px rgb(138, 138, 138);
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
}
.legend__item > div {
  margin: 0 0.8rem;
}
.legend__item__content {
  color: white;
  font-size: large;
  font-weight: 200;
}

.legend__item__symbol {
  height: 25px;
  width: 25px;
  padding: 0.1rem;
  border-radius: 0.4rem;
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
}
.legend__item__symbol img {
  width: 100%;
}

.legend__item__symbol__colorItem {
  width: 17px;
  height: 17px;
  border: solid 2px rgb(154, 154, 154);
}
.visited {
  background-color: rgb(34, 148, 255);
}
.wall_leg {
  background-color: rgb(53, 59, 67);
}

@keyframes anni {
  0%{
    height: 220px;
  }
  100%{
    height: 50px;
  }
}
.guide {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 300px;
  padding: 1rem;
  height: fit-content;
  border-radius: 0.6rem;
  background-color: #3f4851;
  opacity: 50%;
  transition: all 100ms;
  cursor: default;
}
.closeGuide {
  animation-name: anni;
  animation-duration: 200ms;
  height: 50px;
}
.closeGuide *:not(.guide__item__icon) {
  display: none;
}
.guide:hover {
  opacity: 100%;
}
.giude__header {
  font-size: 1.3rem;
  text-align: center;
  color: rgb(179, 179, 179);
}
.guide__item {
  color: rgb(179, 179, 179);
  width: fit-content;
  padding: 1rem;
  margin: 0;
  height: fit-content;
}
.guide__item__key {
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  border-radius: 0.2rem;
  margin: 0.5rem;
  width: 50px !important;
  background-color: rgb(40, 40, 40);
}

.hide {
  display: none !important;
}
.guide__item__icon {
  filter: invert(1);
  width: 20px;
  cursor: pointer;
  float: right;
}
@media only screen and (max-width: 600px) {
  .custom-title {
    display: none;
  }
}
.modal {
  width: 50px;
  height: 50px;
  background-color: red;
  position: absolute;
}

