* {
    image-rendering: pixelated;
}

* {
    margin: 0;
}

* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body,html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font: 20pt verdana,"DejaVu Sans",sans-serif;
    color: #fff;
    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%
    );
    transition: --color 1000ms, --color2 1000ms;
}

a, .spoiler:hover a {
    cursor: pointer;
    color: #f46;
    transition: color .25s;
}

a:hover, .spoiler:hover a:hover {
    color: #e05;
}

.link {
    text-decoration: underline;
    cursor: pointer;
    color: #fe0;
}

table {
    border: 0;
    padding: 0;
    margin: 0;
}

#names {
    position: fixed;
    top: 4px;
    left: 4px;
    font-size: 12px;
    width: 90%;
    width: -webkit-calc(100% - 110px);
    width: -moz-calc(100% - 110px);
    width: calc(100% - 110px);
}

#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;
    min-height: 15px;
    line-height: 15px;
    max-width: 100%;
}

#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;
}

.nametag {
    float: left;
    position: relative;
    padding: 4px;
    margin-right: 5px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    text-align: center;
    cursor: pointer;
    font-size: 10px;
    line-height: 7px;
}



.nametext {
    white-space: pre;
    white-space: -moz-nowrap !important;
    white-space: -webkit-nowrap;
    white-space: nowrap;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

input[type="range"] {
        -webkit-appearance:     none;   /* Remove Safari default */
        outline: none;
        width: 210px;
        height: 5px;
        border-radius: 1px;
        position: relative;
 
       
        background-image: -webkit-gradient( linear, left top, right top,
                color-stop( 0,          hsla(254, 100%, 25%, 0.8) ),
                color-stop( .08,        hsla(254, 100%, 13%, 0.8) ),
                color-stop( .5,         hsl(200,80%,0%) ),
                color-stop( .92,        hsl(200,80%,15%) ),
                color-stop( 1,          hsl(200,80%,45%) )
        );
       
        -webkit-background-clip: padding-box;
        border: 0;
        border-bottom: 2px solid rgba(0,0,0,0.1);
        cursor: ew-resize;
}
 
input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance:     none;   /* Remove Safari default */
        position: relative;
        z-index:                1;
 
        width: 10px;
        height: 20px;
        border-radius: 1px / 2px ;
       
        background-image: -webkit-gradient( linear, left top, right top,
                color-stop( 0,          hsl(0,0%,15%) ),
                color-stop( .16,        hsl(0,0%,22%) ),
                color-stop( .18,        hsl(0,0%,30%) ),
                color-stop( .2,         hsl(0,0%,26%) ),
               
                
               
                color-stop( .8,         hsl(0,0%,26%) ),
                color-stop( .82,        hsl(0,0%,30%) ),
                color-stop( .84,        hsl(0,0%,22%) ),
                color-stop( 1,          hsl(0,0%,15%) )
        );
       
        -webkit-box-shadow:
               
                inset hsla(0,0%,100%,.15) 0 1px 0px,
               
                hsl(0,0%,17%) 0 2px 0px,
                hsl(0,0%,15%) 0 4px 0px,
                hsl(0,0%,13%) 0 6px 0px,
               
                rgba(0,0,0,.5) 0 8px 5px;
       
        -webkit-transform: translateY(-3px);
        -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.6, transparent), to( rgba(255,255,255,0.15) ));
}
 
input[type="range"]:hover {
       
        background-image: -webkit-gradient( linear, left top, right top,
                color-stop( 0,          hsla(284, 100%, 25%, 0.8) ),
                color-stop( .08,        hsla(284, 100%, 13%, 0.8) ),
                color-stop( .5,         hsl(200,80%,0%) ),
                color-stop( .92,        hsl(200,80%,15%) ),
                color-stop( 1,          hsl(200,80%,45%) )
        );
       
        -webkit-box-shadow: inset #000 1px 1px 1px, inset #000 -1px -1px 1px;
 
}

#piano {
    width: 95%;
    height: 20%;
    margin: auto;
    position: relative;
    overflow: hidden;
    padding-left: 1%;
}

#piano .key {
    float: left;
    width: 1.8%;
    height: 90%;
    border: 1px solid #000;
    background: #fff;
    margin-left: -.5%;
    margin-bottom: 100%;
    box-shadow: 1px 2px 5px #000;
    -webkit-box-shadow: 1px 2px 5px #000;
    -moz-box-shadow: 1px 2px 5px #000;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    transition: background 4s ease-out;
    -webkit-transition: background 4s ease-out;
    -moz-transition: background 4s ease-out;
    -o-transition: background 4s ease-out;
    padding: 0;
    overflow: hidden;
}

