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

#canvas {
	width: 100%;
	height: 100%;
	position: fixed;
	pointer-events: none;
}

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

@font-face {
	font-family: 'Pusab';
	src: url("/font/pusab.otf");
}

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

.bonzi_hat {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background-repeat: no-repeat;
	z-index: 1;
}

.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;
	display: flex;
	flex-direction: row;
	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%;
	width: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.chat_bar_top {
	top: 0;
}

#chat_send, #start_button {
	user-select: none;
	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-top: 5px;
}

#chat_send {
	background-image: url("img/desktop/start.png");
	padding-left: 35px;
	width: 100px;
}

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

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

#start_button {
	background-image: url("img/desktop/startthin.png");
	padding-left: 7px;
	margin-left: -6px;
	width: 33px;
	z-index: -1;
}

#chat_message {
	flex: 1;
	margin: 4px;
	width: 0px;
}

#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("img/icon/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("img/icon/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("img/icon/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 {
	justify-content: flex-start;
	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;
	display: flex;
	align-items: stretch;
	padding: 0px 5px 5px 5px;
	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;
}

.resize_nw,
.resize_ne,
.resize_sw,
.resize_se,
.resize_n,
.resize_w,
.resize_s,
.resize_e {
	position: absolute;
	user-select: none;
}

.resize_nw {
	cursor: nwse-resize;
	width: 8px;
	height: 8px;
	top: -4px;
	left: -4px;
}

.resize_ne {
	cursor: nesw-resize;
	width: 8px;
	height: 8px;
	top: -4px;
	right: -4px;
}

.resize_sw {
	cursor: nesw-resize;
	width: 8px;
	height: 8px;
	bottom: -4px;
	left: -4px;
}

.resize_se {
	cursor: nwse-resize;
	width: 8px;
	height: 8px;
	bottom: -4px;
	right: -4px;
}

.resize_n {
	cursor: ns-resize;
	height: 8px;
	top: -4px;
	inset-inline: 4px;
}

.resize_w {
	cursor: ew-resize;
	width: 8px;
	left: -4px;
	inset-block: 4px;
}

.resize_s {
	cursor: ns-resize;
	height: 8px;
	bottom: -4px;
	inset-inline: 4px;
}

.resize_e {
	cursor: ew-resize;
	width: 8px;
	right: -4px;
	inset-block: 4px;
}

.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, .ban, .delete {
	display: none;
	width: 14px;
	height: 14px;
	margin: 2px;
	position: absolute;
	top: 1px;
	cursor: pointer;
	user-select: none;
}

.reply {
	right: 1px;
	background: url("./img/icon/reply.svg") center / contain;
}

.delete {
	right: 16px;
	background: url("./img/icon/trash.svg") center / contain;
}

/*
.ban {
	right: 32px;
	background: url("./img/icon/ban.svg") center / contain;
}
*/

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

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

.log_message:hover .reply, .log_message:hover .ban, .log_message:hover .delete {
	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;
}

.settings .window_content {
	display: flex;
	flex-direction: column;
	padding: 0;
}

.settings_sidebar {
	display: flex;
	flex-direction: column;
	width: 120px;
	border-right: 1px solid grey;
}

.settings_category {
	cursor: pointer;
	user-select: none;
	padding: 2px;
	padding-left: 16px;
	border-left: 3px solid transparent;
}

.settings_category.selected {
	background-color: #ddb;
}

.settings_content {
	flex: 1;
	display: flex;
	flex-direction: column;
}


.settings_content>label {
	align-self: start;
}

.settings_content input[type=checkbox] {
	margin-left: 0;
}

small {
	color: grey;
}

.window_content {
	flex: 1;
	padding: 2px;
	overflow: hidden auto;
}

.alert_body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px;
}

.alert_button_row {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 2px;
}

.alert_text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.settings_textarea {
	flex: 1;
	margin-top: 2px;
}

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

.export_window .window_content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.import_window .window_content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

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

.settings .button_row {
	margin-top: 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"); }
.gold { background-image: url("./img/bonzi/gold.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;
	box-shadow: 2px 2px 4px #0004;
	border-top-right-radius: 7px;
	image-rendering: pixelated;
	z-index: 10000;
}

#start_menu_pfp {
	position: absolute;
	top: 6px;
	left: 8px;
	width: 54px;
	height: 54px;
	border: 3px solid #ffffffaa;
	border-radius: 10px;
	box-sizing: border-box;
	background: #0f0f0f url("/img/pfp/purple.webp");
	background-size: contain;
	image-rendering: auto;
	cursor: pointer;
}

#start_menu_name {
	position: absolute;
	font-size: 20px;
	top: 21px;
	left: 70px;
	width: 230px;
	color: white;
	outline: none;
	padding: 0;
	border: none;
	background: none;
	text-shadow: #000000aa 2px 2px 2px;
}

#start_menu_body {
	position: absolute;
	top: 64px;
	left: 2px;
	bottom: 40px;
	right: 2px;
	padding-top: 6px;
	background:
		linear-gradient(to bottom, transparent 2px, white 2px), 
		linear-gradient(in srgb-linear to right, white, #cc0 10% 90%, white);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.start_menu_item {
	display: flex;
	flex-direction: row;
	gap: 8px;
	height: 40px;
	padding: 2px 2px 2px 12px;
	gap: 6px;
	cursor: pointer;
}

