@charset "UTF-8";

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
}

.xp_dialog,
.message_cont {
    background: #ffffe1;
    color: #000;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    border: #000000 solid 1px;
}

.xp_textbox,
#login_error,
#login_readme,
#login_name,
#login_room {
    position: absolute;
    padding: 4px 3px;
    border: none;
    border-radius: 3px;
    box-shadow: 2px 2px 2px #13316f;
    outline: none;
    background: #fff;
    color: #000;
}

#content {
    width: 100%;
    height: 100%;
    position: fixed;
}

body {
    background-color: #452066;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body,
html {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    font-family: "Tahoma", sans-serif;
}

input {
    font-family: "Tahoma", sans-serif;
}

input[type="text"] {
    background-color: #fff;
    border: 1px inset #AAA;
    color: #000;
}

.xp_bubble,
.bubble {
    background: #ffffe1;
    color: #000;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    border: #000000 solid 1px;
}

@font-face {
    font-family: 'Tahoma';
    src: url("font/Tahoma/Tahoma.eot#iefix") format("embedded-opentype"), url("font/Tahoma/Tahoma.woff") format("woff"), url("font/Tahoma/Tahoma.ttf") format("truetype"), url("font/Tahoma/Tahoma.svg#Tahoma") format("svg");
    font-weight: normal;
    font-style: normal;
}

.bonzi {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 160px;
    user-select: none;
    touch-action: none;
    background-repeat: no-repeat;
}

.bubble {
    font-size: 14px;
    width: 197px;
    position: absolute;
}

.bubble_cont {
    padding: 12px;
    user-select: text;
    max-height: 175px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: auto;
}

.bubble::after {
    content: '';
    position: absolute;
}

.bubble-left {
    right: 150px;
    top: 40px;
}

.bubble-left::after {
    background-image: url("img/bonzi/bubble_tail_l.png");
    width: 22px;
    height: 14px;
    top: 12px;
    right: -22px;
}

.bubble-right {
    top: 40px;
    left: 155px;
}

.bubble-right::after {
    background-image: url("img/bonzi/bubble_tail_r.png");
    width: 22px;
    height: 14px;
    top: 12px;
    left: -22px;
}

.bubble-bottom {
    top: 156px;
}

.bubble-bottom::after {
    background-image: url("img/bonzi/bubble_tail_b.png");
    width: 28px;
    height: 22px;
    top: -22px;
    left: 26px;
}

.bubble-top {
    bottom: 150px;
}

.bubble-top::after {
    background-image: url("img/bonzi/bubble_tail_t.png");
    width: 28px;
    height: 22px;
    left: 110px;
    bottom: -22px;
}

.bonzi_name, .bonzi_tag {
    border-style: solid;
    border-width: 4px 12px 4px 0;
    border-radius: 9px;
    border: #000000 solid 1px;
    padding: 8px;
    position: absolute;
    background: #ffffe1;
    font-size: 12px;
    color: #000;
    max-width: 300px;
    overflow: hidden;
}

.bonzi_tag {
    position: absolute;
    top: -23px;
    font-weight: 900;
    font-size: 10px;
    padding: 6px;
}

.bonzi_tag:empty {
    display: none;
}

.greentext {
    color: #789922;
}

.flag {
    vertical-align: bottom;
    width: 1em;
    height: 1em;
}

body.classic #content {
    background-color: #6d33a0;
}

body.vaporwave #content {
    background-color: #008080;
    background-image: url("img/desktop.vaporwave/logo.png"), url("img/desktop.vaporwave/bg.png");
}

body.vaporwave #chat_bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background-image: url("img/desktop.vaporwave/taskbar.png");
    background-size: 100% 100%;
    z-index: 999;
}

body.vaporwave #chat_tray {
    background-image: url("img/desktop.vaporwave/notif_left.png"), url("img/desktop.vaporwave/notif_right.png"), url("img/desktop.vaporwave/notif.png");
    background-repeat: no-repeat;
    background-position: left, right, left;
    background-size: 5px 29px, 3px 29px, 100% 100%;
    vertical-align: middle;
    padding-left: 7px;
    padding-top: 3px;
    width: 22px;
}

body.vaporwave #btn_tile {
    background-image: url("img/desktop.vaporwave/tile.png");
}

body.vaporwave #chat_send {
    width: 58px;
    background-image: url("img/desktop.vaporwave/start.png");
    background-size: 100%;
    background-repeat: no-repeat;
    box-sizing: border-box;
    color: #000;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-style: normal;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 11px;
    text-shadow: none;
    padding-left: 21px;
    text-transform: capitalize;
}

