
/* ==========================================
   SAM PUCKETT THEME
   Default Theme
========================================== */

:root {
	--sam-black: #171719;
	--sam-dark: #242428;
	--sam-panel: #303036;
	--sam-purple: #7025a5;
	--sam-purple-light: #a34bd3;
	--sam-pink: #ff3d96;
	--sam-yellow: #f5d442;
	--sam-white: #f2edf5;
	--sam-gray: #aaa4b0;
	--sam-border: #51465b;
	--sam-red: #e52b36;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	overflow: hidden;
	width: 100%;
	height: 100%;
	overscroll-behavior: contain;
	touch-action: pan-down;
	-webkit-touch-callout: none;
}

body {
	background: var(--sam-black);
	color: var(--sam-white);
	font-family: Verdana, Arial, sans-serif;
}

#main_view {
	position: relative;
	overflow: hidden;
	background: var(--sam-black);
}

.screen_canvas {
	overflow: hidden;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
}

img {
	border: 0;
	text-decoration: none;
}

a,
a:link,
a:hover,
a:active,
a:visited {
	text-decoration: none;
	color: inherit;
}

/* ANNOUNCEMENTS */

.announce_text {
	text-align: center;
	margin-right: 3px;
	background: var(--sam-purple);
	border: 1px solid var(--sam-pink);
	border-radius: 3px;
	color: white;
	padding: 5px 9px;
	font-weight: bold;
	box-shadow: 2px 2px 0 var(--sam-black);
}

.announce_text > a {
	text-decoration: underline;
	color: var(--sam-yellow);
}

.announce_text > a:hover {
	color: var(--sam-pink);
}

#topbar {
	position: absolute;
	top: 0;
	width: 100%;
}

#topbar_inner {
	width: 100%;
	position: absolute;
}

#announce_container {
	text-align: center;
}

.announce_close {
	font-size: 11px;
	font-weight: bold;
	color: white;
	background: var(--sam-red);
	border: 1px solid #8c111b;
	border-radius: 2px;
	padding: 2px 5px;
	position: relative;
	z-index: 1;
}

.announce_close:hover {
	background: var(--sam-pink);
	color: white;
	cursor: pointer;
}

/* GENERAL UI */

.ui {
	color: var(--sam-white);
	font-family: Verdana, sans-serif;
	font-size: 12px;
	z-index: 100;
}

.ui-vis {
	background: rgba(163, 75, 211, .18);
	border: 1px solid var(--sam-purple);
	padding: 3px;
}

.tab {
	padding-top: 0;
}

.corner-tab:hover {
	background: var(--sam-purple);
	color: white;
	cursor: default;
}

.corner-tab:active {
	color: var(--sam-yellow);
	background: var(--sam-dark);
}

.menu-corner {
	position: absolute;
	right: 0;
	display: flex;
	gap: 4px;
}

.message {
	margin: auto;
	padding: 7px;
	width: 60%;
	text-align: center;
	background: var(--sam-panel);
	border: 1px solid var(--sam-purple);
	color: white;
}

.message a {
	color: var(--sam-pink);
}

#loading {
	font-family: Verdana;
	color: var(--sam-pink);
}

#coords {
	position: absolute;
	bottom: 0;
	right: 0;
	color: var(--sam-yellow);
	background: var(--sam-panel);
	border: 1px solid var(--sam-purple);
	cursor: pointer;
}

/* NAVIGATION */

.menu {
	right: 0;
}

#menu {
	cursor: pointer;
	box-sizing: border-box;
	color: var(--sam-pink);
}

#menu.hover {
	color: var(--sam-yellow);
	background: var(--sam-panel);
	border-left: 1px solid var(--sam-purple);
}

#nav {
	position: absolute;
	text-align: right;
	top: 1.5em;
	right: 0;
	background: var(--sam-dark);
	width: 8em;
	color: white;
	border: 1px solid var(--sam-purple);
	box-shadow: 3px 3px 0 var(--sam-black);
	overflow: hidden;
	max-height: 100%;
}

#nav li {
	display: block;
	list-style: none;
	position: relative;
	cursor: pointer;
	border-top: 1px solid var(--sam-border);
}

