body {
	font-family:"Times New Roman", Times, serif;
	font-size: 100%;
	color: #ffffff;
	background-color:#000000;
	width:100%;
	height:100%;
	margin:0;
	padding:0;
	cursor: default;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

a {
	text-decoration: none;
	color: #ffff00;
}

::-webkit-input-placeholder { color:#fff; }
::-moz-placeholder { color:#fff; }
:-ms-input-placeholder { color:#fff; }
input:-moz-placeholder { color:#fff; }

button {
	font-family:Arial, Helvetica, sans-serif;
	color:#ffff00;
	background-color:#333333;
	border: 1px solid #000000;
	outline:0;
	margin: 1px
}

button:disabled {
	color:#000000;
	border: 1px solid #000000;
}

button:focus {
	border: 1px solid #0000ff
}

button:hover:enabled {
	border: 1px solid #ffff00;
	cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	top: -20px;
	margin: 0;
	outline: none;
	border: 1px solid transparent;
	background-color: transparent;
}

label {
	cursor: pointer;
}

input[type="checkbox"] + label:before {
	font-family:Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: bold;
	color: #ffff00;
	content: "\00a0";
	line-height: 15px;
	border: 1px solid #000000;
	display: inline-block;
	height: 15px;
	width: 15px;
	margin: 0 .25em .25em 0;
	padding:0;
	vertical-align: middle;
	text-align: center;
	border-radius: 4px;
	box-shadow: 1px 1px 0px 0px rgba(0,0,0,0.6);
}

input[type="checkbox"]:checked + label:before {
  content: "\2713";
}

input[type="checkbox"]:focus + label:before,
.tab_box input[type="radio"]:focus + label:before {
	border: 1px solid #0000ff;
}

input[type="checkbox"]:hover + label:before,
.tab_box input[type="radio"]:hover + label:before {
	border: 1px solid #ffff00;
}

#select_bg {
	height: 21px;
	width: 180px;
	background: url(imgs/select_arrow.png) no-repeat 95% -4px;
	border: 1px solid #000000;
	border-radius: 4px;
	padding-left: 5px;
	padding-top: 3px;
	box-shadow: 1px 1px 0px 0px rgba(0,0,0,0.6);
}

#select_bg:hover {
	border: 1px solid #ffff00;
}

#select_bg_options {
	display: none;
	position: fixed;
	width: 185px;
	background-color: #333333;
	color: #ffffff;
	border: 1px solid #000000;
}

#select_bg_options div {
	padding-left: 5px;
}

#select_bg_options div:hover {
	background-color: #222222;
}

.tab_box input[type="radio"] + label:before {
	content: "";
	border: 1px solid #000000;
	display: inline-block;
	height: 11px;
	width: 11px;
	margin: 0 .25em .25em 0;
	padding:0;
	vertical-align: middle;
	border-radius: 8px;
	box-shadow: 1px 1px 0px 0px rgba(0,0,0,0.6);
}

.tab_box input[type="radio"]:checked + label:before {
    background: radial-gradient(#ffff00, transparent);
}

#draw_box input[type="radio"] + label {
	display: inline-block;
	height: 16px;
	padding: 4px;
	border: 1px solid #000000;
	border-radius: 4px;
	background: linear-gradient(135deg, rgba(76,76,76,1) 0%, rgba(19,19,19,1) 75%);
	box-shadow: 2px 2px 0px 0px rgba(0,0,0,0.6);
}

#draw_box input[type="radio"]:checked + label {
	background: #000000;
	border: 1px solid #ffffff;
	box-shadow: 2px 2px 0px 0px rgba(255,255,255,0.6);
}

#draw_box input[type="radio"]:hover + label {
	border: 1px solid #ffff00;
	box-shadow: 2px 2px 0px 0px rgba(255,255,0,0.6);
}

#options_box, #crop_box, #draw_box, #zoom_box {
	position: fixed;
	top:0;
	left:0;	
	width: 36px;
	height: 31px;
	padding-bottom: 5px;
	overflow: hidden;
	white-space: nowrap;
	background-color: #333333;
	opacity: 0.9;
	z-index:100;
	border: 1px solid black;
	line-height: 18px;
}