#piano .key.c,#piano .key.f {
    margin-left: 0;
}

#piano .key.sharp {
    width: 1.2%;
    height: 50%;
    background: #000;
    margin-left: -.9%;
    position: relative;
}

#piano .key.loading {
    background: #888;
}

#piano .key.play {
    transform: translateY(1%);
    -webkit-transform: translateY(1%);
    -webkit-box-shadow: 0 1px 2px #000;
}

.ease-out {
    transition: left .1s ease-out;
    -webkit-transition: left .1s ease-out;
    -moz-transition: left .1s ease-out;
    -o-transition: left .1s ease-out;
}

.ease-in {
    transition: left .1s ease-in;
    -webkit-transition: left .1s ease-in;
    -moz-transition: left .1s ease-in;
    -o-transition: left .1s 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; }

#cursors[smooth-cursors] .cursor {
    top: 0;
    left: 0;
    transition: transform .1s linear;
}

.participant-menu {
    display: none;
    position: fixed;
    background: #000;
    width: 150px;
    font-size: 12px;
    padding: 0;
    margin: 0;
    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,.9);
    overflow: hidden;
    opacity: 0;
    transition: opacity .2s ease-out;
    user-select: text;
}

.participant-menu .info:hover {
    opacity: 1;
    transition: opacity .2s ease-out;
}

.participant-menu .menu-item {
    cursor: pointer;
    margin: 0;
    padding: 15px 5px;
    border-top: 1px solid rgba(255,255,255,.3);
}

.participant-menu .menu-item:hover {
    background: rgba(255,255,255,.4);
}

.participant-menu .menu-item.clicked {
    background: rgba(255,255,255,.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: .5;
    font-size: 20px;
    pointer-events: none;
    display: none;
}

#room-notice p {
    margin: 1em;
}

#bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    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, .ugly-setting {
    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, .ugly-setting.stuck {
    background: rgba(204, 187, 170, 0.35);
}


.ugly-setting {
    height: 12px;
    font-size: 12px;
    background: rgba(203, 17, 14, 0.8);
    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-setting.enabled {
    background: rgba(16, 170, 16, 0.8);
}

.buttons {
    position: absolute;
    left: 300px;
    top: 4px;
    margin-right: 120px;
    grid-auto-flow: column;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 2px;
    grid-row-gap: 2px; 
}

#tooltip {
    position: absolute;
    pointer-events: none;
    background: #000;
    color: #fff;
    font-size: 10px;
}

.knob {
    cursor: pointer;
}

.switched-on {
    background: #ff8;
}

#status {
    position: absolute;
    left: 0;
    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;
}

#volume { position: absolute; right: 20px; top: 0px; width: 100px; height: 40px; margin: 10px; }
#volume-slider { width: 100%; height: 100%; background: url("volume2.png") no-repeat; background-position: 50% 50%;
	-webkit-appearance: none; }

#volume-label { position: absolute; right: 30px; bottom: 10px; font-size: 10px; color: #ccc; }

#quota {
    width: 100%;
    height: 3px;
    position: fixed;
    bottom: 0;
    left: 0;
    background: #f80;
}

#quota .value {
    width: 100%;
    height: 100%;
    display: block;
    background: #fd0;
}

.relative {
    position: relative;
    width: 100%;
    height: 100%;
}

.notification { position: absolute; }
.notification-body { background: #fea; border-color: #fea; padding: 10px; position: relative; left: 0; top: 0;
	color: #444; font-size: 12px; text-shadow: #ccc 1px 1px;
	border-radius: 6px; box-shadow: 2px 2px 5px rgba(0,0,0,0.25); }