body.vaporwave #chat_send:hover {
    background-position: 0 -28px;
}

body.vaporwave #chat_send:active {
    background-position: 0 -56px;
}

#content {
    background-color: #452066;
    background-image: url("img/desktop/logo.png"), url("img/desktop/bg.png");
    background-position: top right, center;
    background-repeat: no-repeat;
}

#chat_bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url("img/desktop/taskbar.png");
    background-size: 100% 100%;
    z-index: 999;
}

#chat_tray {
    background-image: url("img/desktop/notif_left.png"), url("img/desktop/notif.png");
    background-repeat: no-repeat;
    background-position: left;
    background-size: 5px 30px, 100% 100%;
    vertical-align: middle;
    padding-left: 7px;
    padding-top: 3px;
    width: 22px;
}

.chat_bar_top {
    top: 0;
}

#chat_send {
    width: 100px;
    user-select: none;
    background-image: url("img/desktop/start.png");
    background-size: 100%;
    background-repeat: no-repeat;
    box-sizing: border-box;
    color: #fff;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.75);
    padding-left: 35px;
}

#chat_send:hover {
    background-position: 0 -33px;
}

#chat_send:active {
    background-position: 0 -67px;
}

#chat_message_cont {
    padding: 4px;
    display: flex;
}

#chat_message {
    flex: 1;
}

#room_info {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    line-height: 125%;
    text-align: right;
    padding: 7px;
    font-size: 10px;
    position: absolute;
    bottom: 30px;
    right: 0;
    user-select: text;
}

.tray_btn {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 2px 0px;
}

#btn_tile {
    background-image: url("img/desktop/tile.png");
}

#page_login {
    background-color: #8b5adc;
    background-image: url("img/logon/logo.png"), url("img/logon/top.png"), url("img/logon/bottom.png"), url("img/logon/topleft.png"), url("img/logon/divider.png");
    background-position: center, top, bottom, top left, center;
    background-size: auto, 100% 100px, 100% 122px, auto, 1px 100%;
    background-repeat: no-repeat;
}

#login_card {
    background-image: url("img/logon/card.png");
    width: 353px;
    height: 70px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: 20px;
    margin-top: -35px;
    box-sizing: border-box;
}

#login_error {
    top: 100%;
    position: absolute;
    margin-top: 8px;
    color: #d03b3b;
    font-size: 12px;
    padding: 8px;
}

#login_readme {
    color: #444;
    padding: 12px;
    bottom: 24%;
    width: auto;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    text-align: center;
    left: 50%;
}

#login_name,
#login_room {
    width: 160px;
    box-sizing: border-box;
}

#login_name {
    height: 28px;
    top: 8px;
    left: 16px;
    font-size: 14px;
}

#login_room {
    height: 18px;
    top: 43px;
    left: 16px;
    font-size: 12px;
}

#login_go {
    left: 185px;
    top: 24px;
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("img/logon/go.png");
    background-size: 100%;
    background-repeat: no-repeat;
}

#login_go:hover {
    background-position: 0 -20px;
}

#login_go:active {
    background-position: 0 -40px;
}

#login_load {
    color: #fff;
    font-weight: bold;
    font-style: italic;
    font-size: 35px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: absolute;
    line-height: 100%;
    height: 35px;
    top: 50%;
    left: 50%;
    margin-left: 23px;
}

#login_version {
    color: #fff;
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* css spec blunder */
[hidden] {
    display: none !important;
}

