body {
	background: #eee;
	font-family:Helvetica, arial, sans-serif;
	font-size: 15pt;
	color: #000;
	min-height: 100vh;
	padding: 2em 1em;
}
div.cards {
	position: relative;
}
div.card {
	position: relative;
	float: left;
	margin: 1%;
	background: white;
	border: 2px solid white;
	font-weight: bold;
	/*position: absolute;*/
	box-shadow: 1px 1px 20px rgba(150,150,150,0.3);
	border-radius: 1em;
	transition: border 0.5s ease;
	z-index: 1;
	width: 17%;
	min-width: 10em;
	max-width: 13em;
	min-height: 13em;
}
div.grid {
	text-align: center;;
}
div.grid .card {
	position: relative;
	max-height: 16em;
	display: inline-block;
	overflow: hidden;
	text-align: left;
	float:none;
}
div.grid .card .inner {
	position: static;
}
div.card div.num {
	border-radius: 99px;
	position: absolute;
	top:  50%;;
	left: 50%;
	width: 2em;
	height:2em;
	margin-top: -1em;
	margin-left: -1em;
	background: orange;
	color: white;
	display: none;
	opacity: 0;
	transition: all 0.5s ease-in-out;
	line-height: 2em;
	text-align: center;
}

div.card.full {
	margin: 2% auto;
	float: none;
	width: 40%;
	height: 75vh;
	font-size: 180%;
}
div.card.full.single {
	border: none;
	perspective: 1000px; 
	box-shadow: none;
	background: none;
}
div.card.full.single label {
	width: 48%;
	display: inline-block;
	font-size: 80%;
	/*display: block;*/
	padding: 0.1em 0;
	padding-top: 0;
	border-bottom: 1px solid #333;
	font-size:16pt;
	line-height: 30pt;
	clear: both;
	overflow: hidden;
}
div.card.full.single label.full {
	width: 100%;
}
div.card.full.single label input {
	float: left;
	width: auto;
	padding: 0.5em;
	margin-right: 0.4em;
}
.but {
	display: block;
	font-size:16pt;
	text-align: center;
	background: #666;
	color: #fff;
	text-decoration:none;
	padding: 0.5em 1em;
	margin-top: 1em;
	box-shadow: 1px 1px 5px #222;
}
div.card.full.single.flipped .inner {
  transform: rotateY(-180deg);
}
div.card.full.single .flipped .front .logo,
div.card.full.single .flipped .front #flipper
 {

	display: none;
}
div.card.full.single .inner {
	padding: 0;
	position: relative;
	height: 100%;
	width:100%;
	max-height: none;

  transition: transform 0.8s;
  transform-style: preserve-3d;
}
div.deckcount {
	font-size: 14pt;
	text-align: center;
}
div.card.full.single .inner .front,
div.card.full.single .inner .back {
  position: absolute;
  width: 100%;
  min-height: 70vh;
  top:0;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 1px 1px 20px rgba(0,0,0,0.2);
  box-shadow: 1px 1px 100px rgba(150,150,150,0.8);
}
div.card.full.single .inner .back h2,
div.card.full.single .inner .back ul {
	font-size: 16pt;
}
div.card.full.single .inner .back h2 {
	font-size: 16pt;
	padding-top: 2em;
	margin-top: 2em;
	border-top: 2px solid #999;
}
div.card.full.single .inner .back a.small {
	color: #ccc;
	font-size: 14pt;
}

div.card.full.single .inner .front {
	background: #fff;
}
div.card.full.single .inner .back {
	background: #000;
	color: #eee;
	transform: rotateY(180deg);
}
div.card.full.single .inner .back.grey {
	background: #666;

}
div.card.full.single .inner .back.grey .pad {
	padding: 0.2em 1em;
}
#choosedeck {
	font-size: 14pt;
	font-weight: normal;
	color: #333;
}
#closedecks {
}
div.card.full.single h1 {
	border-radius: 0.6em 0.6em 0 0;
	font-size: 30pt;
	padding-top: 2em;
}
div.card.full.single form {
	font-size: 90%;
	
}
div.card.full.single .pad {
	padding: 1em;

}
div.card.full.single .pad.grey {
	background: rgba(240,240,240);
	background: linear-gradient(355deg, rgba(255,255,255,0) 0%, rgba(238,238,238,1) 100%);
	border-radius: 0 0 1em 1em;
}

