@import url('https://fonts.googleapis.com/css?family=Nunito');

* {
	margin: 0;
	padding: 0;
	font-family: "nunito";
}

body {
	background: lightgrey;
	color: black;
}

#topBar {
	position: relative;
	width: 500px;
	background: white;
	margin: 10px auto;
	border-radius: 5px;
}

#search {
	display: flex;
	align-items: center;
	padding: 10px;
}

input {
	flex: 1;
	height: 1.5em;
	background: transparent;
	border: 0;
	outline: 0;
	font-size: 15px;
}

#results {
	position: absolute;
	background: white;
	width: 100%;
	margin: -5px 0 5px 0;
	border-radius: 0 0 5px 5px;
	z-index: 1;
}

#resultList {
	padding: 5px;
	max-height: 40vh;
	overflow-y: auto;
}

#resultList::-webkit-scrollbar
{
	width: 9px;
}

#resultList::-webkit-scrollbar-thumb
{
	background-color: #ddd;
	border-radius: 5px;
	margin: 10px 0;
}

.searchCard {
	display: flex;
	align-items: center;
	border-radius: 3px;
	padding: 5px;
	height: 60px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.searchCard:hover {
	background: #ddd;
}

.searchIcon {
	object-fit: contain;
	max-height: 100%;
}

.searchInfo {
	display: inline-block;
	margin-left: 10px;
}

.searchName {
	font-size: 18px;
	font-weight: 700;
}

.typeBox{
	display: inline-block;
	margin: 1px;
	text-align: center;
	color: white;
	width: 45px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 500;
	border: 2px solid rgba(255,255,255,0.3);
}

.textbug{background: #518300;}
.textdark{background: #433d4c;}
.textdragon{background: #0052a8;}
.textelectric{background: #907200;}
.textfairy{background: #a955a4;}
.textfighting{background: #b02352;}
.textfire{background: #cc4408;}
.textflying{background: #5776a5;}
.textghost{background: #33548f;}
.textgrass{background: #2b8721;}
.textground{background: #b85d2c;}
.textice{background: #1d8373;}
.textnormal{background: #6c767c;}
.textpoison{background: #904cac;}
.textpsychic{background: #cb4851;}
.textrock{background: #827649;}
.textsteel{background: #367489;}
.textwater{background: #2e78ba;}

#mainCont {
	margin: 0 auto;
	max-width: 1200px;
	padding: 20px;
	border-radius: 10px;
	background:rgba(255,255,255,0.3);
}

#tableHeader {
	font-size: 24px;
	font-weight: 700;
}

#tableContent > div:first-child{
	border-top: solid grey 1px;
}

.tableGrid {
	display: grid;
	padding: 10px 0;
	grid-template-columns: 360px repeat(18, 1fr);
	grid-auto-rows: 40px;
	align-items: center;
	justify-items: center;
}

#tableStats {
	padding-top: 7px;
	border-top: solid grey 1px;
}

#tableStats > div {
	display: grid;
	padding: 3px 0;
	grid-template-columns: 360px repeat(18, 1fr);
	grid-auto-rows: 30px;
	align-items: center;
	justify-items: center;
}

.typeIcon {
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.typeEff {
	display: flex;
	border-radius: 100px;
	width: 32px;
	height: 32px;
	font-size: 18px;
	font-weight: 700;
	justify-content: center;
	align-items: center;
}

.eff-3 {
	background: grey;
	color: white;
}
.eff-2 {
	background: green;
	color: white;
}
.eff-1 {
	color: green;
}
.eff1 {
	color: red;
}
.eff2 {
	background: red;
	color: white;
}

.tableCard {
	display: flex;
	justify-self: start;
	width: 346px;
	height: 45px;
	padding-left: 5px;
}

.pokeRow {
	border-radius: 3px;
	transition: background-color 0.3s;
	cursor: pointer;
}

.pokeRow:hover {
	background: #bbb;
}

.tableIcon {
	max-height: 100%;
	object-fit: contain;
}

.tableName {
	margin-bottom: -5px;
	margin-left: 5px;
	font-weight: 700;
}
.stat {
	width: 24px;
	margin-bottom: 4px;
	align-self: center;
	font-size: 11.5px;
	text-align: center;
}

.push {
	width: 36px;
	margin-left: auto;
}

.footerText {
	margin-left: auto;
	margin-right: 10px;
}

.statIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90%;
	height: 100%;
	border-radius: 3px;
}
