body {
	background: url('/images/fansites/dragcave/bg_dark.png');
	margin: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wrapper, .wrapper_wide {
	position: relative;
	background: url('/images/fansites/dragcave/bg_light.png');
	margin: auto;
	padding: 20px 0 75px 0;
	box-shadow: 0 0 100px #948566;
	text-align: justify;
	border-radius: 30px 30px 0 0;
	flex-shrink: 0;
}

.wrapper {
	min-width: 700px;
	width: 65%;
	max-width: 2500px;
	padding: 20px 15px 75px 15px;
	box-sizing: border-box;
	min-height: calc(100% - 130px);
}

.wrapper_wide {
	width: 100%;
	min-height: calc(100% - 225px);
}

.wrapper_wide .content {
	overflow-y: auto;
}

.wrapper .content {
	overflow: auto;
}

.content > div {
	margin-bottom: 2rem;
}

.header {
	position: relative;
	text-align: center;
	z-index: 2;
	margin: 17px 0 27px 0;
	padding-top: 14px;
	min-height: 72px;
}
#logo {
	height: 100px;
	position: absolute;
	margin-left: -167.5px;
	top: -2px;
}
	.nav-toggle {
		position: fixed;
		display: none;
		width: 50px;
		height: 50px;
		background: #068;
		padding: 5px;
		border-radius: 10px;
		top: 1em;
		right: 1em;
		box-sizing: border-box;
		z-index: 2;
	}
		.toggler {
			border: 2px solid white;
			width: 100%;
			height: 100%;
			display: block;
			border-radius: 7px;
			background: #18a;
			box-sizing: border-box;
			padding: 5px;
		}
		.toggler img {
			width: 100%;
			vertical-align: middle;
		}
	.nav {
		list-style: none;
		display: flex;
		margin: 20px 1em 12px 1em;
		height: 40px;
		line-height: 40px;
		padding: 0;
	}
		.nav li.logo {
			flex: 3;
			min-width: 340px;
			background: none;
		}
		.nav li {
			flex: 1;
			background: #18a;
			border-radius: 2em;
			margin: 0 2px;
			color: #fff;
			font-weight: bold;
			overflow: hidden;
		}
			.nav li a {
				display: block;
				color: #fff;
				text-decoration: none;
			}
			.nav li a:hover {
				background: #3ac;
			}
			.nav li.soon {
				color: #f7ebc7;
				background: #068;
				font-weight: normal;
				font-style: italic;
			}
@media (max-width: 849px) {
	.nav-toggle {
		display: block;
	}
	.nav.closed {
		left: -100%;
	}
	.nav {
		width: 45%;
		min-width: 250px;
		flex-wrap: nowrap;
		flex-direction: column;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		margin: 0;
		overflow-x: hidden;
		overflow-y: auto;
		background: #18a;
		transition: left 1s;
	}
		.nav li.logo { display: none; }
		.nav li {
			margin: 0;
			border-radius: unset;
			max-height: 70px;
			line-height: 70px;
		}
}

.footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
	padding: 35px 0 10px 0;
	height: 30px;
	line-height: 15px;
	font-size: 12px;
	margin-left: -15px;
}
	.wrapper_wide .footer {
		margin-left: unset;
	}

.hidden {
	display: none !important;
}


#tut {
	white-space: normal;
	margin: auto;
}

code {
	border-radius: 3px;
	padding: 1px 2px;
	background: #aee5f1;
	color: #042d35;
}

code.key {
	padding: 0 5px;
	background: #333;
	color: #fff;
	border-bottom: 4px solid #000;
	border-top: 2px solid #666;
	border-left: 1px solid #666;
	border-right: 1px solid #000;
	display: inline-block;
	margin-bottom: 5px;
}

#tut .col-1 {
	float: left;
	display: inline-block;
	width: 40%;
	vertical-align: top;
	text-align: left;
}

#tut .col-2 {
	float: left;
	display: inline-block;
	width: 60%;
	vertical-align: top;
}

#tut h2 {
	margin: 0 0 1.5rem 0;
	line-height: 0.8em;
	border-bottom: 2px solid black;
}
#tut h2:first-child {
	margin-top: 0;
}
	#tut h2 i.fas {
		float: right;
		transform: rotate(90deg);
		margin-right: 0.7em;
		transition: transform 0.3s;
	}

#tut b {
	display: inline-block;
}

#tut h2::first-letter {
	font-size: 125%;
}

