body {

	background-color: #C5C7AE;
	/* background-color: #404040; */
	color: #000000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	margin: 0;
	text-align: center;
}
#body {
	margin: 2em;
	min-height: 60vh;
	position: relative;
}
.center { text-align: center; }

.al { text-align: left;}
.ar { text-align: right;}
.small { font-size: small; }
.monospaced { font-family: monospace; }
table {
	background-color: #cdcdb4;
	border: 1px solid #b5ad85;
	margin: 0 auto;
	border-spacing: unset;
}
sup { font-size: 65%; }
#header, #footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 1em;
	background: #b3b696;
}
#header .title span {
	font-size: 200%;
	color: #0052b5;
	font-weight: bold;
	/*cursor: pointer;*/
}
.radio, .checkbox {
	cursor: pointer;
}
.radio.disabled, .checkbox.disabled {
	cursor: default;
	color: #606060;
}
.radio {
	display: inline-block;
}
.radio DIV {
    background-image: url(/resources/img/radio_button.png);
    width: 13px;
    height: 13px;
    margin: 4px;
    display: inline-block;
    vertical-align: -6px;
}
.radio.checked DIV {
	background-position: -13px;
}
.radio.disabled DIV {
	background-position: -26px;
}
.radio.checked.disabled DIV {
	background-position: -39px;
}
.checkbox DIV {
    background-image: url(/resources/img/checkbox.png);
    width: 17px;
    height: 17px;
    display: inline-block;
    vertical-align: -6px;
    margin: 2px;
}
.checkbox.checked DIV {
	background-position: -17px;
}
.checkbox.disabled DIV {
	background-position: -34px;
}
.checkbox.checked.disabled DIV {
	background-position: -51px;
}
#foot_notes {
    margin: auto;
    display: inline-block;
    text-align: left;
}
input[type="color"] {
    -webkit-appearance: none;
    width: 17px;
    padding: 0;
    height: 17px;
    vertical-align: middle;
    border: 1px solid black;
    margin: 2px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
input[type="color"]::-webkit-color-swatch {
	border: none;
}
.arrow {
    background-image: url(/resources/img/arrows_hover.png);
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: middle;
}
.pause {
    background-image: url(/resources/img/pause.png);
	width: 16px;
	height: 16px;
}
.down.arrow {
	background-position: 0px;
}
.up.arrow {
	background-position: -16px;
}
.prev .arrow {
	background-position: -48px;
}
.next .arrow {
	background-position: -32px;
}
.small_arrow {
	width: 16px;
	height: 15px;
	display: inline-block;
	vertical-align: text-bottom;
	background: none;
}
.prev .small_arrow {
	background-image: url(/resources/img/value_arrows.png);
	background-position: 0px;
}
.next .small_arrow {
	background-image: url(/resources/img/value_arrows.png);
	background-position: -16px;
}
.up .small_arrow {
	background-image: url(/resources/img/value_arrows.png);
	background-position: -32px;
}
.down .small_arrow {
	background-image: url(/resources/img/value_arrows.png);
	background-position: -48px;
}
#recentChanges {
    position: absolute;
    left: 3em;
    top: 8em;
}
@keyframes sprite {
  to { background-position: -147px; }
}

.newupdates {
  height: 21px;
  width: 21px;
  background: url("/resources/img/new.png");
  background-size: 147px 21px;
  animation: sprite 0.6s steps(7) infinite;
    position: absolute;
    right: -16px;
    top: -1px;
	display: none;
}

#recent-changes-overlay, #aboutPage-overlay, #help-overlay {
	position: fixed;
	z-index: 99;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
	display: none;
}

