Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div id="app">
	<h2 class="page-header">Collect all {{ players.length }}!</h2>
	<div class="search-box">
		<input class="query" type="text" v-model="query" placeholder="Search by character, team, show, movie, book">
		<div class="cancel-search" v-if="query" @click="cancelSearch">&times;</div>
	</div>
	<ul class="card-list">
		<!-- card -->
		<li :class="{'container': true, 'horizontal': player.isHorizontal}" v-for="player in filteredList" @click="flipCard(player, $event)" :data-player="player.name">
				<div class="card-wrap">
					<div :class="{'front': true, [player.cardStyle]: true}">
						<div v-if="player.cardStyle == 'fleer2001'" class="player-image-foreground" :style="{ backgroundImage: 'url(http://kylephx.com/cards/assets/' + player.string + '-foreground.png)'}" ></div>
						<div class="stuff">
							<div class="topps">
								<img v-if="player.cardStyle == 'topps2001'" src="http://kylephx.com/cards/assets/topps50years.jpg" alt="TOPPS 50 YEARS"/>
								<img v-if="player.cardStyle == 'topps2019'" src="http://kylephx.com/cards/assets/topps-silver.png" alt="TOPPS"/>
								<img v-if="player.cardStyle == 'fleer2001'" src="http://kylephx.com/cards/assets/fleer-tradition.png" alt="Fleer Tradition"/>
							</div>
							<div class="borders-2019" v-if="player.cardStyle == 'topps2019'">
								<div class="border-inside-1">
									<div class="border-inside-2"></div>
								</div>
							</div>
							<div class="overlay-2019" v-if="player.cardStyle == 'topps2019'">
								<div class="overlay-left">
								</div>
								<div class="overlay-right">
								</div>
								<div class="overlay-bottom">
								</div>
							</div>
							<div class="player-image" :style="{ backgroundImage: 'url(http://kylephx.com/cards/assets/' + player.string + '.jpg)'}" ></div>
							
							<div class="team">
								<img :src="'http://kylephx.com/cards/assets/' + player.logo" :alt="player.team"/>
								<p v-if="player.cardStyle == 'topps2019'" class="written-team"><span class="position">{{ player.position }} | </span><span class="team-name" v-html="player.team"></span></p>
								<p v-if="player.cardStyle == 'fleer2001'" class="written-team"><span class="team-name" v-html="player.team"></span><span class="position">{{ player.position }}</span></p>
							</div>
							<div class="rookie" v-if="player.rookie">
								<span>ROOKIE<br/>CARD</span>
							</div>
							<div class="name-box">
								<div class="triangles" v-if="player.cardStyle == 'fleer2001'">
									<div class="top"></div>
									<div class="bottom"></div>
								</div>
								<h1>
									<span class="first-name">{{ player.name | trimLast }}</span> <span class="last-name">{{ player.name | trimFirst }}</span></h1>
							</div>
						</div>
					</div>
					<div :class="{'back': true, [player.cardStyle]: true}">
						<div :class="{'stuff': true}">
							<div class="borders-2019" v-if="player.cardStyle == 'topps2019'">
								<div class="border-inside-1">
									<div class="border-inside-2"></div>
								</div>
							</div>
							<header>
								<img class="back-logo" v-if="player.cardStyle == 'fleer2001'" :src="'http://kylephx.com/cards/assets/' + player.logo" :alt="player.team"/>
								<div class="player-name">
									<span class="first-name">{{ player.name | trimLast }}</span><br v-if="player.cardStyle == 'topps2001'"/><span class="last-name">{{ player.name | trimFirst }}</span></div>
								<div v-if="player.cardStyle == 'topps2001'" class="player-position">{{ player.position }}</div>
								<p v-if="player.cardStyle == 'topps2019' || player.cardStyle == 'fleer2001'" class="written-team"><span class="position">{{ player.position }} <span v-if="player.cardStyle == 'topps2019'">|</span> </span><span class="team-name" v-html="player.team"></span></p>
								
								<div class="player-card-no"><span>{{ player.cardNo}}</span></div>
							</header>
								<div class="stats-story" :style="[player.cardStyle == 'fleer2001' ? {'backgroundImage': 'none'} : {'backgroundImage': 'url(http://kylephx.com/cards/assets/' + player.string + '.jpg)'}]">
								<div class="inner-box">
										<div class="stats-box">
												<p class="stats-header" v-if="player.cardStyle != 'fleer2001'"><a @click="goToSource(player.cardNo)" class="card-source" :href="'#source' + player.cardNo" title="Show sources">Complete major league {{ player.recordsType }} records*</a></p>
											
												<div class="stats-header" v-if="player.cardStyle == 'fleer2001'">
													<div class="triangles" >
														<div class="top"></div>
														<div class="bottom"></div>
													</div>
													<a @click="goToSource(player.cardNo)" class="card-source" :href="'#source' + player.cardNo" title="Show sources">Complete major league {{ player.recordsType }} records*</a>
											</div>
											<div class="overflow-box">
												<div class="scrolling-box">
														<div class="row row--headings">
															<div class="heading" v-for="(value, key) in player.statsYear1">{{ key }}</div>
														</div>
														<div class="row row--year1">
															<div class="amount" v-for="(value, key) in player.statsYear1"><span v-html="value"></span></div>
														</div>
														<div class="row row--year2" v-if="player.statsYear2">
															<div class="amount" v-for="(value, key) in player.statsYear2"><span v-html="value"></span></div>
														</div>
														<div class="row row--year3" v-if="player.statsYear3">
																<div class="amount" v-for="(value, key) in player.statsYear3"><span v-html="value"></span></div>
															</div>
														<div class="row row--year4" v-if="player.statsYear4">
																<div class="amount" v-for="(value, key) in player.statsYear4"><span v-html="value"></span></div>
															</div>
														<div class="row row--year5" v-if="player.statsYear5">
																<div class="amount" v-for="(value, key) in player.statsYear5"><span v-html="value"></span></div>
															</div>
														<div class="row row--year6" v-if="player.statsYear6">
																<div class="amount" v-for="(value, key) in player.statsYear6"><span v-html="value"></span></div>
															</div>
														<div class="row row--year7" v-if="player.statsYear7">
																<div class="amount" v-for="(value, key) in player.statsYear7"><span v-html="value"></span></div>
														</div>
														<div class="row row--totals">
															<div class="amount" v-for="(value, key) in player.totals">{{ value }}</div>
														</div>
												</div>
											</div>
										</div>
										<div v-if="player.cardStyle == 'topps2019' || player.cardStyle == 'fleer2001'" class="info">
											<p class="info-paragraph"><span v-html="player.info1"></span> <br/> 
												<span v-html="player.info2"></span></p>
										</div>
										<p class="story">{{ player.story }}</p>
										<div class="logos">
											<img v-if="player.cardStyle == 'topps2001' || player.cardStyle == 'topps2019'" class="topps" src="http://kylephx.com/cards/assets/topps.svg" alt="Topps logo"/>
											<img v-if="player.cardStyle == 'fleer2001'" class="fleer" src="http://kylephx.com/cards/assets/fleer-tradition.png" alt="Fleer Tradition logo"/>
											<p v-if="player.cardStyle == 'topps2001'">&reg; &amp; &copy; 2001 THE TOPPS COMPANY, INC. ALL RIGHTS RESERVED. TOPPS AND OPENING DAY ARE TRADEMARKS OF THE TOPPS COMPANY, INC. &amp; MLB &amp; MLBPA, 2001.
											</p>
											<p v-if="player.cardStyle == 'topps2019'">&reg; &amp; &copy; 2019 THE TOPPS COMPANY, INC. ALL RIGHTS RESERVED. TOPPS AND OPENING DAY ARE TRADEMARKS OF THE TOPPS COMPANY, INC. &amp; MLB &amp; MLBPA, 2019.
											</p>
											<p v-if="player.cardStyle == 'fleer2001'">MAJOR LEAGUE BASEBALL TRADEMARKS AND COPYRIGHTS ARE USED WITH<br/> PERMISSION OF MAJOR LEAGUE BASEBALL PROPERTIES, INC. OFFICIAL LICENSEE--MLBPA<br/> &copy; 2001 FLEER/SKYBOX INTERNATIONAL LP, PRINTED IN U.S.A. TRADITION/2001
											</p>
											<img class="mlb" src="http://kylephx.com/cards/assets/mlb.svg" alt="Major League Baseball logo"/>
											<img class="mlbpa" src="http://kylephx.com/cards/assets/mlbpa.png" alt="MLB Players Association logo"/>
										</div>
									</div>

							</div>					

						</div>
					</div>
				</div>
		</li>
		<!-- /card -->
	</ul>
	
	<details>
		<summary>Sources</summary>
		<ul>
			<li v-for="player in filteredList" :id="'source' + player.cardNo" class="source">
				{{ player.cardNo }} {{ player.name }} - <span v-html="player.sources"></span>
			</li>
			<li>Card styling - &reg; &amp; &copy; THE TOPPS COMPANY. Version 1: 2001 <a href="http://kylephx.com/cards/assets/ichiro.jpg" target="_blank">front</a> and <a href="http://kylephx.com/cards/assets/ichiro-back.jpg" target="_blank">back</a>. Version 2: 2019 <a href="http://kylephx.com/cards/assets/judge.jpg" target="_blank">front</a> and <a href="http://kylephx.com/cards/assets/acuna-back.jpg" target="_blank">back</a>. &copy; FLEER/SKYBOX INT'L, LP. Version 1: 2001 <a href="/" target="_blank">front</a> and <a href="/" target="_blank">back</a> .</li>
		</ul>
	</details>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Lato:400,700,900i|Raleway:400,800,800i|Rubik:400,500|Changa+One:400i|Roboto+Condensed:400,400i,700,700i');