#tut > div {
	margin: 0 3em;
	overflow: hidden;
	box-sizing: border-box;
	padding-bottom: 1.5em;
}
	#tut h2.collapse + div {
		display: none;
	}
	#tut h2.collapse i.fas {
		transform: unset;
	}





@media (max-width: 774px) {
	.wrapper {
		min-width: unset;
		width: 85%;
	}
	#tut > div {
		margin: 0 1em;
	}
}
@media (max-width: 600px) {
	.wrapper {
		min-width: unset;
		width: 100%;
		min-height: calc(100% - 112px);
	}
	.wrapper_wide {
		min-height: calc(100% - 207px);
	}
	.header { min-height: 54px; }
	#logo {
		max-width: unset;
		width: 275px;
		height: 82px;
		margin-left: -137.5px;
	}
}




/**
 * T R A D I N G
 * For the trading post page
 */
.trading {
	width: 100%;
	text-align: center;
	border-collapse: collapse;
}

.trading td {
	border-bottom: 1px solid black;
}

.trading td:first-child {
	width: 50%;
}

.trading td:nth-child(2) {
	width: 30%;
}

.trading td:last-child {
	width: 20%;
}



/**
 * L I N E A G E S
 * For the lineage preview page
 */
.lineage {
	display: table;
	margin: auto;
	white-space: nowrap;
}

.lineage ul, .lineage li {
	padding: 0;
	margin: 0;
}

.lineage li {
	position: relative;
	list-style-type: none;
	border-spacing: 1px;
	border-collapse: collapse;
}

.lineage li:last-child > * {
	padding-bottom: 0;
}

.lineage li:first-child > * {
	padding-bottom: 0;
}

.lineage li > * {
	display: table-cell;
	vertical-align: middle;
}

.lineage li:first-child::before, .lineage li:last-child::after {
	border-width: 0;
}

.lineage li::before, .lineage li::after {
	content: "";
	display: block;
	border-left: 1px solid;
	border-bottom: 1px solid;
	width: 24px;
	position: absolute;
	height: 50%;
	bottom: 50%;
	left: 0;
}

.lineage li::after {
	top: 50%;
	bottom: auto;
	border-bottom: 0;
	border-top: 1px solid;
}

.lineage div:only-child::after {
	display: none;
}

.lineage div {
	text-align: center;
	position: relative;
	min-width: 84px;
	max-width: 84px;
	height: 52px;
	box-sizing: border-box;
}

.lineage div::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	border-top: 1px solid;
	width: 24px;
	height: 0;
}

.dragon {
	cursor: pointer;
	display: inline-block;
	width: 34px;
	height: 46px;
	border: 1px solid;
	overflow: hidden;
}

.lineage div::after, .lineage div::before, .lineage li::after, .lineage li::before, .dragon {
	border-color: #d9c99e;
}

.dragon img {
	position: relative;
	image-rendering: -webkit-optimize-contrast;
}

.dragon.selected {
	border-color: #4b4;
	background: #beb;
}

.dragon + label {
	width: 100%;
	white-space: normal;
	word-wrap: break-word;
	font-size: 0.75rem;
	line-height: 1.5em;
	margin-bottom: 0.5rem;
	display: none;
}

div.generations {
	display: table;
	margin: 25px auto 0 auto;
}

.generations span {
	display: table-cell;
	color: #056783;
	position: relative;
	min-width: 83px;
	max-width: 83px;
	text-align: center;
	border-right: 1px solid #84b1b3;
}

.generations span:first-child {
	border-left: 1px solid #84b1b3;
}

.generations span::before, .generations span::after {
	content: "";
	position: absolute;
	top: 9px;
	width: 35%;
	border-top: 1px solid #84b1b3;
}

.generations span::before {
	left: 0;
}

.generations span::after {
	right: 0;
}

.menu {
	display: block;
	min-height: 90px;
	text-align: center;
	margin: auto;
}
	.menu > span {
		display: block;
	}
@media (max-width: 676px) {
	.menu {
		width: 360px;
		min-height: 180px;
	}
}
@media (max-width: 359px) {
	.menu {
		width: unset;
	}
}

.hatchery_update {
	color: #056783;
	font-size: 12px !important;
	margin-right: 3px;
	margin-left: -5px;
}

.hatchery_header {
	font-size: 21px;
	color: #056783;
	margin-top: 35px;
	margin-bottom: 2px;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	white-space: nowrap;
}

