body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
}

.nav {
  width: 100vw;
  height: 10vh;
  background-color: #1f3b4d;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#grid {
  display: grid;
  grid-template-columns: repeat(58, 25px);
  grid-template-rows: repeat(21, 25px);
  gap: 1px;
  background-color: #f2f2f2;
  margin: 10px;
}

.cell {
  width: 25px;
  height: 25px;
  background-color: #fff;
  border: 1px solid #87d8f3;
  transition: background-color 0.2s ease;
}

.start {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.end {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wall {
  background-color: black;
}

.defs.unvisited i {
  border: 2px solid black;
}

.visited {
  background-color: rgba(0, 190, 218, 0.75);
  animation: colorTransition 1s ease-out;
}

/* @keyframes visitedStartNodePurpleAnimation {
  0% {
    transform: scale(.3);
    background-color: rgba(41, 4, 24, 0.75);
    border-radius: 100%;
  }

  50% {
    background-color: rgba(97, 0, 20, 0.75);
  }

  75% {
    transform: scale(1.2);
    background-color: rgba(216, 5, 141, 0.75)
  }

  100% {
    transform: scale(1.0);
    background-color: rgba(178, 67, 255, 0.75);
  }
} */

@keyframes colorTransition {
  0% {
    transform: scale(0.3);
    background-color: rgba(0, 0, 66, 0.75);
    border-radius: 100%;
  }

  50% {
    background-color: rgba(17, 104, 217, 0.75);
  }

  75% {
    transform: scale(1.2);
    background-color: rgba(0, 217, 159, 0.75);
  }

  100% {
    transform: scale(1);
    background-color: rgba(0, 190, 218, 0.75);
  }
}

.shortest-path {
  background-color: #ffff00;
  animation: visitedObjectAnimation 0.8s ease-out;
}

@keyframes visitedObjectAnimation {
  0% {
    transform: scale(0.3);
    background-color: white;
  }

  100% {
    transform: scale(1);
    background-color: yellow;
  }
}

.buttons {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.buttons button {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #87d8f3;
  color: #fff;
  transition: background-color 0.2s ease;
}

.buttons button:hover {
  background-color: #1f3b4d;
}

.nav select {
  padding: 8px;
  border: 1px solid #87d8f3;
  border-radius: 5px;
  background-color: #fff;
  color: #1f3b4d;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav select:hover {
  background-color: #f2f2f2;
}

.nav button {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #1f3b4d;
  color: #fff;
  transition: background-color 0.2s ease;
}

.nav button:hover {
  background-color: #87d8f3;
}
.middle {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
  margin-top: 3vh;
}
.message {
  text-align: center;
  /* width: 50%; */
  font-family: "Edu SA Beginner", cursive;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  margin: 15px 0px;
}

.defs {
  text-align: start;
  /* position: absolute;
  left: 25px;
  top: 100px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.3rem;
  margin: 0px 150px 0 150px;
}

img {
  width: 30px;
  height: 30px;
}

#algo-select {
  /* Your desired color change */
  background-color: #1f3b4d;
  /* You can also change other properties like text color */
  color: white;
  /* Add any other styles you want when hovering over the select element */
}

#ani-speed {
  background-color: #1f3b4d;
  /* You can also change other properties like text color */
  color: white;
  /* Add any other s*/
}

#instructions-content {
  display: none;
  width: 50%;
  height: 45%;
  border: 1px solid #ccc;
  padding: 10px 10px 10px 10px;
  cursor: pointer;
  position: absolute;
  /* background-color: #88ecec; */
  background-color: white;
  left: 25%;
  top: 25.2%;
  border-radius: 6px;
}

.image-container {
 
  text-align: center; /* Center the image within the container */
  position: absolute;
  top: 10px;
  right: 50px;
  margin-top: 10px; /* Add spacing between text and image */
}

.image-container img{

   width: 130px;
  height: 130px; /* Adjust the maximum height of the image */
}




