* {
	margin:0;
	padding:0;
}


body {
	font-size: .75em;
	font-family: 'Montserrat', sans-serif;
	text-align: center;
	margin: 4em;
}

h1 {
	font-size: 4em;
	font-weight: 700;
	padding-bottom: 0.5em;
}
h2 {
	font-size: 3em;
	font-weight: 700;
	padding-bottom: 0.5em;
}

.left {
	width:10%;
	min-width: 6em;
	margin-left: -10em;
	/*margin-right: 5em;*/
	display: inline-block;
}

.left .card {
    width: 10em;
    height: 14em;
    font-size: 1em;
}

#wrapper {
	width: 80%;
	max-width: 90em;
	display: inline-block;
	vertical-align: top;
	text-align: center;
	position: relative;
}

#game-over{
	/*color:;*/
}

#result {
    background-color: #eee;
}

#result .dot {
    opacity: 0.5;
}
.card {
	background-color: #2a2b2a;
	font-size: 1em;
	width: 12em;
	max-width: 20em;
	height: 16em;
	margin: 0 3% 2em 0;
	position: relative;
	display:inline-block;
	-webkit-transition:background-color s, -webkit-transform s;
    transition:background-color s, transform s;
}

hr  {
    margin-block-end: 1em;
    margin-block-start: 1em;
    margin-inline-start: 2em;
    margin-inline-end: 7em;
    border-style: solid;
    border-color: #b9b9b9;
}

.back{
	/*background-image: url("dark_geometric_@2X.png");*/
	background-color: #222;
	margin-top: -15.8em;
	margin-left:1px;
    border: 1px solid #CCC;
}

.back:first-child{
	margin-top: 0;
}

.dot {
	width:2em;
	height:2em;
	border-radius: 50%;
	content: ' ';
}

.top-left {
	/*red*/
	background-color: #c23d4b;
	position:absolute;
	top:2em;
	left:2em;

}
.mid-left {
	/*blue*/
	background-color: #4287c7;
	position:absolute;
	top:44%;
	left:2em;
}
.bottom-left {
	/*green*/
	background-color: #1d7d3d;
	position: absolute;
	left:2em;
	bottom:2em;
}
.top-right{
	/*purple*/
	background-color: #8177b7;
	position:absolute;
	top:2em;
	right:2em;
}
.mid-right{
	/*yellow*/
	background-color: #f1ca1b;
	position:absolute;
	top:44%;
	right:2em;
}
.bottom-right{
	/*orange*/
	background-color: #e16326;
	position: absolute;
	bottom:2em;
	right:2em;
}
.on{
	visibility: visible;
}
.off{
	visibility: hidden;
}
.table{
	width:75%;
	display: inline-block;
	vertical-align: top;
}

.scorecard {
	background-image: url('starburst.gif');
	font-size: 3em;
	z-index:20;
	background-repeat: no-repeat;
	background-size: 150px;
	height:150px;
	width:150px;
	font-weight: 700;
	text-align: center;
	padding-top: 55px;
	position: absolute;
	top:0;
	right:-1em;
}

.text-block {
	margin:3em 5em 0 3em;
	display: inline-block;
	text-align: left;
	background-color: #ccc;
	/*width: 100%;*/
	padding:4em;
	max-width: 40em;
}
.selected {
	/*border: solid 12px grey;
	/*background-color: black;*/
	background: repeating-linear-gradient(
	  135deg,
	  #2a2b2a,
	  #2a2b2a 10px,
	  #000 10px,
	  #000 20px
	);
	background-color: black;
}

.flat-button{
	font-size: 0.5em;
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	border-radius: 100%;
	background-color:#ccc;
	position: relative;
	top: -0.25em;
	left:25px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 2em;
  height: 1em;
  top: -0.75em
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 0.85em;
  width: 0.85em;
  left: 0.1em;
  bottom: 0.1em;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(0.9em);
  -ms-transform: translateX(0.9em);
  transform: translateX(0.9em);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.hidden {
/*Different from on and off. Use to remove from flow*/
    display: None;
}

@media (max-width: 700px) {
	h1{
		padding-bottom: 0.25em;
	}
    #deck{
    	display:none;
    }
    .scorecard{
    	top:0;
    	right:0;
    	margin: 0 auto;
    	padding: 0;
    	background-image: none;
    	background-size: 80px;
    	height:60px;
    	width: 200px;
    	display: block;
    	position:relative;
    }
    .scorecard:before{
    	content: "Score: ";
    	/*margin-left: 2em;*/
    }
    .table{
    	width:90%;
    }
    .card{
    	font-size:0.75em;
    }
    #wrapper{
    	min-width: 300px;
		width:100%;
    }
}