.notification-body:after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -3px; border-top: 10px solid transparent;
    border-top-color: inherit; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.title { border-bottom: 1px solid #f84; font-size: 16px; font-weight: bold; padding-bottom: 5px; margin-bottom: 8px; }
.notification .x { position: absolute; right: 4px; top: 0px; cursor: pointer; font-size: 20px; color: #f84; text-shadow: none; }
.notification .x:hover { font-weight: bold; }
.notification.classic .notification-body { width: 400px; background: #fea; border-color: #fea;}
.notification.short .title { display: none; }

.notification h1 { font-size: 14px; font-weight: bold; padding-top: 8px; padding-bottom: 8px; text-decoration: underline;}
.notification .connection { padding: 8px; margin: 8px; background: #fed; border: 1px solid #f84; cursor: pointer; font-family: monospace; }
.notification .connection.enabled { background: #dfd; }
.notification .connection:after { content: "OFF"; font-size: 10px; color: #a44; float: right; }
.notification .connection.enabled:after { content: "ON"; font-size: 10px; color: #4a4; float: right; }
.notification .connection:hover { font-weight: bold; }

.notification ul { list-style-type: upper-roman; }

.notification .pack {
    margin: 1px;
    padding: 4px;
    background: none;
    border: 1px solid #f84;
    border-radius: 4px;
	cursor: pointer;
	font-family: monospace;
}
.notification .pack.enabled { background: #dfd; cursor: not-allowed; font-weight: bolder; }
.notification .pack:after { content: ""; font-size: 10px; color: #a44; float: right; }
.notification .pack.enabled:after { content: "Selected"; font-size: 10px; color: #4a4; float: right; }
.notification .pack:hover { font-weight: bold; }

#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; -webkit-user-select: text; -moz-user-select: text; -ms-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: #fff;
    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;
    transition: border 0.5s, background 0.5s;
    border: 1px solid #00000000;
}

#chat li .timestamp {
    margin-right: 6px;
}

#chat li .id, #chat li ._id {
    margin-right: 6px;
    cursor: pointer;
}

#chat li .name {
    font-weight: 700;
    margin-right: 8px;
}
#chat li .message {
    margin-right: 6px;
}

#chat li .quote {
    color: #789922;
}

#chat li .mention {
    color: white;
    padding: 4px;
    margin: 2px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    line-height: 15px;
    text-shadow: #444 1px 1px;
}

#chat input {
    margin: 4px;
    width: 99%;
    border: 1px solid #fff;
    background: 0 0;
    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: 0;
    border: 1px solid #ff8;
}

#chat.chatting {
    background: rgba(64, 80, 80, .75);
    border-radius: 5px;
    box-shadow: 1px 1px 5px #888;
    transition: all .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;
}

#more {
    display: none;
    width: 1250px;
    margin: 0 auto;
    padding: 0;
    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: 0;
    padding: 0;
}

#more .items {
    margin-left: 1%;
}

#more .items .item {
    width: 33%;
    float: left;
    background: #cdd;
    transition: background .25s;
}

#more .items .item:hover {
    background: #d0e0e0;
    transition: background .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;
}

#room-notice {
    z-index: 1;
}

#cursors {
    z-index: 2;
}

#chat {
    z-index: 100;
}

#social {
    z-index: 200;
}

#names {
    z-index: 300;
}

#names .nametag {
    z-index: 301;
}

#names .name.owner:before {
    z-index: 302;
}

#piano {
    z-index: 400;
}

#piano .key {
    z-index: 401;
}

#piano .key.sharp {
    z-index: 402;
}

#bottom {
    z-index: 500;
}

#crown {
    z-index: 600;
}

.notification {
    z-index: 700;
}

#cursors .cursor {
    z-index: 800;
}

#chat.chatting {
    z-index: 900;
}

.participant-menu {
    z-index: 1000;
}

#modal {
    z-index: 10000;
}

.clear {
    clear: both;
}

.spin {
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    -o-animation: spin 1s linear infinite;
    -ms-animation: spin 1s linear infinite;
}

code {
    background: #222;
    color: #eee;
    padding: 2px 4px;
    text-shadow: none;
    border-radius: 4px;
    line-height: 1.5;
}

.spoiler {
    background: #222;
    padding: 1px 0 3px;
    border-radius: 4px;
}

.spoiler:not(:hover) {
    color: rgba(0, 0, 0, 0);
    text-shadow: rgba(0, 0, 0, 0) 1px 1px;
}

.spoiler * {
    opacity: 0;
}

.spoiler:hover * {
    opacity: 1;
}

.spoiler:hover {
    background: rgba(64, 80, 80, .75);
}

.spoiler * {
    transition: opacity .25s;
    -webkit-transition: opacity .25s;
    -moz-transition: opacity .25s;
    -o-transition: opacity .25s;
}

.spoiler {
    transition: color .25s, text-shadow .25s, background .25s, opacity .25s;
    -webkit-transition: color .25s, text-shadow .25s, background .25s, opacity .25s;
    -moz-transition: color .25s, text-shadow .25s, background .25s, opacity .25s;
    -o-transition: color .25s, text-shadow .25s, background .25s, opacity .25s;
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0);
    }

    100% {
        -moz-transform: rotate(360deg);
    }
}

@-o-keyframes spin {
    0% {
        -o-transform: rotate(0);
    }

    100% {
        -o-transform: rotate(360deg);
    }
}

@-ms-keyframes spin {
    0% {
        -ms-transform: rotate(0);
    }

    100% {
        -ms-transform: rotate(360deg);
    }
}