div.card.full.single .disclaimer {
	font-weight: normal;
	color: #999;
	font-size: 10pt;
}
div.card.full.single .disclaimer a{
	color: #666;
}
div.card.selected {
	border-color: orange;
	background: #f9efe5;
}
div.card.selected div.num {
	display: block;
	opacity: 1;
}
div.card .inner {

	color: inherit;	
	text-decoration: none;
	height: 100%;
	/*max-height: 14em;*/
	position: relative;
	padding: 0 1em;
	display:block;
}
div.card .inner .text {
	padding-top: 1em;
}
div.card .inner a.textblock {
	color: inherit;	
	text-decoration: none;
	height: 100%;
	/*max-height: 14em;*/
	/*position: relative;*/
	padding: 0 1em;
	display:block;

}
div.card img.logo {
	width: 70%;
	height: auto;
	position: absolute;
	bottom: 0.4em;
	left: 0.5em;
	backface-visibility: hidden;
}
div.card img.logo.inline {
	display: inline-block;
	position: static;
	backface-visibility: hidden;
}
div.buttons {
	margin-top: 2%;
	padding: 20px 0;
	z-index: 1000;
	position: fixed;
	background:rgba(90,90,90,0.9);
	color: #fff;
	overflow:hidden;
	left: 0;
	bottom:0;
	right: 0;
	border-top: 1px solid #ccc;

}
div.buttons div.left,
div.buttons div.right {
	padding: 0.5em;
	display:inline-block;
	text-transform: uppercase;
}
div.buttons b {
	line-height: 2em;
	font-weight: normal;
	padding-left: 0.5em;
}
div.buttons #multiswitch {
	width: 5em;
	height:2em;
	padding: 0;
	margin: 0;
	border-radius: 99pt;
	background: black;
	display: inline-block;
	border: 2px solid black;
	transition: all 0.5s ease-in-out;
	overflow: hidden;
}
div.buttons #multiswitch span.handle {
	display: block;
	width: 2em; 
	height: 2em;
	margin: -1px;
	border-radius: 99em;
	background: #ccc;
	border: 1px solid black;
	float: left;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	transition: all 0.5s ease-in-out;
}
div.buttons #multiswitch.on {
	background: orange;
}

div.buttons #multiswitch.on span.handle {
	float: right;
}

div.buttons a {
	width: 40%;
	text-decoration: none;
	color: #eee;
	text-transform: uppercase;
	margin: 0 5%;
	background: rgba(10,10,10,0.6);
	text-align: center;
	padding: 1em 0;
	border-radius: 5px;
	/*box-shadow: 1px 1px 10px #000;*/
	display: block;
	float: left;
}
div.buttons a.right {
	float: right;
	display: none;
}
h1 {
	background: black;
	color: white;
	padding: 0.5em 1em;
	margin: 0;
}
h1.white {
	background: white;
	color: black;
}
input {
	font-size: 18pt;
	display: block;
	width: 100%;
	padding: 0.5em;
	margin: 0.5em 0;
	border: 2px solid #ccc;
	text-align: left;
}
input.button {
	background: rgba(140,140,140,0.2);
	border: none;
	text-align: center;
	padding: 0.5em 1em;
	font-weight: bold;
}
footer {
	padding-top: 2em;
	font-size: 10px;
	color: #999;
	clear:both;
	text-align: center;
	padding-bottom: 10em;
}
footer a {
	color: #777;
}
#flipper,#reflipper {
	position: absolute;
	bottom: 0;
	right: 0.1em;
	padding: 0.4em;
	text-decoration: none;
	color: rgba(200,200,200,0.2);
	transition: all 0.5s ease;
	backface-visibility: hidden;
}
#reflipper {
	left: 0.1em;
	right: auto;
}
#reflipper:hover{
	color: #eee;
	left: 0;
	right: auto;
}
#flipper:hover {
	color: #999;
	right: 0;
}

@media screen and (max-width: 800px) {
	body {
		font-size: 14pt;
		padding: 1em 0;
	}
	#login small {
			font-size: 16pt;
			text-align: center;;
	}
	div.grid {
		padding: 0; 
	}
	body.card {
		text-align: center;
	}
	div.card {
		width: 42%;
		display: block;
		margin:1%;

		position: static;
		padding: 0;
		min-width: 0;
		height: 90%;
		text-align: left;


		max-width: 100%;
		max-height: 16em;
	}
	div.card.inner {
		padding: 0.1em;
	}

	div.card.full {
		display: inline-block;	
		width: 83vw;
		margin: 0.2em;
		height: calc(100vh-1em);
		min-height: 12em;
		max-width: 100%;
	}

	div.card.full.single label {
		font-size: 12pt;
	}

}
@media screen and (min-width: 900px) and (max-width: 1200px) {
	body {
		font-size: 18pt;
	}
	div.card {
		width: 30%;;
	}
	div.card.full.single {

		max-width: 10em
	}
	div.card.full.single .inner .front,
	div.card.full.single .inner .back  {
		min-height: 12em;
	}
}