#crop_box, #draw_box, #zoom_box {
	display: none;
}

.draw_option {
	display: inline-block;
	width: 100px;
	vertical-align: middle;
	text-align: right;
	margin: 5px 1px;
}

#draw_undo:before {
	content: url(imgs/undo.png);
}

#draw_undo:disabled:before {
	content: url(imgs/undo_disabled.png);
}

#draw_redo:after {
	content: url(imgs/redo.png);
}

#draw_redo:disabled:after {
	content: url(imgs/redo_disabled.png);
}

#draw_color_tile {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	background-color: #ff0000;
	border: 1px solid black;
	margin: 1px;
	cursor: pointer;
}

#draw_color_tile:hover {
	border: 1px solid #ffff00;
}

#draw_color_tile img {
	position: absolute;
	bottom: 1px;
	right: 2px;
}

#draw_color_sel {
	position: fixed;
	display: none;
	padding: 2px;
	background-color: #333333;
	border: 1px solid black;
	z-index:101;
}

#draw_color_form {
	display: inline-block;
	vertical-align: top;
}

#draw_color_form input[type=text] {
	font-family:Arial, Helvetica, sans-serif;
	color:#ffff00;
	margin: 1px;
	background-color:#333333;
	border: 1px solid #000000;
}

#draw_color_form input[type=text]:focus {
	outline: 0;
	border: 1px solid #ffff00;
}

#draw_color_hex {
	width: 60px;
}

#draw_color_r, #draw_color_g, #draw_color_b {
	width: 30px;
}

#draw_color_hex {
	width: 60px;
}

#draw_palette {
	cursor: crosshair;
}

#draw_mini_palette div {
	display: inline-block;
	border: 1px solid black;
	height: 10px;
	width: 10px;
	cursor: pointer;
}

#draw_mini_palette div:hover {
	border: 1px solid #ffff00;
}

#draw_width {
	display: inline-block;
	background-color: #333333;
	border: 1px solid black;
	height: 20px;
	vertical-align: middle;
	margin: 1px;
}

#draw_width_val {
	display: inline-block;
	width: 25px;
	height: 24px;
	line-height: 24px;
	text-align: right;
	vertical-align: top;
}

#draw_width_btns {
	display: inline-block;
}

#draw_width_btns div {
	width: 15px;
	height: 8px;
	line-height: 8px;
	font-size: 15px;
	text-align: center;
	border: 1px solid black;
	cursor: pointer;
}

#draw_width_btns div:hover {
	color: #ffff00;
	border: 1px solid #ffff00;
}

.options_indent {
	margin-left: 7px;
}

.options_indent_grid {
	margin-left: 20px;
}

.options_center {
	width: 200px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.options_divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

#options_label {
	font-family:Arial, Helvetica, sans-serif;
	color:#ffff00;
	width: 180px;
	text-align: center;
	margin: 5px;
	background-color:#333333;
	border: 1px solid #000000;
}

#options_label:focus {
	outline: 0;
	border: 1px solid #ffff00;
}

.options_links {
	display: none;
	position: absolute;
	top: 3px;
	right: 3px;
}

#tabs {
	border-bottom: 1px solid #000000;
	margin-bottom: 5px;
}

#tabs DIV {
	position: relative;
	top: 1px;
	display: inline-block;
	border: 1px solid #000000;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	padding: 0px 5px;
	margin-left: 2px;
	color:#dddddd;
	background-color:#222222;
	cursor: pointer;
}

#tabs DIV:first-child {
	margin-left: 7px;
}

.selectedtab {
	border-bottom: 1px solid #333333 !important;
	color:#ffffff !important;
	background-color:#333333 !important;
}

.tab_box {
	display: none;
}

#deed_list_scroll {
	height: 255px;
	width: 192px;
	padding-left: 7px;
	padding-right: 1px;
	overflow-x: hidden;
	overflow-y: scroll;
}

