* {
  image-rendering: pixelated;
}

* {
  margin: 0;
}

* {
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font:
    20pt verdana,
    "DejaVu Sans",
    sans-serif;
  color: white;
  text-shadow: #444 1px 1px;
}

body {
  position: absolute;
}

@property --color {
  syntax: "<color>";
  inherits: false;
  /* initial-value: #ecfafd; */
  initial-value: #000000;
}

@property --color2 {
  syntax: "<color>";
  inherits: false;
  /* initial-value: #c5d5d8; */
  initial-value: #000000;
}

body {
  background: radial-gradient(
    ellipse at center,
    var(--color) 0%,
    var(--color2) 100%
  ); /* W3C */
  transition:
    --color 1000ms,
    --color2 1000ms;
}

a {
  cursor: pointer;
  color: #f46;
  transition: color 0.25s;
}

a:hover {
  color: #e05;
  transition: color 0.25s;
}

.link {
  text-decoration: underline;
  cursor: pointer;
  color: #ffee00;
}

table {
  border: 0;
  padding: 0;
  margin: 0;
}

#names {
  position: fixed;
  top: 4px;
  left: 4px;
  font-size: 12px;
  width: 80%;
}

#names .name {
  float: left;
  position: relative;
  padding: 4px;
  margin: 2px;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  min-width: 50px;
  text-align: center;
  cursor: pointer;
  line-height: 15px;
}

#names .name.me:after {
  content: "Me";
  position: absolute;
  top: -4px;
  right: 50%;
  font-size: 10px;
}

#names .name.owner:before {
  content: url("/crown.png");
  position: absolute;
  top: -8px;
  left: 4px;
}

#names .name.play {
  transform: translateY(-4px);
  -webkit-transform: translateY(-4px);
}

#names .name.muted-notes {
  color: #f88;
}

#names .name.muted-notes:after {
  content: "MUTE";
  position: absolute;
  top: -4px;
  right: 50%;
  font-size: 8px;
}

#names .name.muted-chat {
  color: #f88;
}

#names .name.muted-chat:after {
  content: "MUTE";
  position: absolute;
  top: -4px;
  right: 50%;
  font-size: 8px;
}
.slide {
  left: 0;
}

.ease-out {
  transition: left 0.2s ease-out;
}

.ease-in {
  transition: left 0.2s ease-in;
}

.slide-left {
  left: -100%;
}

.slide-right {
  left: 100%;
}

.cursor {
  width: 16px;
  height: 24px;
  background: url("/cursor.png");
  position: absolute;
  pointer-events: none;
  margin-left: -2px;
  margin-top: -2px;
  left: 200%;
  top: 100%;
}

.cursor .name {
  display: inline;
  position: relative;
  left: 16px;
  top: 8px;
  pointer-events: none;
  color: #fff;
  background: #000;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  white-space: nowrap;
  padding: 1px;
  font-size: 10px;
}

.cursor.owner .name:after {
  content: url("/crown.png");
  position: relative;
  top: -8px;
  left: 0px;
}

.cursor .name {
  display: inline-block;
}

/* .cursor .spotlight { display: none; position: relative; left: -14px; top: -9px; width: 32px; height: 32px;
	 border: 4px solid white; -webkit-border-radius: 100%; } */
.cursor {
  transition:
    top 100ms,
    left 100ms;
}

.participant-menu {
  display: none;
  position: fixed;
  background: black;
  width: 150px;
  font-size: 12px;
  padding: 0px;
  margin: 0px;
  border-radius: 2px;
}

.participant-menu:last-child .menu-item:hover {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.participant-menu .info {
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  user-select: text;
}

.participant-menu .info:hover {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.participant-menu .menu-item {
  cursor: pointer;
  margin: 0px;
  padding: 15px 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.participant-menu .menu-item:hover {
  background: rgba(255, 255, 255, 0.4);
}

.participant-menu .menu-item.clicked {
  background: rgba(255, 255, 255, 0.5);
}

#crown {
  position: absolute;
  width: 16px;
  height: 16px;
  background: url("/crown.png") no-repeat;
  cursor: pointer;
  font-size: 10px;
}

#crown span {
  margin-left: 16px;
  margin-top: 2px;
}

#room-notice {
  position: fixed;
  top: 20%;
  width: 100%;
  text-align: center;
  opacity: 0.5;
  font-size: 20px;
  pointer-events: none;
  display: none;
}

#room-notice p {
  margin: 1em;
}

#bottom {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 60px;
  /* background: #9a9; */
  background: var(--color2);
  margin-bottom: 3px;
  transition:
    --color 1000ms,
    --color2 1000ms;
}

