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

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 250px;
  background-color: #f3f3f3;
  padding: 15px;
  overflow-y: auto;
  position: relative;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar.closed {
  transform: translateX(-100%);
}

#panelArrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: #ff69b4;
  color: white;
  padding: 6px 12px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: bold;
  z-index: 1100;
  transition: left 0.3s ease;
}

.sidebar.closed ~ #panelArrow {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.sidebar.open ~ #panelArrow {
  left: 250px;
  border-radius: 0 5px 5px 0;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px 20px;
  position: relative;
  overflow-y: auto;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff8f0;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 500;
}

#startBtn {
  font-size: 1.2em;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background-color: #ff69b4;
  color: white;
  cursor: pointer;
}

#sequenceOutput {
  font-size: 1.5em;
  text-align: center;
  margin-top: 20px;
  white-space: pre-line;
}

#gifContainer img {
  max-height: 200px;
  margin-top: 15px;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}

.selectable {
  padding: 6px 10px;
  background-color: #ccc;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.selectable.selected {
  background-color: #b34ee9;
  color: white;
}

.hidden {
  display: none;
}