#deed_list_scroll DIV {
	left: 10px;
	right: 10px;
	cursor: pointer;
}

#deed_list_scroll DIV:hover {
	background-color:#222222;
}

.deed_list_clicked {
	border: 1px solid #ffff00;
}

.deed_list_founded {
	color:#ffff00;
}

.deed_list_disbanded {
	color:#ff0000;
}

.deed_list_changed {
	color:#ffa500;
}

.deed_sort_link {
	cursor: pointer;
}

.deed_sort_link:hover {
	background-color:#222222;
}

#deed_info, #point_info {
	width: 100%;
}

.grid_select {
	font-size: 15px;
}

.pic_list_btn {
	position: absolute;
	width: 38px;
	height: 38px;
	top: 0px;
	left: 0px;
}

.pic_list_btn_txt {
	font-family:"Times New Roman", Times, serif;
	font-size: 10px;
	font-size: 15px;
	position: absolute;
	top: 2px;
	right: 4px;
}

#deed_count {
	font-size: 14px;
	line-height: 1;
	width: 100%;
}

#map_wrap {
	position: relative;
}

#pointer_wrap {
	display: none;
	position: absolute;
	left: 0px;
	top: 0px;
	padding:0;
	margin:0;
	white-space: nowrap;
	pointer-events: none;
	z-index:99;
}

#pointer {
	vertical-align: top;
}

#label_wrap {
	vertical-align: top;
	display: inline-block;
}

#plabel {
	font-family:Arial, Helvetica, sans-serif;
	font-size: 13px;
	color:#ffff00;
	padding: 2px;
	width: 100px;
	background-color:#333333;
	opacity:0.7;
	border: 1px solid transparent;
	pointer-events: auto;
}

#plabel:focus {
	outline: 0;
	border: 1px solid #ffff00;
}

#coords {
	font-family:Arial, Helvetica, sans-serif;
	font-variant:small-caps;
	color:#ffff00;
	background-color:#333333;
	opacity:0.7;
}

#view_cover {
	display: none;
	position:fixed;
	top:0;
	left:0;
	background:rgba(0,0,0,0.6);
	z-index:101;
	width:100%;
	height:100%;
}

#linkview, #deedview, #pointview, #saveview, #deleteview, #drawsaveview {
	display: none;
	height: 200px;
	width: 400px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	z-index: 102;
	background-color: #333333;
	border: 5px solid #333333;
	border-radius: 10px;
	box-shadow: 5px 5px 10px 5px rgba(0,0,0,0.6);
}

#riftview {
	display: none;
	height: 150px;
	width: 400px;
	position: fixed;
	top: 5px;
	left: 5px;
	z-index: 100;
	background-color: #333333;
	border: 5px solid #333333;
	border-radius: 10px;
	box-shadow: 5px 5px 10px 5px rgba(0,0,0,0.6);
}

#picview {
	display: none;
	height: 300px;
	width: 500px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	z-index: 102;
	background-color: #333333;
	border: 5px solid #333333;
	border-radius: 10px;
	box-shadow: 5px 5px 10px 5px rgba(0,0,0,0.6);
}

#link_dev {
	display: none;
}

.view_close, #draw_color_close, #pic_close, #rift_close {
	position: absolute;
	width: 25px;
	height: 25px;
	top: 0px;
	right: 0px;
	line-height: 25px;
	text-align: center;
	font-size: 25px;
	font-weight: bold;
	background-color: #444444;
	border: 1px solid #444444;
	border-radius: 5px 5px 5px 5px;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.1s;
}

.view_close:hover, #draw_color_close:hover, #pic_close:hover, #rift_close:hover {
	opacity: 1;
}

.view_header, #drawsave_header {
	font-family:Arial, Helvetica, sans-serif;
	font-size: 1.5em;
	width: 250px;
	height: 23px;
	margin: 10px auto;
	color: #ffff00;	
	text-align: center;
	vertical-align: middle;
}