#chat_log_button {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px;
    height: 30px;
    border: 1px solid white;
    border-radius: 4px;
    background:
        center / 16px no-repeat url("bars.svg"),
        radial-gradient(circle at 4px 4px, #fff6 0%, #0000 70%),
        linear-gradient(to top, #512677, #0000 12px),
        linear-gradient(to left, #512677, #0000 12px),
        linear-gradient(to bottom, #945cc5 2px, #0000 3px),
        linear-gradient(to right, #945cc5 2px, #0000 3px),
        #6310ac;
}

/* inconsistent as fuck in true XP style */
#chat_log_button:hover {
    background:
        center / 16px no-repeat url("bars.svg"),
        radial-gradient(circle at 4px 4px, #fff6 0%, #0000 100%),
        linear-gradient(to top, #5e3b7c, #0000 12px),
        linear-gradient(to left, #5e3b7c, #0000 12px),
        linear-gradient(to bottom, #b27fdf 2px, #0000 3px),
        linear-gradient(to right, #b27fdf 2px, #0000 3px),
        #8832d4;
}

#chat_log_button:active {
    background:
        center / 16px no-repeat url("bars.svg"),
        radial-gradient(circle at 4px 4px, #fff3 0%, #0000 70%),
        linear-gradient(to top, #6e4196 2px, #0000 3px),
        linear-gradient(to left, #6e4196 2px, #0000 3px),
        linear-gradient(to right, #361950, #0000 12px),
        linear-gradient(to bottom, #361950, #0000 12px),
        #5a1f8f;
}

#chat_log {
    position: absolute;
    width: 350px;
    z-index: 9999;
    height: calc(100% - 30px);
}

body.vaporwave #chat_log_button {
    background: center no-repeat url("img/desktop.vaporwave/logger.png") #c0c0c0;
    border: 2px solid;
    border-color: white black black white;
    border-radius: 0;
    width: 36px;
    height: 36px;
}

body.vaporwave #chat_log_button:active {
    background-position: calc(50% + 1px) calc(50% + 1px);
    border-color: black white white black;
}

#chat_log .window_body {
    display: flex;
}

#chat_log_resize {
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0px;
    width: 12px;
    cursor: ew-resize;
    user-select: none;
}

#chat_log_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden scroll;
    font-size: 12pt;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#chat_log_content hr:first-child {
    display: none;
}

.window {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.window_header {
    display: flex;
    user-select: none;
    align-items: center;
    height: 32px;
    padding: 2px 7px 0 10px;
    border-image: url("img/desktop/window_header.png") 0 9 fill / 0px 9px;
    image-rendering: pixelated;
    color: white;
    font-size: 16px;
    text-shadow: #0006 2px 2px 1px;
}

body.vaporwave .window_header {
    border-image: url("img/desktop.vaporwave/window_header.png") 0 9 fill / 0px 9px;
    height: 26px;
    font-size: 12px;
    text-shadow: none;
}

.window_body {
    flex: 1;
    padding: 4px 6px 6px 6px;
    border-image: url("img/desktop/window_border.png") 0 6 6 6 / 0px 6px 6px 6px;
    image-rendering: pixelated;
    background: #ffe;
    overflow: hidden;
}

body.vaporwave .window_body {
    border-image: url("img/desktop.vaporwave/window_border.png") 0 6 6 6 / 0px 6px 6px 6px;
    background: white;
}

.window_close {
    margin-left: auto;
    width: 21px;
    height: 21px;
    margin-bottom: 2px;
    background-image: url("img/desktop/close.png");
}

body.vaporwave .window_close {
    background-image: url("img/desktop.vaporwave/close.png");
    margin-bottom: 0;
}

.window_close:hover {
    background-position-y: -21px;
}

.window_close:active {
    background-position-y: -42px;
}

.log_message {
    display: flex;
    flex-direction: row;
    padding: 1px 6px;
    gap: 12px;
    image-rendering: auto;
    position: relative;
}

.log_message:hover {
    background-color: #0002;
}

.log_time {
    color: #bbb;
}

.reply {
    display: none;
    width: 14px;
    height: 14px;
    margin: 2px;
    position: absolute;
    top: 1px;
    right: 1px;
    background: url("./img/reply.svg") center / contain;
    cursor: pointer;
    user-select: none;
}

.userimage {
    max-width: 100%;
    max-height: 178px;
}

.uservideo {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 400px;
    background: black;
}

.log_message:hover .reply {
    display: block;
}

.log_icon {
    position: relative;
    align-self: flex-start;
    flex-shrink: 0;
    width: 25px;
    height: 25px;

    img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.log_left_spacing {
    /* good fucking element */
    width: 25px;
    flex-shrink: 0;
}

.log_message_cont {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log_message_cont>b:empty {
    display: none;
}

hr {
    border-top: 1px solid lightgrey;
    border-right: none;
    border-bottom: none;
    border-left: none;
    margin: 2px;
}

.settings {
    z-index: 9999;
}

textarea {
    flex: 1;
    background: white;
    border: 1px solid black;
    resize: none;
    margin: 1px 0 1px 0;
}

.settings .window_body {
    display: flex;
    flex-direction: column;
    padding: 10px 16px 16px 16px;
}

.blacklist {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.export_window .window_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0px 6px 5px 6px;
}

.import_window .window_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 10px 10px 10px;
}

.button_row {
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 2px;
}

.button_row>button {
    cursor: pointer;
    padding: 1px 8px;
    background-color: transparent;
    border: 1px outset grey;
}

.button_row>button:active {
    border: 1px inset grey;
}

#talkcard {
    position: absolute;
    bottom: 32px;
    padding: 4px 10px;
    background-color: #ffffe1;
    font-size: 10pt;
    width: calc(100% - 150px);
    border: 1px solid black;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    user-select: none;
    z-index: 99999;
}

blockquote {
    border-left: 3px solid grey;
    padding: 2px 0px 2px 8px;
}

.grey {
    color: grey;
}

gay-big {
    font-size: 1.5em;
}

@keyframes move {
    from {
        background-position-x: 500px;
    }

    to {
        background-position-x: 0;
    }
}

gay-spoiler {
    background-color: darkslategrey;
    border-radius: 3px;
    color: transparent;
    user-select: none;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

gay-spoiler:hover {
    background-color: #777;
}

gay-spoiler.reveal {
    background-color: #5555;
    color: black;
    user-select: all;
    cursor: auto;
}

gay-spoiler:not(.reveal) gay-rainbow {
    background: none;
}

gay-rainbow gay-spoiler:not(.reveal) {
    background-image: linear-gradient(120deg in hsl longer hue, red, red, red);
    background-size: 500px;
    animation: move 2s linear infinite;
}

gay-rainbow {
    background-image: linear-gradient(120deg in hsl longer hue, red, red, red);
    background-size: 500px;
    background-clip: text;
    color: transparent;
    animation: move 2s linear infinite;
}

code {
    border: 1px solid #bbb;
    background-color: #ddd;
    border-radius: 4px;
    font: monospace;
    padding: 0 0.2em;
}

gay-rainbow code {
    background-image: linear-gradient(#ddd8), linear-gradient(120deg in hsl longer hue, red, red, red);
    background-size: 500px;
    animation: move 2s linear infinite;
    border-color: #0004;
    color: black;
}


.yes,
.no {
    cursor: pointer;
    padding: 4px;
    margin: 2px 0px;
}

.yes {
    border: 1px solid #060;
    background-image: linear-gradient(to right, lime 50%, #cfc 50%);
}

.no {
    border: 1px solid #a00;
    background-image: linear-gradient(to right, red 50%, #fcc 50%);
}


@media screen and (max-height: 550px) {
    #page_login {
        background-image: url("img/logon/logo.png"), url("img/logon/topleft.png");
        background-position: center, 0 -100px;
        background-size: auto, auto;
        background-repeat: no-repeat;
    }

    #login_readme {
        font-size: 12px;
        bottom: 10%;
    }
}

@media screen and (max-height: 650px) {
    #login_apps>a:not(:first-child) {
        display: none;
    }
}

@media screen and (max-height: 450px) {
    #login_apps {
        display: none;
    }
}

@media screen and (max-height: 300px) {

    #login_readme,
    #login_version {
        display: none;
    }
}

@media screen and (max-height: 400px) and (max-width: 560px) {
    #login_readme {
        display: none;
    }
}

@media screen and (max-width: 560px) {
    #page_login {
        background-image: url("img/logon/logo.mobile.png"), url("img/logon/topleft.png");
        background-position: center, 0 -100px;
        background-size: auto, auto;
        background-repeat: no-repeat;
    }

    #login_card {
        background-image: url("img/logon/card.mobile.png");
        width: 223px;
        height: 70px;
        margin-left: -112px;
        margin-top: 40px;
    }

    #login_readme {
        bottom: 10%;
    }

    #login_load {
        margin-top: 45px;
        margin-left: 0;
        transform: translateX(-50%);
    }
}

.message_cont {
    position: absolute;
    width: 100%;
    max-width: 512px;
    height: auto;
    max-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px;
    box-sizing: border-box;
    overflow: auto;
}

#page_error,
#page_ban,
#page_unsupp {
    background-color: rgba(0, 0, 0, 0.5);
}

