* {
	margin: 0;
	padding: 0;
	font-family: comic sans ms, sans-serif;
	font-size: 16px;
}
html {
	background-color: #242c4d;
	background-image: url(\sky_night.png);
	padding: 33px
}

a {
	color: #cd8fff;
	text-decoration: none;
	text-shadow: 1px 1px 6px green, -1px -1px 6px green;
	margin-bottom: 3px
}

a:hover {
	box-shadow: 0 6px 6px -6px magenta
}

.tree {
	white-space: nowrap;
	min-width: 800px;
	min-height: 500px;
}
.tree ul {
	padding-top: 20px;
	position: relative;
	transition: all 0.5s;
	border-radius: 30px
}
.tree li {
	float: left;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 12px 5px 0 5px;
	transition: all 0.5s;
}
/* Draw connectors */
.tree li::before,
.tree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-top: 6px solid #886235;
	width: 50%;
	height: 20px;
}
.tree li::after {
	right: auto;
	left: 50%;
	border-left: 6px solid #886235;
}
/* Remove left-right connectors from only children */
.tree li:only-child::after,
.tree li:only-child::before {
	display: none;
}
/* Fix alignment of only children */
.tree li:only-child {
	padding-top: 0;
	margin-top: -15px;
}
.tree li:only-child > div {
	min-width: 100px
}
/* Remove left connector from first child and right connector from last child */
.tree li:first-child::before,
.tree li:last-child::after {
	border: 0 none;
}
/* Fix vertical connector to last node */
.tree li:last-child::before {
	border-right: 6px solid #886235;
	border-radius: 0 6px 0 0;
}
.tree li:first-child::after {
	border-radius: 6px 0 0 0;
}
/* Downward connectors from parents */
.tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 6px solid #886235;
	width: 0;
	height: 20px;
}
.tree li > div {
	border: 6px solid #886235;
	background-image: url(\leaf_dark.png);
	background-color: #186018;
	text-decoration: none;
	color: black;
	display: inline-block;
	min-height: 30px;
	border-radius: 6px;
	transition: all 0.5s;
}


.dragon {
	display: inline-block;
	padding: 6px;
	border-radius: 6px;
	vertical-align: top;
	margin: 6px
}

.dragon.mate {
	background: #32472ecc;
	color: #bed7b3;
}
.dragon.mate img {
	width: 60px;
	height: 60px
}

.dragon.mate:hover img {
	width: 100px;
	height: 100px
}

.name {
	text-shadow: 1px 1px #79c379b3, 1px -1px #79c379b3, -1px 1px #79c379b3, -1px -1px #79c379b3,
	2px 2px 2px #79c379b3, 2px -2px 2px #79c379b3, -2px 2px 2px #79c379b3, -2px -2px 2px #79c379b3;
	background: linear-gradient(to right, transparent, lightgreen, transparent)
}

.mate .name,
.progen .name {
	text-shadow: none;
	background: transparent
}

.exalted .name {
	background: linear-gradient(to right, transparent, #555f92, transparent)
}

.dragon.progen {
	background: #553c2a;
	color: lightgreen;
}

.dragon {
	background-image: url(\leaf_front.png);
	background-color: #79c37999;
	background-size: cover
}

.dragimg {
	filter: drop-shadow(1px 1px #0004) drop-shadow(-1px -1px #0004) drop-shadow(-1px 1px #0004) drop-shadow(1px -1px #0004)
}


.dragimg img {
	height: 100px;
	width: 100px;
	transition: all 0.6s
}

.mate .dragimg {
	filter: none
}

/* Connector styles on hover */
.tree li div:not(.name):hover,
.tree li div:hover + ul li div {
	border-color: #31d455;
}

.tree li div:hover + ul li::after,
.tree li div:hover + ul li::before,
.tree li div:hover + ul::before,
.tree li div:hover + ul ul::before {
	border-color: #31d455;
}

.dragon.exalted {
	background-image: url(\pillar.png);
	background-size: contain;
	background-position-y: 30px;
	background-repeat: no-repeat;
	background-color: #616ea9
}

/* dead virgins don't have rights */
.exalted:not(.parent) {
	margin: 0px;
	border-radius: unset
}

.exalted:not(.parent) .dragimg img {
	width: 50px;
	height: 50px
}

.exalted:not(.parent):hover .dragimg img {
	width: 100px;
	height: 100px
}

.exalted:not(.parent) .name {
	overflow: hidden;
	max-width: 50px;
	text-overflow: ellipsis;
	transition: max-width 0.3s
}

.exalted:not(.parent):hover .name {
	max-width: 500px;
}

/* in retrospect, a footer on a huge document that scrolls vertically was a mistake */
footer {
	position: fixed;
	bottom: 5px
}
footer span {
	background: #1d233e;
	color: #ffc459;
	padding: 5px;
	font-size: 16px;
	line-height: 2em
}
footer span a,
footer span em {
	font-size: 16px
}