#drawsave_btns, #drawsave_load {
	width: 300px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	margin-bottom: 5px;
}

.link_code {
	width: 390px;
	color: #ffffff;
	background-color: #333333;
	border: 1px solid #000000;
}

.link_code:focus {
	outline: 0;
	border: 1px solid #ffff00;
}

#alert_box {
	font-family: Arial, Helvetica, sans-serif;
	line-height: 18px;
	position:fixed;
	padding: 2px;
	top: 25px;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, 0);
	overflow: hidden;
	white-space: nowrap;
	text-align: center;
	background-color: #333333;
	opacity: 0.9;
	width: 200px;
	z-index:100;
	border: 1px solid #ffff00;
}

#alert_box a {
	color: #ffff00;
	text-decoration: none;
}

#alert_box a:hover {
	color: #ff0000;
}

#rift_status {
	display: none;
	position: absolute;
	top: 345px;
	left: 42px;
	padding: 1px;
	z-index: 30;
	font-family: Arial, Helvetica, sans-serif;
	overflow: visible;
}

#rift_status img {
	vertical-align: top;
}

#rift_status div:first-of-type {
	margin-left: 20px;
}

#rift_status div {
	margin-left: 2px;
	vertical-align: top;
	display: inline-block;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 16px;
	font-size: 0.7em;
}

#rift_status #rift_date {
    visibility: hidden;
    background-color: #444444;
    border-radius: 6px;
    position: absolute;
    top: 100%;
    left: 20px;
	margin-top: 6px;
	padding-left: 10px;
	padding-right: 10px;
	white-space: nowrap;
	line-height: 16px;
	font-size: 0.7em;
    opacity: 0;
    transition: opacity 1s;
}

#rift_status #rift_date::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #444444 transparent;
}

#rift_status:hover div {
	background-color: #444444;
}

#rift_status:hover #rift_date {
    visibility: visible;
    opacity: 1;
}

.map_layer {
	display: none;
	position: absolute;
	top: 0px;
	left: 0px;
	pointer-events: none;
}

#zoom_layer {
	display: none;
	position: absolute;
	top: 0px;
	left: 0px;
	height: 2048px;
	width: 2048px;
	z-index: 21; 
	cursor: grab;
	cursor: -webkit-grab;
}

#zoom_display {
	position: fixed;
	top:25px;
	left:2px;
	color:#ffff00;
	font-family:"Times New Roman", Times, serif;
	font-size: 10px;
}

#outline_layer {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 2048px;
	width: 2048px;
	z-index: 21;
	pointer-events: none;
}

#crop_layer {
	display: none;
	position: absolute;
	top: 0px;
	left: 0px;
	height: 2048px;
	width: 2048px;
	z-index: 21; 
	cursor: crosshair;
}

@keyframes animate_crop {
  to {
    outline-color: #000000;
    box-shadow: 0 0 0 2px #ffffff;
  }
}

#crop_selection {
	position: absolute;
	top: 0px;
	left: 0px;
	outline: 2px dashed #ffffff;
	box-shadow: 0 0 0 2px #000000;
	animation: animate_crop 1s cubic-bezier(1,0,0,1) infinite;
}

#draw_layer, #drawn_layer {
	pointer-events: none;
	position: absolute;
	top: 0px;
	left: 0px;
	height: 2048px;
	width: 2048px;
	z-index: 20;
	cursor: crosshair;
}

#rift_icon {
	pointer-events: none;
	display: none;
	position: absolute;
	top: 50px;
	left: 50px;
	z-index: 21;
}
#map_deedmarks { z-index: 10; }
#map_deednames { z-index: 9; }
#map_roads { z-index: 8; }
#map_markets { z-index: 7; }
#map_resources { z-index: 6; }
#map_key { z-index: 5; }
#map_updated { z-index: 4; }
#map_grid { z-index: 3; }
#map_areanames { z-index: 2; }
#map {
	display: none;
	cursor: url(imgs/cursor.png), default;
	z-index: 1;
}