#room,
#room * {
  cursor: pointer;
}

#room {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px;
  width: 240px;
  height: 12px;
  background: #898;
  border: 1px solid #aba;
  cursor: pointer;
  margin: 4px 24px;
  font-size: 12px;
}

#room .info {
  white-space: nowrap;
  line-height: 12px;
  overflow: hidden;
  height: 20px;
}

#room .info.lobby {
  color: #eeffbb;
}

#room .info.not-visible {
  color: #0d3761;
}

/* #room .info.crownsolo:after { content: url('/crownsolo.png'); position: relative; top: 2px; margin-left: 4px; }
 #room .info.no-chat:after { content: url('/no-chat.png'); position: relative; top: 2px; margin-left: 4px; } */
#room .info.banned {
  color: rgba(255, 64, 64, 0.5);
}

#room .expand {
  width: 24px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  background: #aba url("/arrow.png") no-repeat center 0%;
}

#room .more {
  display: none;
  position: absolute;
  bottom: 100%;
  left: -1px;
  width: 100%;
  overflow: hidden;
  overflow-y: scroll;
  background: #898;
  border: 1px solid #aba;
  max-height: 600px;
}

#room .more > div {
  margin: 0;
  padding: 3px 6px 0px 6px;
  width: 100%;
  height: 20px;
}

#room .more .info:hover {
  background: #aba;
}

#room .more .new {
  background: #9a9;
}

#room .more .new:hover {
  background: #cdc;
}

.ugly-button {
  height: 12px;
  font-size: 12px;
  background: rgba(170, 187, 170, 0.35);
  border: 1px solid #898;
  padding: 5px;
  cursor: pointer;
  line-height: 12px;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  width: 100px;
  overflow: hidden;
  white-space: nowrap;
}

.ugly-button:hover {
  background: rgba(187, 204, 170, 0.35);
}

.ugly-button.stuck {
  background: rgba(204, 187, 170, 0.35);
}

#new-room-btn {
  position: absolute;
  left: 300px;
  top: 4px;
}

#play-alone-btn {
  position: absolute;
  left: 420px;
  top: 4px;
}

#room-settings-btn {
  position: absolute;
  left: 660px;
  top: 4px;
  display: none;
}

#social #more-button {
  margin-top: 4px;
  width: 77px;
  height: 90px;
  border-radius: 5px;
  border: 1px solid #abb;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 1px 1px 8px #bb9;
  color: #788;
  text-shadow: none;
  background: url("/web/20150317155006im_/http://www.multiplayerpiano.com/kitten1.png")
    0px 4px no-repeat;
  background-color: #dee;
}

#social #more-button:hover {
  color: #899;
  background-color: #e8f8f0;
  transition: background-color 0.25s;
}

#tooltip {
  position: absolute;
  pointer-events: none;
  background: #000;
  color: #fff;
  font-size: 10px;
}

.knob {
  cursor: pointer;
}

.switched-on {
  background: #ff8;
}

#status {
  position: absolute;
  left: 0px;
  bottom: 10px;
  width: 320px;
  height: 20px;
  padding: 5px;
  font-size: 20px;
  font-weight: 800;
  line-height: 20px;
  pointer-events: none;
}

#status .number {
  font-size: 35px;
}

#banner {
  width: 468px;
  height: 60px;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  display: none;
}

#banner a {
  color: #ffdd00;
}

.relative {
  position: relative;
  width: 100%;
  height: 100%;
}

.title {
  border-bottom: 1px solid #f84;
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

#modal {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  display: none;
}

#modal .bg {
  width: 100%;
  height: 100%;
  background: #48a;
  opacity: 0.5;
  position: absolute;
  left: 0;
  top: 0;
}

#modal,
#modal * {
  user-select: text;
}

.dialog {
  background: #cdc;
  width: 400px;
  height: 100px;
  position: fixed;
  left: 50%;
  top: 50%;
  margin-left: -200px;
  margin-top: -50px;
  padding: 10px;
  border: 1px solid #9a9;
  overflow: hidden;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  box-shadow: 0px 0px 8px #000;
  -webkit-box-shadow: 0px 0px 8px #000;
  -moz-box-shadow: 0px 0px 8px #000;
}

.dialog p {
  margin: 10px;
  font-size: 20px;
}

.dialog input.text {
  font-size: 20px;
  height: 20px;
  width: 75%;
}

.dialog input.checkbox {
  margin: 0 5px;
}