.blessed_body {
    flex: 1;
    overflow-y: auto;
}

.roulette {
    display: flex;
    flex-direction: row;
    border: 1px solid black;
    padding: 4px;
    gap: 4px;
}

.card, .cardhat {
    width: 75px;
    height: 100px;
    background-position: -28px 0px;
    image-rendering: auto;
}

:is(.card, .cardhat):hover {
    background-color: #00ccff66;
}

.card {
    background-size: 1600px;
}

.cardhat {
    background-size: 130px;
}

.angel { background-image: url("./img/bonzi/blessed.webp"); }
.glow { background-image: url("./img/bonzi/glow.webp"); }
.noob { background-image: url("./img/bonzi/noob.webp"); }
.dank { background-image: url("./img/bonzi/dank.webp"); }
.illuminati { background-image: url("./img/bonzi/illuminati.webp"); }
.cigar { background-image: url("./img/bonzi/cigar.webp"); }
.propeller { background-image: url("./img/bonzi/propeller.webp"); }

.explosion {
    width: 71px;
    height: 101px;
    position: absolute;
    background: url("./img/misc/explosion.png");
    animation: 1s explosion steps(17) 1 forwards;
    transform: translate(65px, 30px) scale(2);
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 9998;
}

@keyframes explosion {
    100% { background-position: -1207px; }
}