$card-width: 300px;
$card-height: 420px;
$card-main-color: #38616f;
$mariners-blue: #185693;
$mariners-green: #3a7d74;
$devils-red: #e03943;
$devils-blue: #364dfa;
$dull-brown: #96652c;
$cubs-blue: #177bdd;
$cubs-red: #bc2313;
$kekambas-green: #469750;

* {
	box-sizing: border-box;
}

div::-webkit-scrollbar {
	height: 7px;
	background: transparent;
}

div::-webkit-scrollbar-thumb {
	background: #aaa;
	border-radius: 8px;
	box-shadow: inset -1px -1px 1px 0 rgba(0,0,0,0.5);
}


div {
	scrollbar-color: gray;
  scrollbar-width: thin;
}

body {
	background: repeating-linear-gradient(-40deg, transparent 0px, transparent 50px, rgba(255, 0, 0, 0.2) 51px, rgba(255, 0, 0, 0.2) 53px);
	min-height: 100vh;
}

.page-header {
	text-align: center;
	font-family: 'Lato', sans-serif;
	color: $mariners-blue;
}

img {
	max-width: 100%;
}

p {
	margin: 0;
}

li {
	list-style: none;
}


.search-box {
	display: flex;
	margin: 20px auto;
	justify-content: center;
	position: relative;
	width: 300px;

	.query {
		font-family: 'Lato';
		width: 100%;
		padding: 5px 25px 5px 10px;
		font-size: 13px;
		outline: 0;
		border: 1px solid #ddd;
		border-radius: 0;
		box-shadow: none;
		-webkit-appearance: none;
	}

	.cancel-search {
		cursor: pointer;
		margin-left: 8px;
		font-size: 24px;
		font-weight: 900;
		font-style: italic;
		position: absolute;
    top: 2px;
    right: 8px;
	}
}

.card-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding-left: 0;
	max-width: 965px;
	margin: 0 auto;
	z-index: 99;
}

.container {
	position: relative;
	//fake 'shine' on top of card
	&::before {
		content: '';
		position: absolute;
		width: $card-width;
		height: $card-height;
		top: 0;
		left: 0;
		background: linear-gradient(-55deg, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.06) 50%);
		z-index: 999;
		
		@media screen and (max-width: 450px) {
			display: none;
		}
	}

	&:hover::before {
		display: none;
	}
	
	&.horizontal {
		width: $card-height;
		height: $card-width;
		
		
		@media screen and (max-width: 450px) {
			width: $card-width;
			height: $card-height;
			
			.back.fleer2001 .stats-header .triangles .bottom:before {
				bottom: 1px;
			}
		}
		
		&:before {
			width: $card-height;
			height: $card-width;
			
			@media screen and (max-width: 450px) {
				width: $card-width;
				height: $card-height;
			}
		}
	}
}

.container.horizontal .card-wrap {
	@media screen and (max-width: 450px) {
		transform: rotate(90deg);
		transform-origin: 0 100%;
		margin-left: 300px;
	}
}

/* flip speed goes here */
.card-wrap {
	position: relative;
}

/* flip the card when hovered */
.container.back-shown .card-wrap {
	.front {
		transform: rotateY(180deg);
	}
	.back {
		transform: rotateY(360deg);
		z-index: 3;
	}
}

.container.horizontal.back-shown .card-wrap {
	transform-origin: 50% 50%;
	
	.front {
		transform: rotateX(0) rotateY(180deg);
		
	}
	.back {
		transform: rotateX(0) rotateY(360deg);
	}
	
	@media screen and (max-width: 450px) {
		transform-origin: 50% 50%;
		
		.front {
			transform: rotateX(0) rotateY(180deg);
		}
		
		.back {
			transform: rotateX(0) rotateY(360deg);
		}
		
	}
}

.container, .front, .back {
	width: $card-width;
	height: $card-height;

	.stuff {
		width: 100%;
		height: 100%;
	}
}

.front, .back {
	-webkit-backface-visibility: hidden; // for mobile
	backface-visibility: hidden; // hide back of card during flip
	transition: 0.6s;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	position: absolute;
	top: 0;
	left: 0;
}