.dialog .submit {
  background: #fe4;
  border: none;
  padding: 7px 40px 20px 30px;
  font-size: 20px;
  color: #fff;
  text-shadow: #444 2px 2px 2px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  box-shadow: inset 0px 0px 4px #000;
  -webkit-box-shadow: inset 0px 0px 4px #000;
  -moz-box-shadow: inset 0px 0px 4px #000;
  transition: all 0.25s;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -o-transition: all 0.25s;
  position: absolute;
  bottom: -10px;
  right: -10px;
}

.dialog .submit:hover {
  background: #ff8;
  transition: all 0.25s;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -o-transition: all 0.25s;
}

#room-settings {
  height: 400px;
  margin-top: -200px;
}

#chat {
  display: none;
  opacity: 1;
}

#chat {
  position: fixed;
  bottom: 64px;
  left: 0;
  width: 100%;
  vertical-align: bottom;
  font-size: 13px;
  color: white;
  text-shadow: #888 1px 1px;
}

#chat,
#chat * {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

#chat ul {
  list-style: none;
  margin: 4px;
  padding: 0;
  background-attachment: local;
}

#chat li {
  padding: 2px;
  opacity: 0;
}

#chat li .name {
  font-weight: bold;
  margin-right: 10px;
}

#chat li .message {
  margin-right: 6px;
}

#chat li .quote {
  color: #789922;
}

#chat input {
  margin: 4px;
  width: 99%;
  border: 1px solid #fff;
  background: none;
  text-shadow: #888 1px 1px;
  color: #fff;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
}

#chat input::-webkit-input-placeholder {
  color: #ccc;
}

#chat input:-moz-placeholder {
  color: #ccc;
}

#chat input:focus {
  outline: none;
  border: 1px solid #ff8;
}

#chat.chatting {
  background: rgba(64, 80, 80, 0.75);
  border-radius: 5px;
  box-shadow: 1px 1px 5px #888;
  transition: all 0.1s;
}

#chat.chatting li {
  display: list-item !important;
  opacity: 1 !important;
  text-shadow: #aaa 1px 1px;
}

#chat.chatting ul {
  max-height: 50em;
  overflow-y: scroll;
  overflow-x: hidden;
  word-wrap: break-word;
}

#social {
  position: fixed;
  top: 4px;
  right: 6px;
  width: 80px;
  font-size: 12px;
}

#social #more-button {
  margin-top: 4px;
  width: 77px;
  height: 90px;
  border-radius: 5px;
  border: 1px solid #abb;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 1px 1px 8px #bb9;
  color: #788;
  text-shadow: none;
  background: url("kitten1.png") 0px 4px no-repeat;
  background-color: #dee;
}

#social #more-button:hover {
  color: #899;
  background-color: #e8f8f0;
  transition: background-color 0.25s;
}

#social .fb-like {
  position: absolute;
  right: 0px;
}

#social #inclinations {
  margin-top: 50px;
  margin-bottom: 20px;
}

#more {
  display: none;
  width: 1250px;
  margin: 0 auto;
  padding: 0px;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid #b0c0c0;
  color: #566;
  background: #bcc;
  box-shadow: 1px 1px 8px #899;
  position: fixed;
  top: 50px;
  right: 50px;
  text-shadow: none;
}

#more div {
  margin: 0px;
  padding: 0px;
}

#more .items {
  margin-left: 1%;
}

#more .items .item {
  width: 33%;
  float: left;
  background: #cdd;
  transition: background 0.25s;
}

#more .items .item:hover {
  background: #d0e0e0;
  transition: background 0.25s;
}

#more .items .item .content {
  height: 200px;
  padding: 10px;
  border-right: 1px solid #bcc;
  border-bottom: 1px solid #bcc;
}

#more .items .item .content p {
  margin-top: 1em;
  margin-bottom: 1em;
}

#more .header {
  padding: 5px 10px;
}

#more .footer {
  clear: both;
  padding: 5px 10px;
  font-size: 12px;
}

#email:before {
  content: url("envelope.png");
  margin: 4px;
}

#room-notice {
  z-index: 1;
}

#cursors {
  z-index: 2;
}

#chat {
  z-index: 100;
}

#social {
  z-index: 200;
}

#names {
  z-index: 300;
}

/* #names .name.admin:before {
    content: url("/silvercrown.png");
    position: absolute;
    top: -8px;
    left: 4px;
} */

/* #names .name.webmaster:before {
    content: url("/cat.png");
    position: absolute;
    top: -8px;
    left: 4px;
    z-index: 302;
} */
#bottom {
  z-index: 500;
}

#crown {
  z-index: 600;
}

#cursors .cursor {
  z-index: 800;
}

#chat.chatting {
  z-index: 900;
}

.participant-menu {
  z-index: 1000;
}

#modal {
  z-index: 10000;
}

#tooltip {
  z-index: 20000;
}

.clear {
  clear: both;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