#nav li:first-child {
	border-top: 0;
}

#nav a {
	display: block;
	padding: 5px;
}

#nav li.hover {
	background: var(--sam-purple);
	color: var(--sam-yellow);
}

#goto_submit {
	margin-left: 1em;
	margin-top: 3px;
}

/* LEFT GUI */

#west_gui {
	position: absolute;
	top: 30px;
	left: 0;
}

#protect_precision {
	background: var(--sam-panel);
	border: 1px solid var(--sam-purple);
	color: white;
	padding: 5px;
	margin-bottom: 3px;
	display: inline-block;
}

#protect_selection {
	display: block;
	text-decoration: underline;
	color: var(--sam-pink);
	text-align: center;
	cursor: pointer;
}

#protect_selection:hover {
	color: var(--sam-yellow);
}

#protect_selection:active {
	color: var(--sam-purple-light);
}

#char_choice {
	margin-left: 14px;
}

.protect_button {
	border: 1px solid var(--sam-pink);
	background: var(--sam-dark);
	color: white;
	text-align: center;
	cursor: pointer;
	min-width: 40px;
	display: inline-block;
	padding: 3px;
}

.protect_button:hover {
	background: var(--sam-purple);
}

.auto_prog_panel {
	width: 150px;
	height: 30px;
	background: var(--sam-purple);
	border: 1px solid var(--sam-pink);
	text-align: center;
	color: white;
}

/* CHAT */

#chatbar {
	width: 100%;
	margin: 3px;
	margin-right: 0;
	resize: none;
	font-family: Arial, sans-serif;
	white-space: nowrap;
	overflow: hidden;
	padding: 3px;
	font-size: 10pt;
	background: var(--sam-dark);
	border: 1px solid var(--sam-purple);
	color: white;
}

#chatbar:focus {
	outline: 1px solid var(--sam-pink);
}

#chat_open {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 68px;
	text-align: center;
	height: 18px;
	cursor: default;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--sam-purple);
	color: white;
}

#chat_open:hover {
	background: var(--sam-pink);
	color: white;
}

#chat_open:active {
	color: var(--sam-yellow);
	background: var(--sam-dark);
}

#usr_online {
	padding-left: 16px;
	display: inline-block;
	cursor: default;
	user-select: none;
	color: var(--sam-pink);
}

#chatsend {
	padding: 2px 7px;
	background: var(--sam-purple);
	color: white;
	border: 1px solid var(--sam-pink);
	cursor: pointer;
}

#chatsend:hover {
	background: var(--sam-pink);
}

.chat_tab_button {
	height: 20px;
	border: 1px solid var(--sam-border);
	border-radius: 2px;
	text-align: center;
	font-family: Verdana;
	font-size: 13px;
	cursor: default;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 3px;
	padding: 0 5px;
	background: var(--sam-dark);
	color: var(--sam-gray);
}

.chat_tab_selected {
	background: var(--sam-purple);
	color: white;
	border-color: var(--sam-pink);
}

.chatfield {
	border: 1px solid var(--sam-purple);
	border-radius: 2px;
	background: #1d1d22;
	color: var(--sam-white);
	overflow: scroll;
	overflow-x: hidden;
	overflow-wrap: break-word;
	margin: 3px;
	margin-bottom: 0;
	height: 100%;
	padding: 4px;
	contain: strict;
}

.chatfield > div {
	overflow: hidden;
}

.unread_bar {
	background: var(--sam-pink);
	width: 100%;
	height: 2px;
	margin-top: 6px;
	margin-bottom: 6px;
	text-align: center;
}

.unread_bar_msg {
	background: var(--sam-black);
	position: relative;
	top: -8px;
	padding: 0 3px;
	font-family: Verdana;
	font-size: .7em;
	color: var(--sam-pink);
}

.unread {
	margin-left: 4px;
	color: var(--sam-pink);
	font-size: 11px;
}

#total_unread {
	font-weight: bold;
	color: var(--sam-yellow);
}

#chat_window {
	position: absolute;
	background: var(--sam-dark);
	border: 1px solid var(--sam-purple);
	border-radius: 3px;
	display: flex;
	flex-flow: column;
	box-shadow: 4px 4px 0 rgba(0,0,0,.5);
}