#start_menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: 30px;
    left: 95px;
    width: 300px;
    height: 500px;
    border-image: url("img/desktop/start_menu.png") 64 59 40 59 / 64px 59px 40px 59px;
    padding: 0 2px;
    box-shadow: 2px 2px 4px #0004;
    border-top-right-radius: 7px;
    image-rendering: pixelated;
    z-index: 9000;
}

#start_menu_header {
    height: 64px;
}

#start_menu_body {
    flex: 1;
    background: white;
}

#start_menu_footer {
    height: 40px;
}

/*!
 * jQuery contextMenu - Plugin for simple contextMenu handling
 *
 * Version: v@VERSION
 *
 * Authors: BjÃ¶rn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
 * Web: http://swisnl.github.io/jQuery-contextMenu/
 *
 * Copyright (c) 2011-@YEAR SWIS BV and contributors
 *
 * Licensed under
 *   MIT License http://www.opensource.org/licenses/mit-license
 *
 * Date: @DATE
 */
.context-menu-icon.context-menu-hover:before {
    color: #FFF;
}

.context-menu-icon.context-menu-disabled::before {
    color: #8c8c8c;
}

.context-menu-icon.context-menu-icon--fa {
    display: list-item;
}

.context-menu-icon.context-menu-icon--fa.context-menu-hover:before {
    color: #FFF;
}

.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before {
    color: #8c8c8c;
}

.context-menu-icon.context-menu-icon--fa span {
    font-family: sans-serif;
}

.context-menu-list {
    background: #FFF;
    border: 1px solid #aca899;
    border-radius: 0;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    font-size: 11px;
    display: inline-block;
    list-style-type: none;
    margin: 0;
    max-width: none;
    min-width: none;
    padding: 2px;
    position: absolute;
}

.context-menu-item {
    background-color: #FFF;
    color: #000;
    padding: 5px 22px;
    position: relative;
    user-select: none;
}

.context-menu-separator {
    border-bottom: 1px solid #aca899;
    margin: 1px 2.5px;
    padding: 0;
}

.context-menu-item>label>input,
.context-menu-item>label>textarea {
    user-select: text;
}

.context-menu-item.context-menu-hover {
    background-color: #316ac5;
    color: #FFF;
    cursor: pointer;
}

.context-menu-item.context-menu-disabled {
    background-color: #FFF;
    color: #8c8c8c;
    cursor: default;
}

.context-menu-input.context-menu-hover {
    background-color: #EEE;
    cursor: default;
}

.context-menu-submenu:after {
    content: '';
    border-style: solid;
    border-width: .25em 0 .25em .25em;
    border-color: transparent transparent transparent #000;
    height: 0;
    position: absolute;
    right: .5em;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    z-index: 1;
}

/**
 * Inputs
 */
.context-menu-item.context-menu-input {
    padding: .3em .6em;
}

/* vertically align inside labels */
.context-menu-input>label>* {
    vertical-align: top;
}

/* position checkboxes and radios as icons */
.context-menu-input>label>input[type="checkbox"],
.context-menu-input>label>input[type="radio"] {
    margin-right: .4em;
    position: relative;
    top: .12em;
}

.context-menu-input>label {
    margin: 0;
}

.context-menu-input>label,
.context-menu-input>label>input[type="text"],
.context-menu-input>label>textarea,
.context-menu-input>label>select {
    box-sizing: border-box;
    display: block;
    width: 100%;
}

.context-menu-input>label>textarea {
    height: 7em;
}

.context-menu-item>.context-menu-list {
    display: none;
    /* re-positioned by js */
    right: -.3em;
    top: .3em;
}

.context-menu-item.context-menu-visible>.context-menu-list {
    display: block;
}

.context-menu-accesskey {
    text-decoration: underline;
}