/* header */
a img {
	border: 0;
}
.header {
	margin: 0 0 30px 0;

	background: #4ab018;
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#26b436),
		to(#299b1abf)
	);
	background: -moz-linear-gradient(top, #26b436, #299b1abf);
	background: linear-gradient(top, #26b436, #299b1abf);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#26b436', endColorstr='#299b1abf');

	border-bottom: 1px solid #1a6e10;
	box-shadow:
		inset 1px 1px 0 rgba(255, 255, 255, 0.2),
		0px 2px 2px rgba(0, 0, 0, 0.4);
	min-height: 50px;
}
.header-inner {
	max-width: 605px;
	margin: 0 auto;
}
.nav,
.nav li,
.nav-play,
.nav-play li {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
	float: left;
}
.nav {
	padding: 15px 6px 15px 6px;
}
.header .nav {
	padding: 15px 0 15px 155px;
}
.header .nav-play {
	padding: 15px 0 15px 10px;
}
.nav .button {
	position: relative;
	padding: 5px 10px;
	margin: 0 -1px 0 0;
	border-radius: 0;
}
.nav .button img {
	position: absolute;
	top: -8px;
	left: -150px;
}
.nav .button.cur,
.nav .button.cur:hover {
	color: #aaaaaa;
	background: #2a2a2a;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.nav .button.cur:hover {
	border: solid 1px #555555;
}
.nav .button:hover {
	z-index: 10;
}
.nav .button.nav-first {
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}
.nav .button.nav-last {
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}
.button {
	outline: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
	border-radius: 5px;
	-webkit-box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.4),
		inset 0 -1px 2px rgba(255, 255, 255, 0.05);
	-moz-box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.4),
		inset 0 -1px 2px rgba(255, 255, 255, 0.05);
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.4),
		inset 0 -1px 2px rgba(255, 255, 255, 0.05);
	white-space: nowrap;

	/* dark theme colors */
	color: #cccccc;
	border: solid 1px #555555;
	background: #2e2e2e;
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#3a3a3a),
		to(#262626)
	);
	background: -moz-linear-gradient(top, #3a3a3a, #262626);
	background: linear-gradient(top, #3a3a3a, #262626);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3a3a3a', endColorstr='#262626');
}
.button:hover {
	background: #3f3f3f;
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#484848),
		to(#303030)
	);
	background: -moz-linear-gradient(top, #484848, #303030);
	background: linear-gradient(top, #484848, #303030);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#484848', endColorstr='#303030');
	border-color: #888888;
}
.button:active {
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#262626),
		to(#3a3a3a)
	);
	background: -moz-linear-gradient(top, #262626, #3a3a3a);
	background: linear-gradient(top, #262626, #3a3a3a);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#262626', endColorstr='#3a3a3a');
}

.greenbutton {
	background: hsl(100, 20%, 20%);
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(hsl(100, 20%, 24%)),
		to(hsl(100, 20%, 16%))
	);
	background: -moz-linear-gradient(
		top,
		hsl(100, 20%, 24%),
		hsl(100, 20%, 16%)
	);
	background: linear-gradient(top, hsl(100, 20%, 24%), hsl(100, 20%, 16%));
	border-color: hsl(100, 20%, 35%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2e3d2e', endColorstr='#1e2e1e');
}
.greenbutton:hover {
	background: hsl(100, 20%, 28%);
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(hsl(100, 20%, 32%)),
		to(hsl(100, 20%, 22%))
	);
	background: -moz-linear-gradient(
		top,
		hsl(100, 20%, 32%),
		hsl(100, 20%, 22%)
	);
	background: linear-gradient(top, hsl(100, 20%, 32%), hsl(100, 20%, 22%));
	border-color: hsl(100, 30%, 45%);
}
.greenbutton:active {
	background: hsl(100, 20%, 18%);
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(hsl(100, 20%, 18%)),
		to(hsl(100, 20%, 24%))
	);
	background: -moz-linear-gradient(
		top,
		hsl(100, 20%, 18%),
		hsl(100, 20%, 24%)
	);
	background: linear-gradient(top, hsl(100, 20%, 18%), hsl(100, 20%, 24%));
	border-color: hsl(100, 30%, 45%);
}

/* general page styling */
html,
body {
	font:
		10pt Verdana,
		sans-serif;
	background-color: #121212;
	color: #e0e0e0;
	margin: 0;
	padding: 0;
	min-width: 100em;
}
.wrapper {
	padding: 0 1em;
	max-width: 1285px;
	margin: 0 auto;
}
.credits {
	clear: both;
	padding: 20px;
	max-width: 1285px;
	margin: 0px auto;
}
div.wrapper > div > span {
	padding-right: 5px;
}
fieldset {
	float: left;
	background-color: #1e1e1e;
	border: 1px solid #444444;
}
legend {
	font-weight: bold;
	text-align: center;
}
th,
td {
	padding: 0;
}
th {
	font-size: 0.8em;
}
.title-text {
	font-weight: bold;
	font-size: 1.5em;
	margin: 0.5em 1em 0.5em 0;
	position: relative;
	top: -5px;
}
.main-title-text {
	top: -10px;
}
.big-text {
	text-align: left;
	font-weight: bold;
	font-size: 1.1em;
	margin: 0.5em 0;
}
.big-text #mainResult:hover {
	cursor: pointer;
	opacity: 0.7;
}
#tooltipText {
	font-size: 0.8em;
	visibility: hidden;
	border-radius: 5px;
	width: 120px;
	background-color: #000000;
	color: #e0e0e0;
	text-align: center;
	padding: 5px;
	margin-left: 10px;
}
.small-text {
	font-size: 0.8em;
}
.panel {
	float: left;
	display: inline-block;
}
.poke-info {
	width: 30em;
}
.field-info,
.poke-import {
	text-align: center;
	width: 27.5em;
}
.holder-0 {
	position: absolute;
	top: 151px;
}
#holder-2 tr {
	white-space: nowrap;
}