#chat_close {
	float: right;
}

.close_button {
	background: var(--sam-red);
	width: 20px;
	height: 20px;
	text-align: center;
	color: white;
	border: 1px solid #8c111b;
	border-radius: 2px;
	font-family: monospace;
	font-size: 16px;
	cursor: pointer;
}

/* JAVASCRIPT CONFIRMATION */

#confirm_js {
	width: 441px;
	height: 256px;
	position: absolute;
	background: var(--sam-dark);
	border: 2px solid var(--sam-pink);
	box-shadow: 6px 6px 0 var(--sam-black);
	color: white;
}

#confirm_js_code {
	background: #171719;
	border: 1px solid var(--sam-purple);
	color: var(--sam-yellow);
	position: absolute;
	width: 365px;
	height: 110px;
	top: 90px;
	left: 35px;
	padding: 3px;
	font-family: "Courier New", monospace;
	word-wrap: break-word;
	word-break: break-all;
	overflow: scroll;
	overflow-x: hidden;
}

#confirm_js_cancel {
	position: absolute;
	font-family: Helvetica;
	background: var(--sam-purple);
	border: 1px solid var(--sam-pink);
	width: 80px;
	height: 17px;
	top: 220px;
	left: 340px;
	padding: 2px;
	text-align: center;
	font-size: 15px;
	color: white;
	cursor: pointer;
}

#confirm_js_cancel_x {
	background: var(--sam-red);
	width: 20px;
	height: 20px;
	position: absolute;
	right: 3px;
	top: 2px;
	text-align: center;
	color: white;
	font-family: monospace;
	font-size: 16px;
	border: 1px solid black;
	cursor: pointer;
}

#confirm_js_msg {
	text-align: center;
	position: absolute;
	left: 20px;
	font-family: Verdana;
	top: 40px;
}

#confirm_js_cancel:hover {
	background: var(--sam-pink);
}

#run_js_confirm,
#confirm_js_copy {
	position: absolute;
	color: var(--sam-yellow);
	text-decoration: underline;
	top: 220px;
	cursor: pointer;
}

#run_js_confirm {
	left: 20px;
}

#confirm_js_copy {
	left: 280px;
}

/* SELECTION */

.region_selection {
	position: absolute;
	border: 1px solid var(--sam-pink);
	pointer-events: none;
	box-sizing: border-box;
}

.mobile_selection_handle {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--sam-purple-light);
	border: 2px solid var(--sam-pink);
	position: absolute;
}

#area_results {
	width: 100%;
	height: 200px;
	white-space: pre;
	overflow: auto;
	overflow-x: scroll;
	background: var(--sam-dark);
	color: var(--sam-white);
}

/* WORLD */

#link_element {
	position: absolute;
	display: block;
}

#owot {
	background-image: url("/static/unloaded.png");
	background-repeat: repeat;
}

#owot.nightmode {
	background-image: url("/static/unloaded_night.png");
}

/* ZOOM */

#zoombar {
	width: 100%;
}

.color_btn {
	background: var(--sam-purple);
	width: 16px;
	height: 16px;
	border-radius: 3px;
	border: 1px solid var(--sam-pink);
	display: inline-block;
	font-weight: bold;
	font-family: Verdana;
	text-align: center;
	cursor: pointer;
	font-size: .8em;
	overflow: hidden;
	margin: 3px;
	user-select: none;
	vertical-align: top;
	color: white;
}

.color_btn:hover {
	border-color: var(--sam-yellow);
}

.color_btn:active {
	background: var(--sam-pink);
}

.color_btn_no_cell {
	background: linear-gradient(to right top, white 47.75%, red 49.5%, red 55%, white 50%);
}

/* TABLES */

.worldtools-wtw-datatable {
	border-collapse: collapse;
	background: var(--sam-dark);
	color: white;
}

.worldtools-wtw-datatable td:not(:first-child),
.worldtools-wtw-datatable th:not(:first-child) {
	border-left: 1px solid var(--sam-border);
}

