html{
  margin: auto;
  height: 100%;
  text-align: center;
  background: url("../img/bg.jpg") no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
}

* {
    font-family: Arial, "DejaVu Serif", Norasi, serif;
}

.button {
	background-color: #0DA76D;
	max-width: 50%;
	height: 100%;
	margin: auto;
	font-size: 1.3em;
	line-height: 1.8em;
	width: 12em;
	-moz-border-radius: 16px / 16px; 
	-webkit-border-radius-border-radius: 16px / 16px; 
	border-radius: 16px / 16px;
	cursor: pointer;
	overflow: hidden;
}

.dex {
	margin-top: 10%;
	margin-bottom: 10%;
	width: 100%;
	height: 10.5em;
	display: grid;
	grid-template-columns: 30% 65%;
	background-color: #0DA76D;
	box-sizing: border-box;
	border-style: double;
}

.dex_line {
	overflow: hidden;
	white-space: nowrap;
	height: 2em;
	margin-bottom: -1.6em;
}

.info {
	width: 98%;
	margin: 1%;
	text-align: left;
	line-height: 1em;
	display: inline-block;
	height: 10em;
	overflow: hidden;
}

.pic_dex {
	width: 94%;
	margin: 3%;
	max-width: 5em;
}

.pic_dex_div {
	margin: auto;
}

#board {
	display: flex;
	justify-content: center;
	height: 100%;
	width: 100%;
	z-index: 10;
	overflow: hidden;
}

#card {
	height: 70%;
	cursor: pointer;
	z-index: 10;
	margin-top: auto;
	margin-bottom: auto;
    animation-name: translate; 
    animation-duration: 1s; 
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
	overflow: hidden;
}

#clock {
	height: 100%;
}

#collection {
	visibility: hidden;
	background-color: #117A65;
	position: fixed;
	width: 30%;
	min-width: 270px;
	height: 100%;
	top: 0px;
	left: 0px;
	border-width: thick;
	border-style: double;
	z-index: 40;
}

#discount_icon {
	width: 32px;
	height: 16px;
}

#home {
	height: 100%;
	right: 0;
	float: right;
	position: absolute;
	cursor: pointer;
	z-index: 31;
}

#footer {
	box-sizing: border-box;
	background-color: #117A65;
	position: fixed;
	height: 2.8em;
	width: 100%;
	left: 0px;
	bottom: 0px;
	vertical-align: middle;
	border-width: thick;
	border-style: double;
	z-index: 30;
	overflow: hidden;
}

#header {
	box-sizing: border-box;
	background-color: #117A65;
	position: fixed;
	height: 3em;
	width: 100%;
	left: 0px;
	top: 0px;
	vertical-align: middle;
	border-width: thick;
	border-style: double;
	z-index: 31;
}

#left_div {
	position: fixed;
	background-color: #117A65;
	text-align: center;
	height: 2.8em;
	width: 3em;
	top: 50%;
	left: 100%;
	margin-top: -1.4em;
	margin-left: -3em;
	z-index: 20;
	border-radius: 50% 0% 0% 50%;
}

#left_text {
}

#logo {
	width: 64px;
}

@media only screen and (max-width: 600px) {
	#logo {
		display: none;
	}
}

#opening_effect {
	visibility: hidden;
	height: 70%;
	max-height: 100vw;
	margin-bottom: 15vh;
	margin-top: 15vh;
	z-index: 21;
    animation-name: rotate; 
    animation-duration: 0.5s; 
    animation-iteration-count: infinite;
    animation-timing-function: linear;
	-webkit-animation-play-state: paused;
	overflow: hidden;
}

#order {
	max-width: 90%;
	position: relative;
	z-index: 30;
}

#overboard {
	position: absolute;
	width: 100%;
	left: 0px;
	top: 0px;
	justify-content: center;
	height: 100%;
	z-index: 20;
	pointer-events: none;
	overflow: hidden;
}

#points {
	float: right;
	background-color: #B5B5B5;
	cursor: default;
}

#quit {
	cursor: pointer;
	position: absolute;
	top: 1em;
	right: 2em;
	width: 10%;
	min-width: 1em;
}

#scroller {
	overflow-y: scroll;
	margin: auto;
	height: 100%;
}

#show_collection {
	float: left;
}

/*Animations*/

@keyframes rotate {
  from {
    transform: rotate(0deg) scale(0, 0);
  }
  to { 
    transform: rotate(360deg) scale(3, 3);
  }
}

@keyframes translate {
  from {
    transform: translate(400%);
  }
  to { 
    transform: translate(0%);
  }
}