body {
 
  height: 100vh;
  margin: 0;
  background-color: bisque;
}
header{
  background-color: white;
  text-align: center;
  padding-top: 40px;
}

.con{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin-right: 80px;
}

.container {
  display: grid;
  gap: 1px;
  width: 500px;
  height: 500px;
  margin-right: 80px;

}

.grid-square {
  width: 100%;
  height: 100%;
  background-color: #dddddd;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.grid-square.colored {
  transition: background-color 0.2s ease;
  border-color: #ddd;

}
.grid-square.trail {
  transition: background-color 0.2s ease;
}



#slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

nav {
  height: 100%;
  padding: 10px;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
  margin-right: 80px;

}

.nav-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-box {
  width: 20px;
  height: 20px;
  border: 1px solid #333;
  cursor: pointer;
}

/* Corrected placement of the closing curly brace */
.color-palette.hidden {
  display: none;
}

.color-palette {
  align-self: center;
  width: 200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.color-palette div {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 3px black;
  border-radius: 0.5rem;
}

.color-palette div:hover {
  cursor: pointer;
  border: 1px solid #fff;
  box-shadow: 0 0 5px #fff;
}

.color-palette div:active {
  box-shadow: 0 0 10px black;
}

input[type=range] {
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 12.8px;
  cursor: pointer;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  background: #ac51b5;
  border-radius: 25px;
  border: 0px solid #000101;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 0px solid #000000;
  height: 20px;
  width: 39px;
  border-radius: 7px;
  background: #65001c;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -3.6px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #ac51b5;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 12.8px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  background: #ac51b5;
  border-radius: 25px;
  border: 0px solid #000101;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 0px solid #000000;
  height: 20px;
  width: 39px;
  border-radius: 7px;
  background: #65001c;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 12.8px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  border-width: 39px 0;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #ac51b5;
  border: 0px solid #000101;
  border-radius: 50px;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
  background: #ac51b5;
  border: 0px solid #000101;
  border-radius: 50px;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}
input[type=range]::-ms-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 0px solid #000000;
  height: 20px;
  width: 39px;
  border-radius: 7px;
  background: #65001c;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #ac51b5;
}
input[type=range]:focus::-ms-fill-upper {
  background: #ac51b5;
}

.custom-button {
  background-color: white;
  color: black;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s;
  cursor: pointer;
}

.custom-button:hover {
  background-color: black;
  color: white;
  border-color: black;
}

 