.worldtools-wtw-datatable thead {
	border-bottom: 1px solid var(--sam-purple);
	background: var(--sam-panel);
	color: var(--sam-yellow);
}

/* MODALS */

.modal_corner_checkbox_label {
	margin-left: 5px;
	user-select: none;
	white-space: nowrap;
}

#modal_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: default;
	background: rgba(0,0,0,.75);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal_close {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 8px;
	color: var(--sam-pink);
	text-decoration: underline;
	cursor: pointer;
}

.modal_frame {
	background: var(--sam-purple);
	border: 1px solid var(--sam-pink);
	color: white;
}

.modal_client {
	background: var(--sam-dark);
	color: var(--sam-white);
}

.modal-tab-btn {
	background: var(--sam-purple);
	color: white;
	border: 1px solid var(--sam-pink);
}

.modal-tab-btn:hover {
	background: var(--sam-pink);
}

/* TOOLTIPS */

.tooltip {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--sam-dark);
	color: white;
	font-family: Verdana, Arial;
	font-size: .8em;
	border: 1px solid var(--sam-pink);
	padding: 4px 7px;
	pointer-events: none;
	max-width: 90%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* EMOTES */

.chat_emote {
	background: url(/static/emotes.png);
	background-size: auto 400%;
	height: 16px;
	vertical-align: middle;
	display: inline-block;
}

/* ERASE REGION */

#erase_region {
	background: var(--sam-dark);
	border: 1px solid var(--sam-purple);
	padding: 5px;
	margin-bottom: 3px;
	font-family: Verdana, Arial;
	font-size: 12px;
	color: white;
}

#erase_region_cancel {
	display: block;
	text-decoration: underline;
	color: var(--sam-pink);
	text-align: center;
	cursor: pointer;
}

#erase_region_cancel:hover {
	color: var(--sam-yellow);
}

#erase_region_cancel:active {
	color: var(--sam-purple-light);
}

/* TEXT DECORATIONS */

#text_decorations {
	background: var(--sam-dark);
	border: 1px solid var(--sam-purple);
	padding: 3px;
	margin-bottom: 3px;
	display: inline-flex;
}

.text_deco_btn {
	width: 32px;
	height: 32px;
	text-align: center;
	display: inline-block;
	font-size: 28px;
	user-select: none;
	font-family: Arial, Verdana;
	color: var(--sam-pink);
}

.text_deco_btn:hover {
	background: var(--sam-purple);
	color: var(--sam-yellow);
}

#text_deco_b {
	font-weight: bold;
}

#text_deco_i {
	font-style: italic;
}

#text_deco_u {
	text-decoration: underline;
}

#text_deco_s {
	text-decoration: line-through;
}

/* MENU PIN */

.menuPin {
	width: 12px;
	height: 12px;
}

/* LONG PRESS MENU */

.longpress-container {
	width: 100%;
	position: absolute;
	bottom: 22px;
	text-align: center;
	pointer-events: none;
}

.longpress-options {
	background: var(--sam-dark);
	border: 1px solid var(--sam-purple);
	box-shadow: 3px 3px 0 var(--sam-black);
	padding: 5px;
	display: inline-block;
	pointer-events: auto;
	cursor: default;
	user-select: none;
}

.longpress-option {
	display: table-cell;
	color: white;
	padding: 5px;
	font-family: Verdana, Arial;
	vertical-align: middle;
	user-select: none;
}

.longpress-close {
	font-size: 2em;
	color: var(--sam-pink);
}

.longpress-option:not(:last-child) {
	border-right: 1px solid var(--sam-border);
}

.longpress-option:active {
	background: var(--sam-purple);
	color: var(--sam-yellow);
}

/* EXTRA SAM PUCKETT DETAILS */

::selection {
	background: var(--sam-pink);
	color: white;
}

button,
input,
textarea,
select {
	accent-color: var(--sam-pink);
}

button:hover {
	filter: brightness(1.15);
}

:focus-visible {
	outline: 2px solid var(--sam-yellow);
	outline-offset: 2px;
}
/* Font */
#chat_window, #chat_open, .ui {
	font-family: "iFont", Verdana, "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.close_button {
	font-family: Verdana, "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}