/* general button styling */
.btn {
	text-align: center;
	border: solid 1px #555555;
	padding: 4px 4px;
	position: relative;
	cursor: pointer;
	color: #cccccc;
	background: #2a2a2a;
	margin: -1px -3px 0;
	display: inline-block;
	width: 5em;
	border-radius: 8px;
}
.btn-wide {
	width: 7em;
}
.btn-xwide {
	width: 8em;
}
.btn-xxwide {
	width: 9em;
}
.btn-xxxwide {
	width: 10em;
}
.btn-small {
	width: 4em;
}
.btn-xsmall {
	width: 1em;
}
.btn-left {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.btn-right {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
.btn-top {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.btn-bottom {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.btn-mid {
	border-radius: 0;
}
.visually-hidden:focus + .btn,
.btn:hover {
	z-index: 10;
	border-color: #888888;
	background: #383838;
}
.visually-hidden:checked + .btn {
	font-weight: bold;
	color: #ffffff;
	background: #3a3a3a;
}
.visually-hidden[type="radio"]:checked + .btn {
	cursor: default;
}

/* Hide element visually, but not from screen readers */
.visually-hidden {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	top: auto;
	white-space: nowrap;
}

.visually-hidden:disabled + .btn {
	color: #666666;
}
.btn-group {
	display: inline-block;
	width: 100%;
}
.left {
	float: left;
}
.right {
	float: right;
}
.locked-move:checked + .btn {
	background: #4a4a00;
}

.genSelection,
.notationSelection,
.modeSelection {
	display: inline-block;
	position: relative;
	top: -8px;
}

/* header */
.move-result-group {
	min-width: 50em;
	margin: 1em 0 11.5em;
}
.move-result-subgroup {
	float: left;
	width: 50%;
}
.move-result-group .btn {
	margin-right: 1em;
}
.main-result-group {
	margin: 2em 0 1em;
}
.result-move-header {
	font-size: 0.8em;
	font-weight: bold;
	margin: 0 0 5px;
}

/* pokemon info */
.poke-info label {
	display: inline-block;
	width: 6em;
}
.top label,
.info-selectors label {
	display: inline-block;
	width: 5em;
}
.poke-info input:not([type]),
.poke-info input[type="text"],
.poke-info span {
	display: inline-block;
	width: 2.5em;
}
.poke-info input[type="number"] {
	display: inline-block;
	width: 3em;
}
.info-group {
	margin: 1em 0;
}
.set-selector {
	width: 100%;
}
.info-selectors select {
	width: 12em;
}
select.toxic-counter {
	width: 5.5em;
}
.move-selector,
.move-bp,
.move-type,
.move-cat,
.move-hits {
	font-size: 0.9em;
}
.move-selector {
	width: 11.5em;
}
.poke-info input.move-bp {
	width: 2em;
}
.move-type {
	width: 5.5em;
}
.move-cat {
	width: 6em;
}
.move-hits {
	width: 4.5em;
}
.poke-info .crit-btn {
	font-size: 0.8em;
	width: 2.5em;
	height: 1em;
	padding: 3px 3px;
	margin: 0px 1px;
}
.poke-info .z-btn {
	font-size: 0.8em;
	width: 1.5em;
	height: 1em;
	padding: 3px 3px;
}
.poke-info .max-btn {
	font-size: 0.8em;
	width: 2.5em;
	height: 1em;
	padding: 3px 3px;
}

/* field info */
.field-info .btn {
	font-size: 0.8em;
}
table.field {
	width: 100%;
}

[hidden],
.hide {
	display: none;
}

/* select2 overrides */
.select2-container .select2-choice > .select2-chosen {
	width: 100%;
}
.small-select.select2-container .select2-choice {
	font-size: 0.9em;
	height: 18px;
	line-height: 18px;
}
.small-select.select2-container .select2-choice .select2-arrow b {
	background-position: 0 -4px;
}
.small-select.select2-dropdown-open .select2-choice .select2-arrow b {
	background-position: -18px -4px;
}

/* Bootstrap */
.panel-group > .panel {
	clear: left;
}

/* ColVis */
.clear {
	clear: right;
}

.import-team-text {
	min-width: 27em;
	min-height: 10em;
	resize: vertical;
	background-color: #1e1e1e;
	color: #e0e0e0;
	border: 1px solid #444444;
}

.import-name-text {
	min-width: 26.3em;
	min-height: 1em;
	overflow: auto;
	display: inline;
	background-color: #1e1e1e;
	color: #e0e0e0;
}

.hpbar {
	height: 4px;
	border-style: solid;
	border-top-width: 2px;
	border-right-width: 1px;
	border-bottom-width: 2px;
	border-left-width: 0.5px;
	border-radius: 3px;
}

.hpbar.hp-green {
	border-top-color: #00dd60;
	background-color: green;
	border-bottom-color: #007734;
	border-right-color: #007734;
}

.hpbar.hp-yellow {
	border-top-color: #f8e379;
	background-color: #f5d538;
	border-bottom-color: #be9f0a;
	border-right-color: #be9f0a;
}

.hpbar.hp-red {
	border-top-color: #f37f67;
	background-color: #ee4928;
	border-bottom-color: #a3260d;
	border-right-color: #a3260d;
}

.pool {
	padding: 15px 0;
}
.ability-pool,
.move-pool {
	padding-bottom: 5px;
}
.extraSetAbilities,
.extraSetItems,
.extraSetMoves {
	width: 100%;
}
.trainer-poks {
	margin-bottom: 20px;
}

.trainer-pok-list {
	display: flex;
	flex-wrap: wrap;
	width: 300px;
	margin-top: 20px;
}

.player-poks {
	height: auto;
	min-width: 100%;
	overflow: scroll;
	min-height: 96px;
	max-height: 225px;
	display: flex;
	justify-content: flex-start;
}

.player-party {
	background-size: 100% 595px;
	background-repeat: no-repeat;
	height: auto;
	width: 300px;
	min-width: 100%;
	overflow: scroll;
	min-height: 96px;
	max-height: 350px;
	justify-content: space-between;
	display: none;
	justify-content: flex-start;
}

.player-party .trainer-pok-container {
	width: calc(16.66% - 3px);
	margin: 0;
	padding: 0;
}

.player-party .trainer-pok.left-side {
	background-size: cover;
	height: 100%;
	width: 100%;
}

.trainer-pok {
	height: auto;
	width: calc(33% - 10px);
	cursor: pointer;
	box-sizing: border-box;
	border: 1px solid #333333;
	border-radius: 10px;
	margin: 5px;
	background-position-x: -20px;
	background-position-y: -20px;
}

.trainer-pok {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0);
}

.trainer-pok.right-side {
	width: calc(33% - 10px);
}

.trainer-pok:hover {
	border: 1px solid #f18906;
	border-radius: 10px;
}

.trainer-pok-container {
	display: flex;
	flex-direction: column;
	margin-left: 10px;
	align-items: center;
	border: 1px solid #333333;
	padding: 5px;
	width: calc(20% - 22px);
}

.trainer-pok-container:hover {
	border: 1px solid #1abc9c;
	border-radius: 10px;
}

.player-party .trainer-pok-container:hover {
	border: none;
}

/* Dark theme input/select overrides */
input,
select,
textarea {
	background-color: #1e1e1e;
	color: #e0e0e0;
	border: 1px solid #444444;
}

input:focus,
select:focus,
textarea:focus {
	outline-color: #1abc9c;
}

a {
	color: #7ec8a0;
}

a:visited {
	color: #a07ec8;
}

/* Native select overrides */
select,
select option {
	background-color: #1e1e1e !important;
	color: #e0e0e0 !important;
}

/* Select2 plugin overrides */
.select2-drop {
	background-color: #1e1e1e;
	border: 1px solid #555555;
	color: #e0e0e0;
}
.select2-results .select2-result-label {
	color: #e0e0e0;
}
.select2-results .select2-highlighted {
	background-color: #2e2e2e;
	color: #ffffff;
}
.select2-container .select2-choice {
	background: #2a2a2a;
	background: linear-gradient(top, #3a3a3a, #262626);
	border: 1px solid #555555;
	color: #cccccc;
}
.select2-container .select2-choice:hover {
	background: #383838;
}
.select2-search input {
	background-color: #2a2a2a !important;
	color: #e0e0e0 !important;
	border: 1px solid #555555;
}
