/*COLORS

Deep Blue: #233269
Light Blue: #def4ff

*/

/* Header */
header{
	background-color: #4c5a63;
	font-family:Arial;
	text-align:center;
	color:#fff;
	padding:2em 0 .5em;
}

header p{
	margin:0;
}

header h1{
	margin:0;
}

header > h1 > img{
	max-width:90%;
	height: 6em;
	object-fit: contain;
}

nav{
	margin: auto;
	margin-top:1em;
	display: flex;
	justify-content:center;
}

nav a{
	color:#fff;
	font-size:2em;
	padding: .25em;
	/* width: 2em; */
	/* height: 2em; */
}

nav a:hover
,nav a:active
,.current{
	background-color:#fff;
	color: #4c5a63;
}

#nav-signature{
	transition:filter .1s;
	filter:invert(1);
}

nav a:hover #nav-signature
,nav a:active #nav-signature
,.current #nav-signature{
	transition:filter .1s;
	filter:invert(0);
}

nav p{
	display:inline-block;
	margin:0;
	white-space:nowrap;
}

body{
	margin:0;
	box-sizing:border-box;
	
	background-image:url('images/background-home.jpg');
	background-size:cover;
	background-position:center;
	background-attachment:fixed;
}

#login-section{
	display:flex;
	height:5em;
	justify-content:center;
	margin:.5em;
}

#login-section > img{
	height:100%;
	image-rendering:crisp-edges;
	image-rendering:pixelated;
}

#explanation-section{
	width:50em;
	max-width:95%;
	margin:.5em auto;
	padding:1em;
	box-sizing:border-box;
	
	background-color: #4c5a63;
	color:#fff;
	
	font-family:Arial;
}

#button-account{
	height:5em;
	width:5em;
	display:flex;
	justify-content:center;
	align-items:center;
	
	text-align:center;
	
	color:black;
	text-decoration:none;
	background-color:white;
	border:1px solid black;
	box-sizing:border-box;
}

#button-account:hover{
	background-color:#d0d1d3;
}

a,a:visited{
	color:#ffffff;
	font-weight:bold;
}

/* Listings */
main{
	/*border:1em solid white;
	background-color:red;*/
	margin:auto;
	width: 80rem;
	/* max-width:100%; */
	/* display: flex; */
	/* display: flex; */
	/* width: auto; */
	/* display: block; */
	/* display: inline-block; */
	width: auto;
	
	display:flex;
	flex-wrap:wrap;
	
	justify-content:center;
}

.game{
	border:.5em solid #99b4c7;
	width: 50%;
	display:block;
	margin:.5em auto;
	background-color:#4c5a63;
}

.game>img{
	object-fit:contain;
	height:100%;
	width:100%;
}

/* Full size is set by font-size; everything else is relative off that */
.cartridge{
	font-size:2em; /* Sets the sizing for the element */
	/* float:left; */
	transition:transform .1s,box-shadow .1s;
	z-index:0;
	box-shadow:.5em .5em 1em #000000dd;
	cursor:pointer;
	margin:.5em;
	display:inline-block;
}

.cartridge:hover,.cartridge:focus{
	z-index:1;
	transform:scale(1.1);
	box-shadow:1em 1em 1em #000000aa;
}

/* Always true for cartridges */
.cartridge{
	width:10em;
	height:11em;
	background-size:2em,8em,7.75em,cover,1em;
	background-position: 6.75em 7em,50% .6em,50% 3em,center,center;
	background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat;
}

.cartridge-date{
	font-size:.5em;
	font-family:serif;
	
	pointer-events:none;
	user-select:none;
	
	color:#ffffffaa;
	text-decoration:none;
	display:inline-block;
	position:relative;
	width:auto;
	margin:0;
	padding:0 .25em;
	transform:translate(2.5em,16em);
	
	background-color:#000000aa;

}

/* .cartridge:active,.cartridge:focus{ */
	/* height:24em; */
	/* animation-direction:forwards; */
/* } */