/* General Styles */
body {
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.input-container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.output-container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.hidden {
  display: none;
}

h1 {
  text-align: center;
}

/* Rubik's Cube Styles */
#cube {
  position: relative;
  margin: auto;
  margin-top: 30px;
  width: 200px;
  height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-30deg);
}

#cube div {
  position: absolute;
  width: 200px;
  height: 200px;
}

#cube table {
  margin: 0 auto;
  height: 100%;
  width: 100%;
  border-spacing: 0;
}

#cube td {
  width: 50%;
  height: 50%;
  border-style: solid;
  background-color: black;
}

#cube button {
  width: 100%;
  height: 100%;
  border: none;
  background-color: rgb(150, 150, 150);
  cursor: pointer;
}

#cube button:active {
  filter: brightness(90%);
}

#right {
  transform: rotateY(90deg) translateZ(100px);
}
#front {
  transform: rotateY(0deg) translateZ(100px);
}
#left {
  transform: rotateY(-90deg) translateZ(100px);
}
#back {
  transform: rotateY(180deg) translateZ(100px);
}
#top {
  transform: rotateX(90deg) rotateZ(0deg) translateY(-100px);
  transform-origin: top center;
}
#bottom {
  transform: rotateX(90deg) rotateZ(0deg) translateY(100px);
  transform-origin: bottom center;
}

/* Color Palette Styles */
.color-palette {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #eaeaea;
  margin-top: 10px;
  z-index: 0;
}

.color-box {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}

.color-box.selected {
  border-color: black;
}

.white { background-color: #ffffff; }
.yellow { background-color: #ffff00; }
.red { background-color: #ff0000; }
.orange { background-color: #ffa500; }
.blue { background-color: #00bbff; }
.green { background-color: #00ff00; }

/* Solve Button Styles */
#solve-btn {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 20px;
  background-color: #2c9cff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#solve-btn:hover {
  background-color: #0077ff;
}

#solve-btn:active {
  background-color: #005bbd;
}

.button-container {
  display: flex;
  gap: 10px;
  margin-top: -40px;
  z-index: 0;
}

/* Output Styles */

#final-alg {
  text-align: center;
  margin-left: 10px;
  margin-right: 10px;
}

#done-btn {
  margin-top: 30px;
}