* {
  margin: 0;
  padding: 0;
}

body {
  animation: neon 9s infinite linear;
  background-color: #1a237e;
}
@keyframes neon {
  0% {
    background: #1a237e;
  }
  25% {
    background: #311b92;
  }
  50% {
    background: #880e4f;
  }
  75% {
    background: #004d40;
  }
  100% {
    background: #1a237e;
  }
}

#tree::-webkit-scrollbar,
#inp::-webkit-scrollbar {
  width: 5px;
  background-color: rgb(235, 41, 41);
}

#tree::-webkit-scrollbar-thumb,
#inp::-webkit-scrollbar-thumb {
  background-color: gray;
  border-radius: 5px;
}

#tree::-webkit-scrollbar:horizontal,
#inp::-webkit-scrollbar:horizontal {
  height: 7px;
}

#tree::-webkit-scrollbar-thumb:hover,
#inp::-webkit-scrollbar-thumb:hover {
  background-color: rgb(83, 82, 82);
}

.container {
  position: absolute;
  width: 80%;
  left: 10%;
  height: 80%;
  top: 10%;
}

.container #inp {
  position: relative;
  width: 80%;
  left: 10%;
  height: 10%;
  resize: none;
  font-size: x-large;
  text-align: center;
  border: 2px solid black;
}

.container .findContainer {
  position: relative;
  width: 80%;
  left: 10%;
  text-align: center;
}

.numContainer {
  width: 50px;
  height: 50px;
  display: inline-block;
  justify-content: center;
  align-items: center;
  background-color: white;
  margin-right: 10px;
  margin-top: 5px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
}

.container #tree {
  position: relative;
  width: 80%;
  margin-top: 1%;
  left: 10%;
  height: 85%;
  background-color: #f0f8ff;
  border: 2px solid red;
  overflow: auto;
}

.container h1 {
  position: relative;
  top: -10px;
  text-align: center;
}

.btn-container {
  position: relative;
  width: 80%;
  left: 10%;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn,
.btn-clear {
  position: relative;
  width: 80px;
  height: 30px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  background-color: rgb(108, 88, 235);
  margin-left: 5px;
}

.btn-clear {
  display: none;
}

.gold {
  animation: goldfill 1s forwards;
}

.gray {
  animation: brownfill 1s forwards;
}

.green {
  animation: greenfill 1s forwards;
}

@keyframes goldfill {
  100% {
    fill: rgb(255, 21, 0);
  }
}

@keyframes brownfill {
  100% {
    fill: rgb(128, 128, 128);
    transform: scale(0.9);
  }
}

@keyframes greenfill {
  100% {
    fill: rgb(128, 0, 0);
    transform: scale(1.1);
  }
}

.searchContainer {
  position: relative;
  width: 80%;
  left: 10%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.searchContainer input[type="number"] {
  padding: 5px;
  border: none;
  border-radius: 5px;
  text-align: center;
  background-color: #f1f1f1;
}

.searchContainer button {
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background-color: lightblue;
}

.resultContainer {
  position: relative;
  width: 80%;
  left: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.resultContainer h2 {
  text-align: center;
}

.resultContainer #traversalResult {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
}

#traversalContainer {
  margin-top: 20px;
}

.h1-neon-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  background: linear-gradient(
    115deg,
    #4fcf70,
    #fad648,
    #a767e5,
    #12bcfe,
    #44ce7b
  );
  background-size: 25% 100%;
  animation: slideAnimation 0.75s linear infinite;
  animation-play-state: paused;
  translate: -5% 0%;
  transition: translate 0.25s ease-out;
  z-index: -1;
}

.h1-neon-effect:hover::before {
  animation-play-state: running;
  transition-duration: 0.75s;
  translate: 0% 0%;
}

@keyframes slideAnimation {
  to {
    transform: translateX(-25%);
  }
}

.h1-neon-effect span {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  background: #000;
  color: #fff;
  border-radius: 3px;
  height: 100%;
  z-index: 1;
}

.container h1 {
  position: relative;
  top: -10px;
  text-align: center;
}

/* love and support wala */

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background-color: #1a237e;
  color: white;
}

.footer-text {
  font-size: 1.2rem;
  color: #fff;
}

.heart {
  color: red;
  animation: beat 0.5s infinite;
}

@keyframes beat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(2.3);
  }
}

.heart {
  display: inline-block;
  width: 26px;
  height: 24px;
  margin: 0 4px;
  vertical-align: middle;
}

.heart svg {
  fill: red;
  animation: beat 1s infinite;
}

@keyframes beat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* hemant ka colour  */

/* .animated-text {
  animation: colorChange 3s infinite;
}

@keyframes colorChange {
  0%, 100% {
    color: red;
  }
  25% {
    color: blue;
  }
  50% {
    color: green;
  }
  75% {
    color: purple;
  }
} */