.goldFrame {
	/* background-color: #C5C7AE; */
	/*margin: 6em auto;*/
	/* padding: 20px; */
	/* border: 1px solid #888888; */
	/*width: 75%;*/
	/* font-weight: bolder; */
	border: 31px solid transparent;
    /* padding: 15px; */
    border-image-source: url(/resources/img/gold_frame.png);
    border-image-repeat: stretch;
    border-image-slice: 33% 33%;
}
#recent-changes-frame, #aboutPage-frame, #help-frame {
	/* background-color: #C5C7AE; */
	margin: 6em auto;
	/* padding: 20px; */
	/* border: 1px solid #888888; */
	width: 75%;
	/* font-weight: bolder; */
	border: 31px solid transparent;
    /* padding: 15px; */
    border-image-source: url(/resources/img/gold_frame.png);
    border-image-repeat: stretch;
    border-image-slice: 33% 33%;
}
#recent-changes-content, #aboutPage-content, #help-content {
	background-color: #C5C7AE;
	margin: -20px;
	padding: 20px;
	position: relative;
    text-align: left;
}
#recent-changes-content .header, #aboutPage-content .header, #help-content .header{
	font-size: 150%;
}
#recent-changes-content .close_btn, #aboutPage-content .close_btn, #help-content .close_btn {
	background-image: url("/resources/img/closebox.png");    height: 14px;
    width: 14px;
    background-color: #5b93bf;
    border-radius: 50%;
    border: solid 1px;
    background-position-x: -1px;
    right: 5px;
    top: 5px;
	position: absolute;
    cursor: pointer;
}
#footer {
	min-height: 200px;
	display: block;
	position: relative;
	margin-top: 5em;
	padding: 2em
}
#sitemap {
    display: flex;
    justify-content: center;
	padding-bottom: 2em;
    flex-wrap: wrap;
}
#sitemap div { padding: 0 1em; }

a{
	color: #0052b5;
    text-decoration: none;
    font-style: normal;
	cursor: pointer;
}
.link{
	color: #0052b5;
    cursor: pointer;
}

.btn {
	color: #0052b5;
    margin: 0 0.5em;
    display: inline-block;
    border: #b5ad85 solid 1px;
    background-color: #C5C7AE;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
	padding: 1px 0.5em;
	font-style: normal;
	font-size: initial;
}
.btn:hover {
	background-color: #b5ad85;
	border: #cdcdb4 solid 1px;
}

.btn.disabled {
	opacity: 0.5;
	filter: grayscale(1);
	cursor: not-allowed;
}

.credit {
    color: #606060;
    font-style: italic;
    font-size: 85%;
}
.lastMod {
	position: absolute;
	bottom: 1em;
	right: 1em;
}
.coffee {
	position: fixed;
	bottom: 0.5em;
	left: 0.5em;
}
.coffee img{
	height: 40px;
}

#support-button {
	position: fixed;
	bottom: 0.5em;
	left: 0.5em;
	display: inline-block;
	background: #0052b5;
	color: whitesmoke;
	padding: 0.5em;
	border-radius: 2em;
}
#support-button.online { color: lime; }
	
.footerContact {
	position: absolute;
	bottom: 1em;
	left: 11em;
}

form {     display: inline-block; }

#pirateTimeCont {
	position: absolute;
	top: 1em;
	right: 1em;
}
#pirateTime {
	/* position: absolute; */
	/* top: 1em; */
	/* right: 1em; */
	text-align: center;
	display: flex;
	align-items: center;
}
#clock { padding: 0 1em; }
#freepuzzle {
	position: relative;
	width: 100px;
	margin: 0.5em auto;
}
#freepuzzle .outer {
	position: relative;
	width: 100px;
	height: 96px;
	border:	black solid 1px;
	overflow: hidden;
	background-color: #C5C7AE;
}
#freepuzzle .inner { position: absolute;
	white-space: nowrap;
}
#pirateTime .puzzlecont {
		display: inline-block;
		height: 100%;
		vertical-align: middle;
		opacity: 0.4;
		width: 30px;
		border-left: 1px solid transparent;
		border-right: 1px solid transparent;
	}
#pirateTime .puzzlecont.selected {
	background-color: #cdcdb4;
	opacity: 1;
	
	border-left: 1px solid #b5ad85;
	border-right: 1px solid #b5ad85;
}

#freepuzzleFull_cont .triangledown, #pirateTime .triangledown {
width: 0;
height: 0;
border-style: solid;
border-width: 5.2px 3px 0 3px;
border-color: black transparent transparent transparent;
position: absolute;
left: 48px;
top: -4px;
}