.start_menu_item:hover {
	background-color: #88aaff;
	color: white;
}

.start_menu_item_icon {
	image-rendering: auto;
	aspect-ratio: 1 / 1;
	height: 100%;
}

.start_menu_item_details {
	display: flex;
	flex-direction: column;
	gap: 3px;
	align-self: center;
	flex: 1;
}

.start_menu_item_name {
	font-weight: bold;
	font-size: 16px;
}

.start_menu_item_description {
	font-size: 12px;
}

#start_menu_vault {
	position: absolute;
	bottom: 4px;
	right: 8px;
	width: 32px;
	height: 32px;
	background: url("/img/desktop/vault.png");
	cursor: pointer;
}

.bonzi_editor h2 {
	border-bottom: 1px solid #000a;
	margin-bottom: 4px;
}

.hats {
	flex: 1;
	border-right: 1px solid lightgrey;
	padding: 8px;
}

.editor-grid {
	margin-bottom: 12px;
	display: flex;
	flex-flow: row wrap;
	gap: 2px;
}

.editor-item {
	cursor: pointer;
	position: relative;
	border: 1px solid #000a;
	image-rendering: auto;
	background-size: contain;
	background-repeat: no-repeat;
	width: 48px;
	height: 48px;
}

.locked-item {
	cursor: not-allowed;
}

.locked-item::after {
	content: "";
	background: url("/img/misc/lock_small.webp") no-repeat center / 24px 24px, #0000009f; 
	position: absolute;
	inset: -1px;
	pointer-events: none;
}

.preview-container {
	padding: 8px;
}

.preview {
	height: 140px;
	width: 160px;
	background-position: -20px -20px;
	background-repeat: no-repeat;
	background-image: url("./img/bonzi/purple.webp");
}

.vault-body {
	flex: 1;
	background: linear-gradient(to bottom, #0a7179, #034e58);
	position: relative;
}

.vault-message {
	position: absolute;
	height: 60px;
	top: 20px;
	inset-inline: 20px;
	display: flex;
	text-align: center;
	justify-content: center;
	align-items: center;
	font: 35px pusab;
	color: white;
	line-height: 0.7;
	-webkit-text-stroke: 1px black;
	text-shadow: #000000CC 2px 2px 2px;
}

.vault-input {
	box-sizing: border-box;
	position: absolute;
	padding: 20px;
	font: 40px pusab;
	color: white;
	top: 100px;
	left: calc(50% - 450px / 2);
	width: 450px;
	border: none;
	border-radius: 5px;
	background: #00000088;
	outline: none;
	text-align: center;
	-webkit-text-stroke: 1px black;
	text-shadow: #000000CC 2px 2px 2px;
}

.vault-keeper-container {
	position: absolute;
	top: 170px;
	bottom: 0px;
	inset-inline: 0px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.vault-keeper img {
	width: 50px;
	height: 122px;
	image-rendering: auto;
	filter: drop-shadow(2px 2px 2px #00000088);
	cursor: pointer;
	/* transform-origin: 50% 25px; */
}

.vault-keeper img:active {
	transform: scale(1.2);
	transition: transform 0.2s cubic-bezier(0, 0, 0, 2);
}

/*!
 * XP.css
 *
 * Copyright 2020 Adam Hammad, Jordan Scales
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
 * modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
 * Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

.xp-button {
	font-size: 11px;
	box-sizing: border-box;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 1) 0%,
		rgba(236, 235, 229, 1) 86%,
		rgba(216, 208, 196, 1) 100%
	);
	border: 1px solid #003c74;
	box-shadow: none;
	border-radius: 3px;
	min-height: 23px;
	padding: 0 12px;
}

.xp-button:not(:disabled):active {
	box-shadow: none;
	background: linear-gradient(
		180deg,
		rgba(205, 202, 195, 1) 0%,
		rgba(227, 227, 219, 1) 8%,
		rgba(229, 229, 222, 1) 94%,
		rgba(242, 242, 241, 1) 100%
	);
}

.xp-button:not(:disabled, :active):hover {
	box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}

.poll-creator-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 8px;
}

.poll-title {
	padding: 4px;
	font-family: "Tahoma", sans-serif;
	font-size: 14px;
	height: 60px;
	resize: vertical;
}

.poll-options {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 4px;
	overflow-y: auto;
}

.poll-option-row {
	display: flex;
	gap: 4px;
}

.poll-option-row input {
	flex: 1;
	padding: 4px;
}

.poll-buttons {
	display: flex;
	justify-content: end;
	gap: 8px;
}

.poll_option {
	margin: 2px 0;
	padding: 4px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	user-select: none;
}

.upload_dropzone {
	border: 1px solid #645436;
	background: url("/img/misc/upload.svg") no-repeat center / 50px 50px;
	flex: 1;
	cursor: pointer;
}

.upload_buttons {
	display: flex;
	justify-content: end;
	gap: 8px;
}

.upload_icon {
	height: 1rem;
	vertical-align: bottom;
}

/*!
 * 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
 */ 

/* 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;
}

.context-menu-item>label>input[type="text"] {
	margin-top: 4px;
}

#tooltip {
	position: fixed;
	z-index: 10000000;
	background: #ffffe1;
	color: black;
	border: 1px solid black;
	padding: 3px 6px;
	font-size: 12px;
	pointer-events: none;
	white-space: pre-wrap;
}
