.top {
	display: flex;
	flex-flow: column;
	margin-top: 0.5em;
}

.top-container {
	display: flex;
	flex-flow: row;
}

.mid-stats {
	display: flex;
	flex-flow: row;
}

.mid-stat {
	display: inline-block;
    font-weight: normal;
    font-size: 18pt;
    margin: 0.25em;
	width: 56px;
	height: 64px;
	padding-right: 4px;
	text-align: right;
	border-bottom: 4px solid #ffe4a1;
	border-left: 4px solid #ffe4a1;
	border-top: 4px solid #d68f54;
	border-right: 4px solid #d68f54;
	background-size: cover !important;
	color: #fff;
	color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, -2px 0 0 #000;
}

.stardrop {
	background: url('../res/Stardrop.png') no-repeat;
}

.community {
	background: url('../res/CommunityCenter.png') no-repeat;
}

.quest {
	background: url('../res/Quest.png') no-repeat;
}

.achievements {
	display: flex;
	flex-wrap: wrap;
	border-top: 4px solid #dd9454;
}

.achievement {
	width: 64px;
	height: 64px;
	margin: 0.5em;
}

.achievement.hidden {
	filter: brightness(0.4) contrast(0.1) sepia(1);
}

#char-display {
	background-repeat: no-repeat !important;
	background-size: cover !important;
	width: 128px;
	height: 192px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

#char-display.night {
	background-image: url('../res/CharBgNight.png');
}
#char-display.day {
	background-image: url('../res/CharBgDay.png');
}

.game-border {
	border: 12px solid transparent;
	border-image: url('../res/GameBorder.png') 12 stretch;
	display: block;
}

.game-container {
	background: #ffcb7b;
	background: linear-gradient(to bottom,  #ffcb7b 0%,#eba867 100%);
	border: 4px solid rgba(0, 0, 0, 0.1);
	border: 4px solid #d68f54;
	border-top: 4px solid #c47a48;
	padding: 1em;
}

.main-stats {
	font-family: "Stardew Valley", sans-serif;
	font-size: 14pt;
	text-shadow: -2px 2px 0 #dd9454;
	color: #221122;
	display: flex;
	flex-flow: column;
}

.header-stats {
	display: flex;
	flex-flow: row;
}

.body-stats {
	margin-top: 1em;
	border-top: 4px solid #dd9454;
	display: flex;
}

.top-stats, .extra-stats {
	margin-left: 1em;
}

.extra-stats {
	flex: 4;
}

.extra-stats > * {
	margin: 0.25em 0 !important;
}

.top-stats > h2, .friend-name, .extra-stats > h2 {
	font-weight: normal;
	font-size: 24pt;
	margin: 0 0.25em;
	color: #5b2b2a;
}

.top-stats > h2 > span, .extra-stats > h2 > span {
	margin-left: 0.2em;
	color: #221122;
}

.overall-stats-title {
	font-family: "Stardew Valley", sans-serif;
	color: #221122;
	font-weight: normal;
	text-shadow: -3px 3px 0 #dd9454;
	font-size: 42pt;
	margin: 0;
	padding-bottom: 0.25em;
	border-bottom: 4px solid #dd9454;
	text-align: center;
}

.top-stats > h2 > span.lesser, .extra-stats > h2 > span.lesser {
	color: #5b2b2a;
	font-size: 12pt;
	text-shadow: -1px 1px 0 #dd9454;
}

.friendship {
	background: url('../res/Friendship.png') no-repeat;
	width: 32px;
	height: 24px;
	display: inline-block;
	flex-grow: 0;
}

.friendship.empty {
	background-position: 0 -24px;
}

.friend-name {
	padding-right: 5em;
	text-align: center;
	border-right: 4px solid #dd9454;
	flex: 4;
}

.friend-hearts {
	margin-left: 0.5em;
	display: inline-flex;
	flex-wrap: wrap;
	max-width: 320px;
}

.heart-wrapper {
	flex: 5;
}

.friend-row {
	display: flex;
	flex-flow: row;
	align-items: center;
	justify-content: center;
	border-bottom: 4px solid #dd9454;
}

.friend-row > * {
	padding: 0.2em;
}

.friend-stats {
	overflow-y: scroll;
	height: 380px;
	flex: 6;
	border-right: 4px solid #dd9454;
}

.skill-stats {
	margin-left: 5em;
	padding-left: 1em;
	border-left: 4px solid #dd9454;
}

.skill-row {
	display: flex;
	flex-flow: row;
	margin: 0.2em 0;
}

.skill-bar {
	display: flex;
	flex-flow: row;
}

.skill-icon {
	background: url('../res/CharSkillIcons.png') no-repeat;
	width: 52px;
	height: 52px;
	display: inline-block;
	margin: 0 0.25em;
}
.skill-icon.farming {
	background-position: 0 0;
}
.skill-icon.mining {
	background-position: 0 -52px;
}
.skill-icon.foraging {
	background-position: 0 -104px;
}
.skill-icon.fishing {
	background-position: 0 -160px;
}
.skill-icon.combat {
	background-position: 0 -222px;
}

.skill-tick {
	background: url('../res/CharSkill.png') no-repeat;
	width: 36px;
	height: 42px;
}
.skill-tick.big {
	background-position: -36px 0;
	width: 60px;
	height: 42px;
}

.skill-tick.empty {
	background-position: 0 -56px;
}

.skill-tick.empty.big {
	background-position: -36px -56px;
	width: 60px;
	height: 42px;
}

.skill-name {
	flex-grow: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-size: 18pt;
}

.skill-name > span {
	margin-left: 0.5em;
	font-size: 12pt;
	color: #221122;
	text-shadow: -1px 1px 0 #dd9454;
}

.columns {
	display: flex;
	flex-flow: row;
	justify-content: space-between;
	align-items: stretch;
	font-family: "Stardew Valley", sans-serif;
}

.columns > .column {
	display: flex;
	flex-flow: column;
	flex-wrap: wrap;
	flex: 1 0 20%;
	margin: 0.5em;
}

.columns > .column > .column-title {
	display: block;
	font-size: 32pt;
	text-align: center;
	color: #221122;
	text-shadow: -2px 2px 0 #dd9454;
}

.columns > .column > .column-body {
	padding: 1em;
	border: 4px solid #dd9454;
	flex: 1;
	max-height: 426px;
	overflow-y: auto;
	overflow-x: hidden;
}

.columns > .column > .column-body > div {
	font-size: 20pt;
	text-shadow: -2px 2px 0 #dd9454;
	color: #221122;
	margin: 0.25em;
}

.column > .column > .column-body > div > span {
	color: #dd9454;
}

.heart {
	background: url('../res/Friendship.png') no-repeat;
	background-size: cover;
	width: calc(32px * 0.75);
	height: calc(24px * 0.75);
	display: inline-block;
	content: '';
}
.heart.empty {
	background-position: 0 -18px;
}

.separator {
	display: block;
	background-color: #dd9454;
	height: 4px;
	margin: 1em 0 !important;
}