#freepuzzleFull_cont .triangleup, #pirateTime .triangleup {
width: 0;
height: 0;
border-style: solid;
border-width: 0px 3px 5.2px 3px;
border-color: transparent transparent black transparent;
position: absolute;
left: 48px;
bottom: -4px;
}


.header{
	color: #0052b5;
	font-weight: bold;
	text-align: center;
}

.item_icon {
    background-image: url(/resources/img/item_box_inactive.png);
    width: 44px;
    height: 47px;
    display: inline-block;
    margin: 5px;
}
.item_icon DIV {
	width: 36px;
    height: 39px;
    margin: 4px;
}
.item_icon:hover, .item_icon.hover {
    background-image: url(/resources/img/item_box.png);
}
.item_icon.selected {
    background-image: url(/resources/img/item_box_equip.png);
}

SELECT {
    cursor: pointer;
}
SELECT, INPUT {
	background-color: #C5C7AE;
	border: #b5ad85 solid 1px;
	height: 1.5em;
	width: 8em;
}
TEXTAREA {
    background-color: #C5C7AE;
    border: #b5ad85 solid 1px;
	width: unset;
	resize: none;
	width: 20em;
    font-family: Arial, Helvetica, sans-serif;
}
INPUT[type=file] {
	width: unset;
}
INPUT[type=file]::file-selector-button {
	color: #0052b5;
    margin: 0 0.5em;
    display: inline-block;
    border: #b5ad85 solid 1px;
    background-color: #C5C7AE;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    padding: 1px 0.5em;
}
INPUT[type=file]::file-selector-button:hover {
    background-color: #b5ad85;
    border: #cdcdb4 solid 1px;
}

.moon {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin: auto;
  position: relative;
  overflow: hidden;
  rotate: 25deg;
	display: inline-block;
}

.firstQ, .thirdQ {
  width: 50%;
  height: 100%;
  position: absolute;
  background:url(/resources/img/moon.png);
  filter: brightness(40%);
}
.thirdQ {
	left:50%;
	background-position-x: 100%;
}
.ellipse {
  border-radius: 50%;
	width: 50%;
	height: 100%;
  background:url(/resources/img/moon.png);
  filter: brightness(40%);
    background-position: center;
	display: inline-block;
}
.monster_icon {
	width:34px;
	height:33px;
	background:url(/resources/img/monster_icons.png);
	margin: auto;
	display: inline-block;
}
.gold_box {
	display: inline-block;
	width:32px;
	height:34px;
	background:url(/resources/img/gold_box.png);
	background-size: contain;
}

.mystery_box {
	width: 38px;
	height: 54px;
	background-image:url(/resources/img/mystery_boxes.png);
	display: inline-block;
	vertical-align: middle;
}
#pirateTime .mystery_box {
	width: 25px;
	height: 35px;
	background-image: url(/resources/img/mystery_boxes.png);
	display: inline-block;
	background-size: 325px 35px;
	vertical-align: unset;
}
#login {
	position: absolute;
	width: 100%;
	top: -23px;
	white-space: nowrap;
}
.verification_status {
	width: 21px;
	height: 21px;
	position: relative;
	top: -2px;
	vertical-align: middle;
	background-image: url(/resources/img/crew_ranks.png);
	background-size: 147px 21px;
	display: inline-block;
} /* No class = jobbing */
.status_icon_0 { background-position-x:-21px; }	/* Cabin person */
.status_icon_1 { background-position-x:-42px; }	/* Pirate */
.status_icon_2 { background-position-x:-63px; }	/* Officer */
.status_icon_3 { background-position-x:-84px; }	/* Fleet Officer */
.status_icon_4 { background-position-x:-105px; }	/* Senior Officer */
.status_icon_5 { background-position-x:-126px; }	/* Captain */
.status_icon_6, .status_icon_7, .status_icon_8 {
	background-image: url(/resources/img/flag_ranks.png);
	background-size: 63px 21px;
} /* icon_6 = Titled */
.status_icon_7 { background-position-x:-21px; }	/* Royalty */
DIV.status_icon_8 { background-position-x:-42px; }	/* Monarch */