.hatchery_header:first-child {
	margin-top: 10px;
}

.hatchery_header::before, .hatchery_header::after {
	content: "";
	width: 100%;
	border-bottom: 1px solid #84b1b3;
	margin: 0 10px;
}




/**
 * B U T T O N S
 * For button styling
 */
select {
	height: 25px;
	border-radius: 4px;
}

button {
	cursor: pointer;
	display: inline-block;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 4px 7px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	color: #fff;
}

button:focus, select:focus {
	outline: none;
	box-shadow: 0 0 1px 2px #80affd;
}




[class^="btn-"] {
	height: 25px;
	min-width: 75px;
	vertical-align: top;
	margin-bottom: 5px;
}
#history_undo, #history_redo { min-width: unset; }


[class^="btn-"].disabled {
	color: #999;
	background-color: #ddd;
	border-color: #aaa;
	cursor: default;
}

.btn-primary {
	background-color: #18a;
	border-color: #068;
}
.btn-primary:focus {
	box-shadow: 0 0 1px 2px #3ac;
}

.btn-success {
	background-color: #6b6;
	border-color: #494;
}
.btn-success:focus {
	box-shadow: 0 0 1px 2px #8d8;
}

.btn-danger {
	background-color: #a22;
	border-color: #800;
}
.btn-danger:focus {
	box-shadow: 0 0 1px 2px #c44;
}

div.text-center {
	text-align: center;
}

hr {
	border-top: 1px solid black;
	border-bottom: none;
	margin: 1em 0;
}




.lineage_expand {
	width: 84px;
	padding: 4px 0;
}





.dropdown {
	vertical-align: bottom;
	display: inline-block;
	width: 250px;
	margin: auto;
	margin-bottom: 5px;
	height: 23px;
	border: 1px solid grey;
	position: relative;
	user-select: none;
	border-radius: 5px 5px 0 0;
	z-index: 1;
}

.dropdown.closed {
	overflow: hidden;
	border-radius: 5px;
}

.dropdown.closed li {
	display: none;
}

.dropdown .title:after, .dropdown .fake-title:after {
	display: block;
	content: "▴";
	position: absolute;
	right: 7px;
  	margin-top: -23px;
}

.dropdown.closed .title:after, .dropdown.closed .fake-title:after {
	content: "▾";
}

.dropdown .title, .dropdown .fake-title {
	line-height: 23px;
	text-align: center;
	border-bottom: 1px solid lightgrey;
	cursor: pointer;
}

.dropdown-menu {
	position: relative;
	left: -1px;
	max-height: 50px;
}

.dropdown-menu input {
	width: calc(100% + 2px);
	box-sizing: border-box;
	line-height: 23px;
	border: 1px solid grey;
	border-top: 0;
	border-bottom-color: lightgrey;
	padding: 1px 5px;
}

.dropdown-menu ul {
	position: absolute;
	top: 10px;
	width: 100%;
	padding: 0;
	max-height: 239px;
	overflow-y: auto;
	text-align: center;
	border: 1px solid grey;
	border-top: 0;
	border-radius: 0 0 5px 5px;
}

.dropdown-menu li {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	border-bottom: 1px solid lightgrey;
	list-style: none;
	line-height: 23px;
	background: #f8f8f8
}

.dropdown li.is-selected, .dropdown li:hover {
	background: powderblue;
}

.dropdown li.is-hidden {
	display: none;
}



.name-input {
	text-align: center;
    border-radius: 5px;
    margin-bottom: 5px;
    width: 252px;
    height: 25px;
    vertical-align: bottom;
    border: 1px solid grey;
}
.dragon[data-named="false"] + label {
	font-style: italic;
}



.naming .lineage div {
	min-width: 100px;
	max-width: 100px;
}
.naming .dragon {
	margin-top: 2px;
}
.naming .dragon + label {
	display: block;
}
.naming .lineage li::before, .naming .lineage li::after {
	width: 32px;
	height: calc(50% + 0.75rem);
	bottom: calc(50% + 0.75rem);
}
.naming .lineage li::after {
	top: calc(50% - 0.75rem);
}
.naming .lineage div::after {
	width: 32px;
	top: calc(50% - 0.75rem);
}
.naming .generations span {
	min-width: 99px;
	max-width: 99px;
}
.naming .lineage_expand {
	width: 100px;
	position: relative;
	top: -0.75rem;
}