.panel {
  background: #12121210;
  border-radius: 1rem;
  padding: 1rem;
}

.online-indicator {
  display: block;
  background: #999;
  border-radius: 100vw;
  min-width: .4rem;
  min-height: .4rem;
  max-width: .4rem;
  max-height: .4rem;
}

.ragdoll-list-item > .ragdoll-avatar {
  display: flex;
  flex-direction: column;
  min-width: 3rem;
  min-height: 3rem;
  max-width: 3rem;
  max-height: 3rem;
  filter: grayscale(1);
  background: linear-gradient(to top right, violet, coral);
  border-radius: 100vw;
}

.ragdoll-avatar > img {
  flex: 1;
  border-radius: inherit;
  border: 1px solid white;
  object-fit: cover;
  max-height: inherit;
}

.ragdoll-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ragdoll-list-item {
  display: flex;
  gap: .5rem;
  padding: .5rem 1rem;
  align-items: center;
  cursor: pointer;
  opacity: .5;
}

.ragdoll-list-item > h2 {
  font-size: 1em;
  font-weight: 400;
  font-style: italic;
}

.ragdoll-list-item.selected {
  opacity: 1;
}

.ragdoll-list-item.selected > .online-indicator {
  background: #07f007;
  box-shadow: 0 0 1rem #07f007;
}

.ragdoll-list-item.selected > .ragdoll-avatar {
  filter: grayscale(0);
}

.ragdoll-list-item.selected > h2 {
  font-style: normal;
  opacity: 1;
}

.ragdoll-list-item > span {
  display: block;
}

.form {
  position: relative;
  background: white;
  color: #121212;
  box-shadow: 0 0 10rem dodgerblue;
  width: 75%;
  padding: 1rem;
  border-radius: 1rem;
}

#app,
#nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 1rem auto;
  height: calc(100vh - 3rem);
  overflow-x: hidden;
}

#app {
  justify-content: space-between;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1000;
  overflow: hidden;
}

#nav {
  display: none;
}

#overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9000;
  background: #00000075;
  opacity: 0;
  transition: opacity .5s ease;
}

#overlay.show {
  opacity: 1;
}

#overlay > .form {
  max-width: 34rem;
  transition: opacity .5s ease, margin-top .5s ease;
  margin-top: 10vh;
  opacity: 0;
}

#overlay.show > .form {
  margin-top: 0;
  opacity: 1;
}

#input,
#output {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#output {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#output .img {
  width: calc(100% - 1rem);
  margin: 1rem .5rem;
  border-radius: 1rem;
  box-shadow: 0 0 5rem black;
  background: black;
}

#output .img > img {
  border-radius: inherit;
}

#output p {
  width: 60%;
  margin: 1rem .5rem;
  padding: 1rem;
  background: dodgerblue;
  border-radius: 1rem;
  color: white;
}

#input > input,
#input > button {
  display: block;
  min-height: 3rem;
  margin-bottom: .5rem;
  border: none;
  border-radius: .5rem;
  width: 100%;
  appearance: none;
  outline: none;
  background: black;
}

#input > input {
  background: #ffffff10;
  padding: 0 .5rem;
}

#input > button {
  background: dodgerblue;
}

#input > button:hover {
  background-color: white;
  color: dodgerblue;
}

#create-ragdoll-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  border-radius: 100vw;
  width: 4rem;
  height: 4rem;
  background: black;
  color: white;
  z-index: 1000;
}

#game {
  position: relative;
  width: 1024px;
  height: 576px;
  background: black url('http://localhost:3000/img/background.jpg') center bottom / 1024px 576px no-repeat;
}

#game.complete {
  background: black url('http://localhost:3000/img/background-open.jpg') center bottom / 1024px 576px no-repeat;
}

#player {
  position: absolute;
  left: 0;
  bottom: 160px;
  width: 64px;
  height: 96px;
  background: url('http://localhost:3000/img/player-idle.gif') center bottom / 240px 160px no-repeat;
}

#player.run {
  background: url('http://localhost:3000/img/player-run.gif') center bottom / 240px 160px no-repeat;
}

#player.left {
  transform: rotateY(-180deg);
}

#input {
  visibility: hidden;
}

#input.visible {
  visibility: visible;
}
