/*
 * Basics
 */
h3 img {
	vertical-align: middle
}
td.name { white-space: nowrap }
.section {
	margin-bottom: 1em
}
.section h4 {
	margin: 0;
	padding: 5px;
	background: #8c0000 url(/img/thead_bg.gif) top left repeat-x;
	border: 1px solid #333;
	border-bottom: 0;
	font-size: 1em;
	color: #fff
}
.section table {
	width: 100%;
	border-collapse: collapse
}
.section table th,
.section table td {
	height: 0.1em;
	border: 1px solid #333;
	padding: 5px
}
.section table th,
.section dt.master,
.section.definition dt {
	font-weight: bold;
	background: #d7d7d7 url(/img/subhead_bg.gif) top left repeat-x
}
.section table td,
.section dd.master,
.section.definition dd {
	background: #f3f5ff url(/img/altrow1_bg.gif) bottom left repeat-x;
}
.section dl {
	margin: 0;
	padding: 0;
	width: 100%
}
.section dt.master,
.section dd.master {
	display: block;
	margin: 0;
	padding: 0
}

#general.section {
	float: left;
	width: 50%;
}
#general.section .sect { margin-right: 1em }
#general.section .images {
	background: transparent;
	border-left: 0;
	border-bottom: 0;
	padding: 0;
	width: 171px;
	vertical-align: top;
	white-space: nowrap;
	text-align: center
}
#general.section .images span {
	display: block;
	padding: 5px;
	border-left: 1px solid #333;
	border-bottom: 1px solid #333;
	background: #f3f5ff url(/img/altrow1_bg.gif) bottom left repeat-x;
}
#general.section .images img { width: 160px }
#general.section .images select { margin-top: 0.5em }
#general th { text-align: left }

/*#compare1,
#compare2 {
	width: 49%;
	float: left
}
#compare1 .section { margin-right: 0.5em }
#compare2 .section { margin-left: 0.5em }*/

/*#general .types ul,
#general .types li {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none
}*/

#stats.section { clear: left }
#stats.section th { white-space: nowrap }
#stats.section td { width: 25% }

/*
 * Fuck Internet Explorer
 * I am tired of having to pollute my markup with junk tags
 * just to work around its idiocy.
 */
.FUIE {
	float: left;
	width: 50%
}

/*
 * Types table
 */
#types {
	overflow: hidden;
	margin-bottom: 1em
}
#types #weaknesses,
#types #resistances,
#types #immunities {
	float: left;
	width: 33%
}
#types ul,
#types li {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0
}
#types h4 {
	margin: 0;
	padding: 5px;
	background: #8c0000 url(/img/thead_bg.gif) top left repeat-x;
	color: #fff;
	font-size: 1em
}
#types li {
	text-align: center;
	padding: 5px;
	border-top: 1px solid #333
}
#types ul,
#types h4 {
	margin-left: 1em;
	border: 1px solid #333
}
#types ul { border-top: 0 }
#types h4 { border-bottom: 0 }

/*
 * Types colors
 */
.type.normal { color: #40402d; background: #d7d7bf }
.type.fire { color: #87481b; background: #f6cf2f }
.type.water { color: #3b538a; background: #97d7d7 }
.type.electric { color: #8f781b; background: #f6f677 }
.type.grass { color: #3a6127; background: #bff65f }
.type.ice { color: #4f7070; background: #cff6e7 }
.type.fighting { color: #591512; background: #ee7f2f }
.type.poison { color: #381638; background: #d67fb7 }
.type.ground { color: #453b20; background: #debf67 }
.type.flying { color: #4f4370; background: #c7bff7 }
.type.psychic { color: #8f324e; background: #f6bfaf }
.type.bug { color: #4b520e; background: #d7df2f }
.type.rock { color: #524718; background: #dfbf67 }
.type.ghost { color: #241c30; background: #a78fef }
.type.dragon { color: #402091; background: #b79ff7 }
.type.steel { color: #2f2f36; background: #b7b7cf }
.type.dark { color: #aaa; background: #000 }

/*
 * Definition lists
 *  - Pokedex
 *  - Abilities
 */
.section.definition dl,
.section.definition dt,
.section.definition dd {
	margin: 0;
	padding: 0;
	width: auto
}
.section.definition h4,
.section.definition dl {
	margin-left: 1em
}
.section.definition dt,
.section.definition dd {
	padding: 5px;
	border: 1px solid #333;
	border-top: 0
}
.section.definition h4 { border-bottom: 1px solid #333 }

/*
 * Evolution list
 */
#evolution ul,
#evolution li {
	list-style: none;
	margin: 0;
	padding: 0
}
#evolution li li {
	margin-left: 12px;
	padding-left: 32px;
	background: url(/img/ev-arrow.gif) top left no-repeat;
	line-height: 32px
}
#evolution img {
	vertical-align: middle
}
#evolution h4,
#evolution ul.chain {
	margin-left: 1em
}
#evolution ul.chain {
	padding: 5px;
	border: 1px solid #333;
	background: #f3f5ff url(/img/altrow1_bg.gif) bottom left repeat-x;
}

fieldset, legend {
	border: 0;
	margin: 0;
	padding: 0;
	display: inline
}
.compare1,
.compare2 {
	float: left;
	width: 49%
}
.compare1 .section {
	margin-right: 0.5em
}
.compare2 .section {
	margin-left: 0.5em
}
.compare_end {
	border-top: 1px solid transparent;
	float: left;
	width: 100%
}
