html,body {
	width: 100%; height: 100%; margin: 0; padding: 0;
	font-family: sans-serif,Arial,Helvetica;
}
#mat {
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
	overflow: hidden;
	background: rgb(0,149,13);
	background: radial-gradient(circle, rgba(0,149,13,1) 0%, rgba(0,52,6,1) 100%);
}
.card {
	position: absolute;
	width: auto;
	height: 40vh;
	border-radius: 2vh;
	overflow: hidden;
}
.card[data-ord].pickable:not(.front)::after {
	position: absolute;
	display: block;
	top: 10%;
	left: 10%;
	font-size: 150%;
	font-weight: bold;
	line-height: 2em;
	text-align: center;
	content: attr(data-ord);
	border-radius: 50%;
	width: 2em;
	height: 2em;
	background: black;
	color: white;
	border: solid white 2px;
}
.card img {
	width: auto;
	height: 100%;
}
.card.selected {
	opacity: 0.5;
}
.size--S .card { height: 30vh; border-radius: 1.5vh; }
.size--L .card { height: 50vh; border-radius: 2.5vh; }

#menu {
	position: absolute;
	top: 1em;
	right: 1em;
	width: 3rem;
	height: 30rem;
}
#menu img {
	display: block;
	background: rgba(255,255,255,0.5);
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 0.5em;
}
#menu img:hover {
	cursor: pointer;
	background: rgba(255,255,255,0.8);
}

#wait {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.8);
	display: none;
	opacity: 0;
	transition: opacity 1s;
}
#wait.visible {
	display: block;
	opacity: 1;
	transition: opacity 1s;
}
#wait div {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	width: 10vw; height: 10vw;
	border-radius: 50%;
	border: solid rgb(0,149,13) 10px;
	border-left-color: transparent;
	animation: 1s linear infinite spinner;
}
@keyframes spinner {
	100% { transform: translate(-50%,-50%) rotate(360deg); }
}


/* Decks list */

#decks {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	max-width: 80%;
	width: 0;
	overflow-x: hidden;
	overflow-y: auto;
	background: rgb(0,0,0,0.9);
	box-sizing: border-box;
	transition: width 0.5s;
}

#decks.unfolded {
	width: 40em;
}

#decks__content {
	padding: 1rem;
	padding-right: 5rem;
}

#addlink {
	text-decoration: none;
	border: none;
	border-radius: 0.5rem;
	display: block;
	color: black;
	font-weight: bold;
	text-align: center;
	padding: 0.5rem 1rem;
	background: rgb(0,149,13);
}
#addlink:hover {
	color: white;
}

#addfiles {	
	display: none;
}
.filelabel {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        text-align: center;
        display: inline-block;
        vertical-align: middle;
}
.filelabel div {
	padding: 0.5rem;
}

.filedrop {
	display: block;
        background: #888888;
        border-radius: 0.5rem;
	padding: 0.5rem;
        position: relative;
        overflow: hidden;
	margin-top: 0.5rem;
}

input[type='file'] {
        vertical-align: middle;
        width: 100%;
        height: 10em;
        font-family: HelvRoman;
        font-size: 1em;
        display: inline-block;
        opacity: 0;
}
input.invalid {
	background-color: #aa4040;
	color: white;
}
input::placeholder {
	color: #aaaaaa;
}
input.invalid::placeholder {
	color: white;
}
#deckname {
	display: block;
	border-radius: 0.5em;
	padding: 0.5em 1em;
	box-sizing: border-box;
	border: none;
	width: 100%;
	margin-top: 0.5rem;
}
#deckdesc {
	display: block;
	border-radius: 0.5em;
	padding: 0.5em 1em;
	box-sizing: border-box;
	border: none;
	width: 100%;
	margin-top: 0.5rem;
}
#fileslist {
	margin-top: 0.5rem;
}
#fileslist div {
	display: inline-block;
	min-width: 2em;
	padding: 0.25em 0.5em;
	text-align: center;
	background: rgb(149,13,0);
	color: white;
	border: solid black 1px;
}
#fileslist .file--ok {
	background: rgb(0,149,13);
}
#decksubmit {
	border: none;
	border-radius: 0.5rem;
	text-align: center;
	padding: 0.5rem 1rem;
	margin: auto;
	margin-top: 0.5rem;
	display: block;
	background: rgb(0,149,13);
	cursor: pointer;
}
#decklist {
	color: white;
}
.playdeck {
	width: 2em; height: 2em;
	background: transparent url(/i/select.png) center no-repeat;
	background-size: cover;
	display: inline-block;
	cursor: pointer;
}
.deldeck {
	width: 2em; height: 2em;
	background: transparent url(/i/delete.png) center no-repeat;
	background-size: cover;
	display: inline-block;
	cursor: pointer;
}
.deck {
	margin: 1rem 0;
}
.deckname {
	font-weight: bold;
}
.deckdesc {
}