//default: 2001 Topps
.front {
	z-index: 2;
	-webkit-transform: rotateY(0deg);
	transform: rotateY(0deg);
  border: 1px solid $card-main-color;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.6);
	background-color: $card-main-color;
	padding: 16px 16px 0 16px;

	.stuff {
		position: relative;
		border: 2px solid darken(#877b5f, 10%);
		box-shadow: inset 0 1px 0 #85898c,
								inset 2px 3px 0 $card-main-color,
								inset -2px 0 0 $card-main-color;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		border-radius: 0 10px 0 10px;
		height: 387px;
		&::before {
			content: '';
			position: absolute;
			top: 0;
			left: 7px;
			width: 2px;
			height: 360px;
			background-color: $card-main-color;
		}
	}

	.topps {
		position: absolute;
		top: 15px;
		left: 20px;
		width: 40px;
	}

	.name-box {
		background-color: $card-main-color;
		border-radius: 0 0 0 10px;
		height: 42px;
		padding: 8px 4px 0 0;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		background: linear-gradient(to right, #38616f 145px, transparent 145px, transparent 260px, #38616f 260px), linear-gradient(to bottom, #38616f 0px, #38616f 2px, rgba(255,255,255,0.35) 2px, rgba(255,255,255,0.35) 7px, #38616f 7px), linear-gradient(to right, #38616f 147px, rgba(255,255,255,0.35) 147px)
	}

	h1 {
		font-family: 'Raleway', serif;
		font-weight: 800;
		font-style: italic;
		font-size: 18px;
		letter-spacing: 2px;
		margin: -3px 0 0 0;
		color: lighten(#877b5f, 10%);
		display: flex;
		justify-content: flex-end;
		align-items: center;

		.first-name {
			margin-top: -6px;
		}
		.last-name {
			text-transform: uppercase;
			font-style: normal;
			font-size: 32px;
			line-height: 33px;
			margin-top: -1px;
			margin-left: 5px;
			//border-top: 5px solid #a7be92;
		}
	}

	.player-image {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 350px;
		background-repeat: no-repeat;
		z-index: -1;
		border-radius: 0 10px 0 0;
	}

	.rookie {
		width: 46px;
		height: 18px;
		position: absolute;
		bottom: 50px;
		right: 16px;
		text-align: center;
		background-color: #7f6b00;
		background: linear-gradient(45deg, lighten(#7f6b00, 5%), #7f6b00);
		font-size: 8px;
		line-height: 8px;
		padding-top: 1px;
		letter-spacing: 2px;
		font-family: 'Lato', sans-serif;
		transform: skew(-12deg);
		border-radius: 3px;
		span {
			color: #cdcdcd;
			padding-left: 2px;
		}
	}

	&.topps2019 {
		padding: 0;
		background-color: #fff;
		border: 0;
		
		.stuff {
			border: 0;
			box-shadow: none;
			&::before {
				background-color: transparent;
			}
		}

		.topps {
			z-index: 10;
			left: unset;
			right: 30px;
    	width: 35px;
		}

		.name-box {
			z-index: 10;
			background: transparent;
			position: absolute;
			bottom: -13px;
			left: 0;
			width: 280px;
    	padding-right: 0;
		}

		h1 {
			flex-direction: column;
			align-items: flex-start;
			width: 100%;
			
			.first-name {
				order: 2;
				font-weight: 400;
				text-transform: uppercase;
				font-style: normal;
				display: block;
				width: 100%;
				color: #fff;
				font-size: 16px;
				line-height: 16px;
				letter-spacing: 1px;
				margin-top: 0;
    		margin-bottom: -6px;
				padding-left: 24px;
			}
			
			.last-name {
				order: 1;
				display: block;
				width: 100%;
				color: #9d9d9d;
				background-color: #fff;
				line-height: 24px;
				height: 18px;
				margin-left: 0;
				box-shadow: 0 -6px 3px rgba(255,255,255,0.85);
				border-radius: 0 0 2px 0;
				margin-bottom: 4px;
				padding-left: 14px;
				letter-spacing: 0;
				
				@media screen and (max-width: 450px) {
					margin-bottom: 2px;
				}
			}
		}
		.overlay-2019 {
			z-index: 9;
			position: absolute;
			top: 0;
			left: 0;
			width: 300px;
			height: 420px;
			
			.overlay-left {
				position: absolute;
				bottom: 57px;
				left: 0;
				background-color: green;
				background: url(http://kylephx.com/cards/assets/dots3.svg) no-repeat -8px 108px/62% auto, linear-gradient(60deg, #ccc 0%, #ccc 10%, transparent 40%, transparent 100%);
				width: 80px;
				height: 230px;
			}
			
			.overlay-right {
				position: absolute;
				bottom: 0;
				right: 0;
				background: 
					url(http://kylephx.com/cards/assets/dots.svg) no-repeat 0 100px / 155% auto,
					linear-gradient(to bottom, transparent 0%, #aaa 30%, #aaa 80%, #ccc 100%);
				width: 12px;
				height: 420px;
			}
			
			.overlay-bottom {
				position: absolute;
				bottom: 0;
				left: 0;
				background: url(http://kylephx.com/cards/assets/dots2.svg) repeat 0 -31px/82% auto, 
					linear-gradient(to right, transparent 0%, transparent 20%, transparent 21%, #fff 55%, #ccc 100%),
					linear-gradient(to bottom, #fff 0%, #fff 20%, #aaa 80%, #ccc 100%);
				width: 300px;
				height: 40px;
			}
		}
		
		.borders-2019 {
			z-index: 10;
			position: absolute;
			top: 0;
			left: 0;
			width: 96%;
			height: 400px;
			border-right: 5px solid $mariners-blue;
			border-bottom: 12px solid $mariners-blue;
			border-radius: 0 0 10px 0;
			box-shadow: 0 9px 0 0 #fff,
									2px 0 0 0 #fff,
									2px 9px 0 0 #fff,
									0 14px 3px -3px rgba(0, 0, 0, .65);
			
			.border-inside-1 {
				width: 100%;
				height: 388px;
				border-radius: 0 0 11px 0;
				border-right: 2px solid $mariners-green;
				box-shadow: 0 10px 0 0 $mariners-blue;
			}
			
			.border-inside-2 {
				width: 281px;
				height: 388px;
				border-radius: 0 0 11px 0;
				border-right: 2px solid #fff;
				//box-shadow: 0 10px 0 0 $mariners-blue;
			}
		}
		
		.player-image {
			z-index: 8;
			height: 380px;
			border-radius: 0;
		}
		
		.team {
			z-index: 11;
			position: absolute;
			bottom: -21px;
			right: 24px;
			display: flex;
			flex-direction: column;
			align-items: flex-end;
			
			@media screen and (max-width: 450px) {
				bottom: -22px;
			}
			
			img {
				width: 58px;
				margin-bottom: 3px;
			}
			
			.written-team {
				text-transform: uppercase;
				font-family: 'Lato', sans-serif;
				font-size: 10px;
				font-weight: bold;
				line-height: 10px;
			}
			
			.position {
				color: $mariners-green;
			}
			
			.team-name {
				color: $mariners-blue;
			}
		}

		.rookie {
			
			span {
				
			}
		}
	}
	
	&.fleer2001 {
		width: 420px;
		height: 300px;
		border: 1px solid #888;
		background-color: #fff;
		padding: 16px 12px 0 12px;
		
		.stuff {
			height: 284px;
			border: none;
			box-shadow: none;
			border-radius: 0;
			
			&::before {
				display: none;
			}
		}

		.topps {
			position: absolute;
			top: 1px;
			right: 3px;
			left: unset;
			width: 56px;
		}

		.name-box {
			background: darken($mariners-blue, 10%);
			border-radius: 0;
			width: 355px;
			justify-content: flex-end;
			position: absolute;
			right: -13px;
			bottom: 12px;
			border-top: 2px solid $mariners-green;
			border-bottom: 2px solid $mariners-green;
			z-index: 130;
			padding-top: 0;
			padding-right: 69px;
			
			.triangles {
				position: relative;
				top: 0;
				left: -83px;
				width: 20px;
				height: 42px;
				
				.top {
					width: 0; 
					height: 0; 
					position: relative;
					border-top: 0 solid transparent;
					border-bottom: 22px solid transparent;
					border-right: 20px solid $mariners-green; 
					&:before {
						content: '';
						position: absolute;
						top: 2px;
						left: 4px;
						width: 0; 
						height: 0; 
						border-top: 0 solid transparent;
						border-bottom: 18px solid transparent;
						border-right: 18px solid darken($mariners-blue, 10%); 
					}
				}
				
				.bottom {
					width: 0; 
					height: 0;
					bottom: 2px;
					position: relative;
					border-top: 22px solid transparent;
					border-bottom: 0 solid transparent;
					border-right: 20px solid $mariners-green; 
					&:before {
						content: '';
						position: absolute;
						bottom: 2px;
						left: 4px;
						width: 0; 
						height: 0; 
						border-top: 18px solid transparent;
						border-bottom: 0 solid transparent;
						border-right: 18px solid darken($mariners-blue, 10%); 
					}
					&:after {
						content: '';
						position: absolute;
						bottom: 17px;
						left: 19px;
						width: 0;
						height: 0;
						border-top: 4px solid transparent;
						border-bottom: 4px solid transparent;
						border-left: 4px solid $mariners-green;
					}
				}
			}
		}

		h1 {
			margin-top: -13px;

			.first-name {
				color: #fff;
				-webkit-text-stroke: 1px $mariners-green;
				text-stroke: 1px $mariners-green;
				font-size: 22px;
				line-height: 27px;
				font-style: normal;
				text-transform: uppercase;
				margin: 0;
				
			}
			
			.last-name {
				color: #fff;
				-webkit-text-stroke: 1px $mariners-green;
				text-stroke: 1px $mariners-green;
				font-size: 22px;
				line-height: 27px;
				margin: 0 0 0 10px;
			}
		}

		.player-image {
			height: 250px;
			border-radius: 0;
			background-size: 110% auto;
    	background-position: top -1px right -30px;
		}
		
		.player-image-foreground {
			position: absolute;
			bottom: 0;
			left: 0px;
			width: 305px;
			height: 300px;
			z-index: 129;
			background-size: 132% auto;
			background-repeat: no-repeat;
			background-position: bottom 0px left -70px;
		}
		
		.team {
			z-index: 132;    
			display: flex;
    	justify-content: flex-start;
    	align-items: flex-end;
    	flex-direction: row-reverse;
      position: absolute;
			bottom: 15px;
      right: 5px;
			
			img {
				width: 45px;
				margin-bottom: 5px;
			}
			
			.written-team {
				font-family: 'Raleway', serif;
				font-weight: 800;
				color: $mariners-green;
				text-transform: uppercase;
				font-size: 12px;
				
				.position {
					margin: 0 8px 0 12px;
				}
			}
		}

		.rookie {
			
			span {
				
			}
		}
	}
}

.back {
	transform: rotateY(180deg);
  border: 1px solid $card-main-color;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.6);
  box-sizing: border-box;
  background-color: $card-main-color;
	padding: 20px;
	
	.stuff {
		background: $card-main-color;
		border-radius: 20px;
	}

	header {
		border-radius: 0 20px 0 45px;
		display: flex;
		justify-content: flex-end;
		z-index: 9;
		position: relative;
		background-color: $card-main-color;
		padding-bottom: 8px;
		margin-left: 15px;
	}

	.player-name, .player-position {
		font-family: 'Rubik', sans-serif;
		letter-spacing: 3px;
		font-size: 16px;
		line-height: 14px;
		text-transform: uppercase;
		color: #fff;
	}

	.last-name {
		font-weight: 500;
		font-size: 22px;
		margin-left: 10px;
	}

	.player-position {
		border: 1px solid #fff;
		letter-spacing: 0;
		padding: 2px 10px;
		height: 18px;
		margin: 20px 0 0 15px;
	}

	.player-card-no {
		background-color: #fff;
		border-radius: 0 20px 0 50px;
		width: 60px;
		height: 36px;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-left: 15px;
		span {
			color: $card-main-color;
			font-family: 'Changa One', sans-serif;
			font-style: italic;
			margin-left: 5px;
			margin-top: -5px;
			font-size: 18px
		}
	}

	.stats-story {
		height: 378px;
		margin-top: -46px;
		background-size: cover;
		background-position: -34px 0;
		position: relative;
		border-radius: 0 20px 20px 20px;
		font-family: 'Roboto Condensed', sans-serif;
		&::before {
			content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 258px;
      height: 378px;
      background-color: #fff;
      border-radius: 0 20px 20px 20px;
      opacity: 0.8;
		}
	}

	.inner-box {
		position: relative;
		z-index: 10;
		padding: 65px 10px 10px;
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.stats-box {
		font-size: 13px;
		text-transform: uppercase;

		.row {
			display: flex;
			&--headings {
				border-bottom: 1px solid #000;
			}
			&--totals {
				border-top: 1px solid #000;
			}

			div {
				padding: 1px 0;
			}

			div:first-child {
				width: 40px;
				min-width: 40px;
				text-align: left;
			}
		}
		.heading, .amount {
			width: 50px;
			text-align: center;
		}
	}

	.stats-header {
		font-size: 11px;
		font-weight: bold;

		a {
			text-decoration: none;
			color: #000;
			&:hover {
				text-decoration: underline;
			}
		}
	}

	.story {
		font-weight: bold;
		margin-top: 10px;
		font-size: 12px;
		line-height: 12px;
		text-align: justify;
		flex-grow: 1;
	}

	.logos {
		display: flex;
		align-items: center;
		height: 30px;

		img {
			width: 30px;
			align-self: center;
			&.mlb {
				margin-left: 2px;
			}
		}

		p {
			font-size: 6px;
			padding: 0 3px;
			text-align: center;
		}
	}

	&.topps2019 {
		padding: 0 20px 0 0;
		border: 1px solid #ddd;
		background: #bbb url(http://kylephx.com/cards/assets/dots.svg) repeat 0 -20px/9% auto;
		
		.stuff {
			border-radius: 0;
			background: linear-gradient(65deg, #fff 0%, #fff 80%, rgba(255, 255, 255, 0) 100%);
		}
		
		.borders-2019 {
			position: absolute;
			top: 24px;
			left: 0;
			width: 96%;
			height: 395px;
			border-right: 5px solid $mariners-blue;
			border-top: 11px solid $mariners-blue;
			border-radius: 0 10px 0 0;
			box-shadow: 2px 0 0 0 #fff;
			
			.border-inside-1 {
				width: 100%;
				height: 384px;
				border-radius: 0 11px 0 0;
				border-right: 2px solid $mariners-green;
				box-shadow: 0 -10px 0 0 $mariners-blue;
			}
			
			.border-inside-2 {
				width: 279px;
				height: 383px;
				border-radius: 0 11px 0 0;
				border-right: 2px solid #fff;
			}
		}

		header {
			background: transparent;
			border-radius: 0;
			margin-left: 0;
		}
		
		.written-team {
			text-transform: uppercase;
			font-family: 'Lato', sans-serif;
			font-size: 10px;
			font-weight: bold;
			line-height: 10px;
			position: absolute;
			top: 33px;
			right: 12px;
			
			@media screen and (max-width: 450px) {
				top: 34px;
			}
		}

		.position {
			color: $mariners-green;
		}

		.team-name {
			color: $mariners-blue;
		}
		
		.player-name {
			display: flex;
			flex-direction: column;
			margin-top: 8px;
			position: absolute;
			top: 0;
			left: 2px;
		}
		
		.first-name {
			color: #fff;
			order: 2;
			font-family: 'Raleway', serif;
			letter-spacing: 1px;
			font-size: 15px;
			padding-left: 16px;
			padding-top: 1px;
		}
		
		.last-name {
			color: #9d9d9d;
			order: 1;
			font-family: 'Raleway', serif;
			font-weight: bold;
			letter-spacing: 0;
    	font-size: 26px;
		}

		.player-card-no {
			background-color: transparent;
			width: 26px;
    	height: 32px;
			
			span {
				color: #000;
				font-family: 'Roboto Condensed', serif;
				font-style: normal;
				font-weight: bold;
				font-size: 14px;
			}
		}

		.stats-story {
			height: 421px;
			background: none !important;
			
			&::before {
				content: '';
				top: 51px;
				left: 0px;
				width: 277px;
				height: 374px;
				background-color: lighten($mariners-green, 12%);
				border-radius: 0 10px 0 0;
				opacity: 1;
				box-shadow: inset -2px 1px 2px 0 rgba(0,0,0,0.5)
			}
		}
		
		.info {
			order: 1;
			padding: 24px 0 0 10px;
			
			p {
				font-size: 10px;
				line-height: 12px;
				text-transform: uppercase;
				font-weight: bold;
			}
		}

		.inner-box {
			padding: 35px 2px 10px 0;
		}
		
		.overflow-box {
			overflow-x: auto;
			margin-right: 1px;
			
			&.overflowed {
				overflow-x: auto;
			}
		}
		
		.scrolling-box {
			width: 500px;
			 -webkit-touch-callout: none; /* iOS Safari */
				-webkit-user-select: none; /* Safari */
				 -khtml-user-select: none; /* Konqueror HTML */
					 -moz-user-select: none; /* Firefox */
						-ms-user-select: none; /* Internet Explorer/Edge */
								user-select: none; /* Non-prefixed version, currently
																			supported by Chrome and Opera */
		}

		.stats-box {
			order: 3;
			font-size: 12px;
			padding: 3px 0 0;
			background-color: #ddd;
			box-shadow: inset 0 -1px 1px 0 rgba(0,0,0,0.3),
				inset -1px 0 0px 0 rgba(0,0,0,0.3);
			margin-bottom: 10px;
			.stats-header {
				padding: 0 10px;
			}
			
			.row {
				
				&--headings div:first-child {
					padding-left: 10px;
					width: 44px;
					min-width: 44px;
				}
				
				&--headings div:last-child {
					padding-right: 10px;
					width: 60px;
				}
				
				&:not(.row--headings) div:first-child {
					margin-left: 10px;
				}
				
				&:not(.row--headings) div:last-child {
					margin-right: 10px;
				}
				
				div {
					border-bottom: 1px solid #ccc;
					
					i {
						color: red;
					}
				}

				div:first-child {
					width: 26px;
					min-width: 26px;
				}
				
				&--headings {
					font-weight: bold;
					border-bottom: none;
					line-height: 14px;
					background-color: lighten($mariners-green, 12%);
					box-shadow: inset -1px 0 2px 0 rgba(0,0,0,0.5);
					div {
						border-bottom: none;
						&:first-child {
							width: 36px;
							min-width: 36px;
						}
					}
				}
				
				&--totals {
					font-weight: bold;
					border-top: 0;
					div {
						border-bottom: none;
					}
				}

				
			}
			.heading, .amount {
				
			}
		}

		.stats-header {
			margin: 0 10px;
			border-top: 1px solid #444;
			padding: 2px 10px 1px;

			a {
				
				&:hover {
					
				}
			}
		}

		.story {
			order: 2;
			padding: 10px;
			margin-top: 5px;
			background-color: #ddd;
			font-size: 12px;
    	line-height: 15px;
			box-shadow: inset 0 2px 1px 0 rgba(0,0,0,0.5),
				inset -1px 0 0 0 rgba(0,0,0,0.3);
		}

		.logos {
			order: 4;
			padding: 10px;
			
			img {
				width: 34px;
				&.mlb {
					width: 22px;
    			margin-top: 11px;
				}
				
				&.mlbpa {
					width: 26px;
				}
			}

			p {
				
			}
		}

		.horizontal {
			
		}
	}
	
	&.fleer2001 {
		width: 420px;
		height: 300px;
		padding: 30px 0 0;
		background-color: $dull-brown;
		border: 1px solid $dull-brown;
		border-right: 1px solid #444;
		
		.stuff {
			background-color: $dull-brown;
		}

		header {
			background-color: darken($mariners-blue, 10%);
			border-radius: 0;
			margin-left: 0;
			align-items: center;
			padding: 4px 0;
			justify-content: flex-start;
			padding-left: 55px
		}

		.back-logo {
			position: absolute;
			top: -8px;
			left: 7px;
			width: 40px;
			align-self: center;
		}	
		
		.player-name {
			color: $dull-brown;
			font-family: 'Raleway', serif;
			font-weight: 800;
			letter-spacing: 1px;
    	font-size: 17px;
		}

		.last-name {
			font-family: 'Raleway', serif;
			font-weight: 800;
			letter-spacing: 1px;
    	font-size: 17px;
			margin: 0 10px 0 5px;
		}

		.written-team {
			color: $dull-brown;
			font-style: italic;
			font-family: 'Raleway', serif;
			font-weight: 800i;
			text-transform: uppercase;
			letter-spacing: 0;
    	font-size: 13px;
		}
		
		.position {
			font-style: italic;
			font-family: 'Raleway', serif;
			font-weight: 800i;
			text-transform: lowercase;
			letter-spacing: 0;
    	font-size: 13px;
			margin-right: 10px;
		}

		.player-card-no {
			background-color: transparent;
			position: absolute;
			top: -26px;
			right: 0;
			font-size: 17px;
			
			span {
			  color: #000;	
			}
		}

		.stats-story {
			height: 282px;
			background: none;
			
			&::before {
				content: '';
				display: none;
			}
		}

		.inner-box {
			padding-top: 50px;
		}

		.info {
			order: 1;
		}
		
		.info-paragraph {
			font-size: 11px;
			line-height: 15px;
			font-weight: bold;
			padding-left: 40px;
			padding-bottom: 2px;
		}
		
		.stats-header {
			background: darken($mariners-blue, 10%);
			border-radius: 0;
			width: 402px;
			z-index: 130;
			padding: 6px 0 4px 29px;
			position: relative;
			margin-bottom: 3px;
			margin-left: 6px;
			
			a {
				color: $dull-brown;
				font-size: 12px;	
				letter-spacing: 1px;
				font-family: 'Raleway', serif;
			}
			
			.triangles {
				position: absolute;
				top: 0;
				left: -14px;
				width: 20px;
				height: 25px;
				
				.top {
					width: 0; 
					height: 0; 
					top: 0;
					right: -4px;
					position: relative;
					border-top: 0 solid transparent;
					border-bottom: 12px solid transparent;
					border-right: 11px solid darken($mariners-blue, 10%); 
					
				}
				
				.bottom {
					&:before {
						content: '';
						position: absolute;
						bottom: 2px;
						left: 4px;
						width: 0; 
						height: 0; 
						border-top: 12px solid transparent;
						border-bottom: 0 solid transparent;
						border-right: 11px solid darken($mariners-blue, 10%); 
					}
					
				}
			}
		}
		
		.stats-box {
			order: 2;
			font-size: 11px;
			line-height: 13px;
			font-weight: bold;
			
			.row {
				
				&--headings {
					border-bottom: 2px solid #222;
				}
				

				div {
					
				}

				div:first-child {
					
				}
				
				&--totals {
					border-top: 2px solid #222;
					
					div:first-child {
						width: 60px;
						min-width: 60px;
					}
					
					div:nth-child(2) {
						width: 21px;
					}
				}
			}
			.heading, .amount {
				
			}
		}

		.stats-header {
			

			a {
				
				&:hover {
					
				}
			}
		}

		.story {
			order: 3;
			margin: 5px 0;
			font-size: 11px;
			line-height: 11px;
			
			@media screen and (max-width: 450px) {
				margin: 5px 0 13px;
			}
		}

		.logos {
			order: 4;

			img {
				&.fleer {
					order: 1;
					margin-left: 10px;
					width: 35px;
				}
				&.mlb {
					order: 2;
					margin-top: 5px;
					margin-left: 5px;
				}
				&.mlbpa {
					order: 3;
					margin-left: 5px;
				}
			}

			p {
				order: 4;
				text-align: left;
				font-size: 7px;
				line-height: 7px;
			}
		}
	}
}

//player specific styles
.container {
	cursor: pointer;
	margin: 10px;

	&[data-player="Ginny Baker"] {
		.front {
			.player-image {
				background-position: -75px -55px;
				background-size: 450px auto;
			}

			.team {
				width: 70px;
				position: absolute;
				left: 10px;
				bottom: -3px;
			}
		}

		.back {
			.row {
				div:nth-child(4), div:nth-child(5) {
					width: 80px;
				}
			}
		}
	}

	&[data-player="Charlie Kelly"] {
		.front {
			.player-image {
				background-position: -20px -58px;
				background-size: 350px auto;
			}

			.team {
				width: 66px;
				position: absolute;
				left: 10px;
				bottom: 7px;
			}

			.name-box {
				background: linear-gradient(to right, #38616f 153px, transparent 153px, transparent 260px, #38616f 260px), linear-gradient(to bottom, #38616f 0px, #38616f 2px, rgba(255,255,255,0.35) 2px, rgba(255,255,255,0.35) 7px, #38616f 7px), linear-gradient(to right, #38616f 153px, rgba(255,255,255,0.35) 153px)
			}
		}

		.back {

		}
	}

	&[data-player="Calvin"] {
		.front {
			.player-image {
				background-position: -56px -13px;
    		background-size: 320px auto;
			}

			.team {
				width: 60px;
				position: absolute;
				left: 16px;
				bottom: 3px;
			}

			.name-box {
				background: linear-gradient(to right, #38616f 135px, transparent 135px, transparent 260px, #38616f 260px), linear-gradient(to bottom, #38616f 0px, #38616f 2px, rgba(255,255,255,0.35) 2px, rgba(255,255,255,0.35) 7px, #38616f 7px), linear-gradient(to right, #38616f 135px, rgba(255,255,255,0.35) 135px);
			}
		}

		.back {
			.row {
				div:last-child {
					width: 29px;
					min-width: 29px;
				}
			}
			
			.story {
				@media screen and (max-width: 450px) {
					margin-top: 1px;
				}
			}
		}
	}
	
	&[data-player="Kyle Stark"] {
		.front {
			.player-image {
				background-position: -105px -65px;
    		background-size: 420px auto;
			}
			
			.last-name {
				@media screen and (max-width: 450px) {
					margin-bottom: 3px;
				}
			}
			
		}

		.back {
			.row {
				
			}
		}
	}
	
	&[data-player="Gene Belcher"] {
		.front {
			.player-image {
				background-position: -67px -65px;
    		background-size: 400px auto;
			}
			
			.team img {
				margin-bottom: -6px;
			}
			
			.position {
				color: $devils-blue;
			}
			
			.borders-2019 {
				border-right: 5px solid $devils-red;
				border-bottom: 12px solid $devils-red;

				.border-inside-1 {
					border-right: 2px solid $devils-blue;
					box-shadow: 0 10px 0 0 $devils-red;
				}
			}
			
			.team-name {
				color: $devils-red;
			}
		}

		.back {
			.borders-2019 {
				border-right: 5px solid $devils-red;
				border-top: 11px solid $devils-red;

				.border-inside-1 {
					border-right: 2px solid $devils-blue;
					box-shadow: 0 -10px 0 0 $devils-red;
				}
			}
			
			.team-name {
				color: $devils-red;
			}
			
			.position {
				color: $devils-blue;
			}
			
			.stats-story::before {
				background-color: desaturate($devils-blue, 35%);
			}
			
			.scrolling-box {
				width: auto;
			}
			
			.row {
				&--headings {
					background-color: desaturate($devils-blue, 35%);
				}
				&--year1 {
					div:nth-child(3) {
						margin-left: -2px;
					}
				}
				

				
			}
		}
	}
	
	&[data-player="Henry Rowengartner"] {
		.front {
			.player-image {
				background-position: -60px -38px;
    		background-size: 400px auto;
			}
			
			.first-name {
				margin-top: 6px;
			}
			
			.last-name {
				font-size: 24px;
				margin-top: 3px;
				margin-bottom: -5px;
			}
			
			.team img {
				width: 50px;
				margin-bottom: -1px;
			}
			
			.team-name {
				sup {
					top: 1px;
    			position: relative;
    			font-size: 6px;
				}
			}
			
			.position {
				color: $cubs-red;
			}
			
			.borders-2019 {
				border-right: 5px solid $cubs-blue;
				border-bottom: 12px solid $cubs-blue;

				.border-inside-1 {
					border-right: 2px solid $cubs-red;
					box-shadow: 0 10px 0 0 $cubs-blue;
				}
			}
			
			.team-name {
				color: $cubs-blue;
			}
		}

		.back {
			.borders-2019 {
				border-right: 5px solid $cubs-blue;
				border-top: 11px solid $cubs-blue;

				.border-inside-1 {
					border-right: 2px solid $cubs-red;
					box-shadow: 0 -10px 0 0 $cubs-blue;
				}
			}
			
			.written-team {
				top: 30px;
			}
			
			.team-name {
				color: $cubs-blue;
				
				sup {
					position: relative;
					top: 3px;
				}
			}
			
			.position {
				color: $cubs-red;
			}
			
			.stats-story::before {
				background-color: #d76b51;
			}
			
			.scrolling-box {
				width: auto;
			}
			
			.row {
				&--headings {
					background-color: #d76b51;
				}
			
			}
		}
	}
	
	&[data-player="Kenny Powers"] {

		
	}
	
	&[data-player="G-Baby"] {
		.front {
			&.fleer2001 {
				.player-image-foreground {
					background-size: 130% auto;
					background-position: bottom -3px left -144px; 
				}
				
				.player-image {
					background-size: 118% auto;
					background-position: top -1px right -60px;
				}
				
				.name-box {
					background: $kekambas-green;
					border-top-color: #444;
					border-bottom-color: #444;
					
					.triangles {
						left: -180px;
						
						.top {
							border-right-color: #444; 
							&:before {
								border-right-color: $kekambas-green;
							}
						}

						.bottom {
							border-right-color: #444;
							
							&:before {
								border-right-color: $kekambas-green;
							}
							&:after {
								border-left-color: #444;
							}
						}
					}
					
					
				}
				
				h1 {
					.last-name {
						-webkit-text-stroke: 1px #444;
					}
				}
				
				.team {
					.written-team {
						color: #444;
					}
					
					img {
						margin-bottom: 2px;
					}
				}
				
			}
		}
		
		.back {
			&.fleer2001 {
				header {
					background-color: darken(#38616f, 10%);
				}
				
				.stats-header {
					background: darken(#38616f, 10%);
					
					.triangles {
						.top {
							border-right-color: darken(#38616f, 10%);
						}
						
						.bottom {
							&:before {
								border-right-color: darken(#38616f, 10%);
							}
						}
					}
				}
				
				.stats-box .row--totals { 
					div:nth-child(2) {
							width: 17px;
					}
				}
				
				.story {
					margin-bottom: 35px;
				}
			}
		}
		
	}

}

details {
	margin: 50px 40px;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 14px;
	color: #1f618d;
	background: #fff;
	border: 1px solid rgba(31,97,141,0.2);
	padding: 10px;
	width: 85px;

	@media screen and (max-width: 450px) {
		margin: 30px 10px;
	}

	&[open] {
		width: auto;
	}

	summary {
		font-weight: bold;
		cursor: pointer;
		outline: none;
	}

	ul {
		text-align: left;
		padding-left: 0;
		font-style: italic;
		font-weight: normal;
		margin: 0;

		li {
			line-height: 18px;
			border-top: 1px solid rgba(31,97,141,0.2);
			padding: 5px;

			&:first-child {
				border-top: 0;
			}

			&:last-child {
				padding-bottom: 0;
			}

			a {
				color: #1f618d;
				&:hover {
					color: darken(#1f618d, 10%);
				}
			}
		}
	}
}

              
            
!

JS

              
                new Vue({
	el: '#app', 
	data: {
		query: '',
		players: [
			{ 
				name: 'Ginny Baker',
			  string: 'ginnybaker',
				media: 'Pitch',
			 	story: 'Given jersey number 43 as a nod to Jackie Robinson\'s 42, Ginny Baker stunned the world when she became the first woman to play in the MLB. She also played in her first All-Star game during her rookie season, but surrendered a home run to the only batter she faced, the feared Salvador Pérez.',
				team: 'Padres',
				logo: 'padres.svg',
				position: 'P',
				recordsType: 'pitching',
				rookie: true,
				cardStyle: 'topps2001',
				cardNo: 792,	
				orderNo: 1,
				sources: 'Pitch, episodes 1, 3-4, 6-8, 10',
			 	statsYear1: {
						year: '2016', w: 3, l: 1, era: 3.81, ip: 28.1, r: 12, er: 12, so: 13, bb: 4, sv: 1
				},
				totals: {
						year: 'totals', w: 3, l: 1, era: 3.81, ip: 28.1, r: 12, er: 12, so: 13, bb: 4, sv: 1
				}
			},
			{ 
				name: 'Charlie Kelly',
			  string: 'charliekelly',
				media: 'It\'s Always Sunny in Philadelphia',
			 	story: 'As the legend goes, Charlie Kelly beat Wade Boggs\' beer drinking record in 2015, having finished 71 beers on a cross country flight to Los Angeles. He then drunkenly hit a line drive off the wall on the first pitch he saw. When asked after the game how he felt about his performance, he stumbled a bit and said, "That\'s baseball, baby!"',
				team: 'Phillies',		
				logo: 'phillies.png',
				position: 'DH',
				recordsType: 'batting',
				cardStyle: 'topps2001',
				cardNo: 793,	
				orderNo: 2,
				sources: 'It\'s Always Sunny in Philadelphia, episode 10x1 "The Gang Beats Boggs"',
				// isHorizontal: true,
				statsYear1: {
						year: 2015, g: 1, ab: 1, '2b': 1, avg: '1.000', beers: 71
				},
				totals: {
						year: 'totals', g: 1, ab: 1, '2b': 1, avg: '1.000', beers: 71
				}
			},
			{ 
				name: 'Calvin',
			  string: 'calvin',
				media: 'Calvin and Hobbes',
			 	story: 'Over his playing career, Calvin frequently was traded between Team Calvin and Team Hobbes, sometimes even in the middle of a play. Notably in his rookie year, he grounded into a 1-4-3 double play, where he was the second baseman on the play. He also had a brief stint on Team 5, where he caught a flyball for the wrong team.',
				team: 'Hobbes',		
				logo: 'hobbes.png',
				position: 'LF',
				recordsType: 'batting',
				cardStyle: 'topps2001',
				cardNo: 794,	
				orderNo: 3,
				sources: 'The Complete Calvin and Hobbes, comics dated 6/22/86, 8/1/86, 2/10/87, 6/10/87, 8/9/87, 5/22/88, 6/9/88, 6/19/88, 7/17/88, 8/6/89, 8/24/89, 5/1/90, 6/24/90, 7/22/90, 8/8/90, 5/23/93, 12/12/93, 3/15/95',
				statsYear1: {
						year: 1986, g: 2, ab: 1, h: 0, '2b': 0, '3b': 0, hr: 0, rbi: 0, sb: 0, so: 0, avg: '.000'
				},
				statsYear2: {
						year: 1987, g: 3, ab: 0, h: 0, '2b': 0, '3b': 0, hr: 0, rbi: 0, sb: 0, so: 0, avg: '-'
				},
				statsYear3: {
						year: 1988, g: 3, ab: 2, h: 2, '2b': 0, '3b': 0, hr: 1, rbi: 1, sb: 3, so: 0, avg: '1.000'
				},
				statsYear4: {
						year: 1989, g: 2, ab: 3, h: 2, '2b': 0, '3b': 0, hr: 2, rbi: 2, sb: 0, so: 1, avg: '.667'
				},
				statsYear5: {
						year: 1990, g: 2, ab: 2, h: 2, '2b': 0, '3b': 1, hr: 0, rbi: 0, sb: 0, so: 0, avg: '1.000'
				},
				statsYear6: {
						year: 1993, g: 1, ab: 2, h: 2, '2b': 1, '3b': 0, hr: 0, rbi: 0, sb: 0, so: 0, avg: '1.000'
				},
				statsYear7: {
						year: 1995, g: 1, ab: 1, h: 0, '2b': 0, '3b': 0, hr: 0, rbi: 0, sb: 0, so: 1, avg: '.000'
				},
				totals: {
						year: 'totals', g: 14, ab: 11, h: 8, '2b': 1, '3b': 1, hr: 3, rbi: 3, sb: 3, so: 2, avg: '.727'
				}
			},
			{ 
				name: 'Kyle Stark',
			  string: 'kylestark',
				media: 'MLB The Show 18',
			 	story: 'After finishing 2nd in Rookie of the Year voting with the Marlins, Stark was traded to the Mariners before his sophomore season. Known for his speed, in 2020 he broke the single season record for stolen bases with 164, finishing the year with a .965 stolen base percentage. In 2022, Stark made his 4th straight All Star appearance as the starting 3rd Baseman.',
				team: 'Seattle Mariners&trade;',		
				logo: 'mariners.png',
				position: '3B',
				recordsType: 'batting',
				cardStyle: 'topps2019',
				cardNo: 795,	
				orderNo: 4,
				info1: 'Ht: 5\'8\" Wt: 160 Bats: Right Throws: Right',
				info2: 'Drafted: Marlins #26-2018. Acq. Trade w/ Marlins, 2019.',
				sources: 'MLB The Show 18 statistics page',
				statsYear1: {
						year: 2019, tm: 'mia', g: 100, ab: 318, r: 73, h: 132, '2b': 23, '3b': 8, hr: 25, rbi: 68, avg: '.415', obp: '.412', slg: '.777', war: '9.0', sb: '<i>125</i>', cs: 8, bb: '0', so: '6'
				},
				statsYear2: {
						year: 2020, tm: 'sea', g: 155, ab: 618, r: 104, h: 191, '2b': 28, '3b': 9, hr: 27, rbi: 80, avg: '.309', obp: '.314', slg: '.519',  war: '7.7', sb: '<i>164</i>', cs: 6, bb: '3', so: '70'
				},
				statsYear3: {
						year: 2021, tm: 'sea', g: 160, ab: '<i>682</i>', r: 93, h: 186, '2b': 24, '3b': 14, hr: 33, rbi: 84, avg: '.273', obp: '.287', slg: '.494', war: '6.0', sb: '<i>139</i>', cs: 7, bb: '14', so: '77'
				},
				statsYear4: {
						year: 2022, tm: 'sea', g: 148, ab: 624, r: 94, h: 188, '2b': 30, '3b': '<i>14</i>', hr: 26, rbi: 103, avg: '.301', obp: '.310', slg: '.519', war: '5.1', sb: '<i>142</i>', cs: 6, bb: '7', so: '54'
				},
				totals: {
						year: 'totals', tm: '', g: 563, ab: 2242, r: 364, h: 697, '2b': 105, '3b': 45, hr: 111, rbi: 335, avg: '.311', obp: '.318', slg: '.546', war: '27.8', sb: 570, cs: 27, bb: 24, so: 207
				}
			},
			{ 
				name: 'Gene Belcher',
			  string: 'genebelcher',
				media: 'Bob\'s Burgers',
			 	story: 'Donning his baseball capris and top, Gene rode the bench for most of his rookie season with the Devils. Striking out in every at bat and committing countless errors in the field would cause his team to lose. One fly ball to left field even caused him to pull his cup out of his jockstrap to shield his head from the ball. Despite his failures, Gene remains positive in his outlook on the sport: "I love baseball! The pizza parties, the spiky shoes, the parade at the end of the season where we ride on a float."',
				team: 'Recreation League Devils&trade;',		
				logo: 'devils.png',
				position: 'LF',
				recordsType: 'batting',
				cardStyle: 'topps2019',
				cardNo: 796,	
				orderNo: 5,
				info1: 'Ht: 4\'10\" Wt: 105 Bats: Right Throws: Right',
				info2: 'Drafted: 2013. Attended The Deuce of Diamonds\' Diamonds in the Rough in the Diamond Baseball Camp',
				sources: 'Bob\'s Burgers, episode 3x23 "The Unnatural"',
				// isHorizontal: true,
				statsYear1: {
						year: 2013, tm: 'devils', g: 2, ab: 3, r: 0, h: 0, so: 2, avg: '.000'
				},
				totals: {
						year: 'totals', tm: '', g: 2, ab: 3, r: 0, h: 0, so: 2, avg: '.000'
				}
			},
			{ 
				name: 'Henry Rowengartner',
			  string: 'henryrowengartner',
				media: 'Rookie of the Year',
			 	story: 'Known around the Cubs clubhouse as Rulingfurter, Rosinbagger, and even Gardenhoser, Henry was signed right out of junior high after a freak accident caused him to be able to throw at incredible speeds. After several successful outings with the Cubs, his agent/mom\'s boyfriend tried to get him to sign a contract to join the New York Yankees, much to his mother\'s disapproval. Rowengartner retired after striking out Mets\' feared slugger Heddo, helping the Cubs win the pennant, and eventually, the World Series.',
				team: 'Chicago Cubs<sup>&reg;</sup>',		
				logo: 'cubs.svg',
				position: 'P',
				recordsType: 'pitching',
				cardStyle: 'topps2019',
				cardNo: 797,	
				orderNo: 7,
				info1: 'Ht: 4\'11\" Wt: 88 Bats: Right Throws: Right',
				info2: 'Signed: 1993. Retired from MLB: 1993.',
				sources: 'Rookie of the Year film',
				// isHorizontal: true,
				statsYear1: {
						year: 1993, tm: 'CHC', w: 0, l: 0, era: 1.59, ip: 5.2, sv: 3, so: 12, bb: 2, hbp: 2, hr: 1
				},
				totals: {
						year: 'totals', tm: '', w: 0, l: 0, era: 1.59, ip: 5.2, sv: 3, so: 12, bb: 2, hbp: 2, hr: 1
				}
			}
			,
			{ 
				name: 'Kenny Powers',
			  string: 'kennypowers',
				media: 'Eastbound & Down',
				story: 'While playing for Seattle (his fifth ballclub in 5 seasons), Kenny gave up a grand slam to his nemesis Reg Mackworthy, which would ultimately end his MLB career. He became a free agent again in 2007 and has yet to sign with a new team.',
				team: 'Seattle Mariners&trade;',		
				logo: 'mariners2.png',
				position: 'Pitcher',
				recordsType: 'pitching',
				cardStyle: 'fleer2001',
				cardNo: 798,	
				orderNo: 6,
				info1: 'Height: 5\'8\"&nbsp;&nbsp;&nbsp; Weight: 210&nbsp;&nbsp;&nbsp; Bats: Right&nbsp;&nbsp;&nbsp; Throws: Right',
				info2: 'Drafted: 1st Round, 1999.&nbsp;&nbsp;&nbsp; Acq. via Free Agency, 2006.',
				sources: 'Eastbound & Down, episodes 1, 3, 5; <a href="https://web.archive.org/web/20120615223015/http://www.kennypowers.com/cards.html" target="_blank">HBO Archive</a>; <a href="http://www.kennypowersfanclub.com/kennypowers/stats.php" target="_blank">Kenny Powers Fan Club</a>; <a href="https://www.cardboardconnection.com/kenny-powers-baseball-card-collection-from-hbos-eastbound-down" target="_blank">Cardboard Connection</a>',
				isHorizontal: true,
				statsYear1: {
						year: 2002, club: 'atl', g: 62, w: 7, l: 3, ip: 66.1, er: 21, era: 2.85, sv: 49, so: 106, bb: 30
				},
				statsYear2: {
						year: 2003, club: 'nyy', g: 64, w: 7, l: 3, ip: 62.2, er: 33, era: 4.74, sv: 39, so: 79, bb: 20
				},
				statsYear3: {
						year: 2004, club: 'sfg', g: 52, w: 3, l: 10, ip: 54.2, er: 40, era: 6.59, sv: 30, so: 44, bb: 27
				},
				statsYear4: {
						year: 2005, club: 'bos', g: 15, w: 0, l: 6, ip: 12.2, er: 12, era: 8.53, sv: 3, so: 6, bb: 9
				},
				statsYear5: {
						year: 2006, club: 'sea', g: 1, w: 0, l: 1, ip: 0, er: 1, era: 'inf', sv: 0, so: 0, bb: 0
				},
				totals: {
						year: 'mlb totals', club: '', g: 194, w: 17, l: 18, ip: 196.1, er: 107, era: 4.90, sv: 121, so: 235, bb: 86
				}
				
			}
			,
			{ 
				name: 'G-Baby',
			  string: 'gbaby',
				media: 'Hardball',
				story: 'Jarius Evans, better known to his teammates as "G-Baby", came through in the clutch with the bases loaded in the bottom of the last inning of the semi-finals game, leading the Kekambas to the \'ship. Unfortunately, G-Baby himself would never get to play in the championship game, as he was shot dead soon after his game-winning RBI. He remains a Kekambas legend.',
				team: 'Kekambas',		
				logo: 'kekambas.svg',
				position: 'Pinch Hitter',
				recordsType: 'batting',
				cardStyle: 'fleer2001',
				cardNo: 799,
				info1: 'Height: 4\'1\"&nbsp;&nbsp;&nbsp; Weight: 57&nbsp;&nbsp;&nbsp; Bats: Right&nbsp;&nbsp;&nbsp; Throws: Right',
				info2: 'Drafted: Last Round, 2001.',
				sources: 'Hardball film',
				isHorizontal: true,
				statsYear1: {
						year: 2001, club: 'KEK', g: 1, ab: 1, r: 0, h: 1, '2b': 0, '3b': 0, 'hr': 0, 'rbi': 1, 'sb': 0, 'bb': 0, 'avg': '1.000'
				},
				totals: {
						year: 'totals', club: '', g: 1, ab: 1, r: 0, h: 1, '2b': 0, '3b': 0, 'hr': 0, 'rbi': 1, 'sb': 0, 'bb': 0, 'avg': '1.000'
				}
				
			}
			
		]
	},
	computed: {
		filteredList () {
			return this.players.filter(player => {
				return player.name.toLowerCase().indexOf(this.query.toLowerCase()) > -1
					|| player.media.toLowerCase().indexOf(this.query.toLowerCase()) > -1
					|| player.string.toLowerCase().indexOf(this.query.toLowerCase()) > -1 || player.team.toLowerCase().indexOf(this.query.toLowerCase()) > -1;
			})
		}
	},
	filters: {
		trimFirst(value) {
			if (!value) return '';
			value = value.toString()
			return value.substr(value.indexOf(' ')+1, value.length);
		},
		trimLast(value) {
			if (!value) return '';
			value = value.toString()
			return value.substr(0, value.indexOf(' '));
		}
	},
	methods: {
		flipCard(player, event) {
			let playerName = player.name;
			let playerCard = document.querySelector(`[data-player="${playerName}"]`);

			if (event.target.tagName.toLowerCase() != 'a') {
				if (playerCard.classList.contains('back-shown')) {
					document.querySelector(`[data-player="${playerName}"] .back .overflow-box`).classList.remove('overflowed'); 
				} else {
					setTimeout(function() {
						document.querySelector(`[data-player="${playerName}"] .back .overflow-box`).classList.add('overflowed');
					}, 600);
				}

				playerCard.classList.toggle('back-shown');
			}
		},
		cancelSearch() {
			this.query = '';
		},
		goToSource(cardNo) {
			const sources = document.querySelectorAll('.source');
			if (document.querySelector('details').open == false) {
				document.querySelector('summary').click();
			}
			
			sources.forEach(function(source) {
				source.style.backgroundColor = 'transparent';
			});
			
			document.querySelector('#source' + cardNo).style.backgroundColor = '#ccff15';
		}
	},
	beforeMount() {
		let url = window.location.href;
		if (url.indexOf('?q=') > -1) {
			this.query = url.substr((url.indexOf('?q='))+3, url.length);
		}
		
	}
})

//to show back by default when styling:
// document.addEventListener('DOMContentLoaded', function () {
// 	document.querySelector(`[data-player="Kyle Stark"]`).classList.toggle('back-shown');
// });


//TO DO:
// put a 'no results found' message when no cards are shown in results
// wait til cards are ready before showing, have a loader animation (afterMount)

              
            
!
999px

Console