@font-face {
    font-family: 'mtg';
    src: url('planewalker-webfont.eot');
    src: url('planewalker-webfont.eot?#iefix') format('embedded-opentype'),
         url('planewalker-webfont.woff') format('woff'),
         url('planewalker-webfont.ttf') format('truetype'),
         url('planewalker-webfont.svg#planewalkerregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
html, body {
  height: 100%;
  min-height: 100%; /* for firefox */
}
body{
	margin:0px;
	font-family: mtg;
	font-family: arial,sans-serif;
}
table{border:1px solid black;}
table td{
	border:1px solid black;
	padding:3px;
}

#wrapper{
	margin:1em;
}

#left{
	width:30%;
	float:left;
}

#right{
	float:left;
	width:70%;
}

#comm{
	height:20%;
	background:#e0e0e0;
}

#message{
	height:100%;
	overflow:auto;
	padding:2px;
}

#message input{
	width:100%;
}

.player{
	height:40%;
	overflow:auto;
}

.bg{
	height:50%;
}

.facedown{
	display: block;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background: url('back.jpg') no-repeat;
	width: 223px;
	height: 310px;
	padding-left: 223px;
}

#youbattleground{
	background:#e4e4e4;
	position:relative;
}
#youlibgrav{
	width:115px;
	float:left;
	height:100%;
	overflow:auto;
	text-align:center;
}

#youlibgrav ul{
	padding:3px;
}

ul.counters {
	list-style:none;
	padding:0px;
}

li.choosable:hover{
	cursor:pointer;
	color:brown;
}

#otherlibgrav{
	width:115px;
	float:left;
	height:100%;
	text-align:center;
}
#otherbattleground{
	background:#e2e2e2;
	position:relative;
}

h4{font-size:120%;}
h4, p{margin:2px;}
p{padding-left:1em;}

#roll{
	height:22px;
	vertical-align:middle;
}

.decklistul{
	margin:.5em;
	padding:0px;
	width:300px;
}
.decklistul li{
	display:block;
	cursor:pointer;
}
.decklistul li:hover{
	background:#f1f1f1;
	color:black;
}
.contextmenu{
	display:block;
	position:absolute;
	background:#fff;
	list-style:none;
	padding:3px;
	padding-bottom:1px;
	border-radius:3px;
}
.contextmenu li:hover{
	color:grey;
	cursor:pointer;
}

#myhand, #otherhand{
	list-style:none;
	padding:0px;
	padding-top:12px;
}

#yourexile{
	position:absolute;
	left:0px;
	bottom:1em;
}

#yourexile:hover{
	color:grey;
	cursor:pointer;
}

#mygraveyard, #othergraveyard{
	list-style:none;
	padding:0px;
	margin:0px;
	padding-top:3px;
}

.handcard, .otherhandcard{
    float:left;
    display:block;
    margin-right:-70px;
}
.gravecard, .othergravecard{
	display:block;
	margin-top:-130;
}
.gravecard:first-child, .othergravecard:first-child{
	margin-top:0px;
}
.handcard img, .otherhandcard img, .gravecard img, .othergravecard img{
	width:111px;
	height:155px;
	border-radius:5px;
}

#youlife, #otherlife{
	line-height:1em;
	margin:auto;
	margin-bottom:-1em;
	position:relative;
	display:inline-block;
	font-size:180%;
	font-weight:bold;
	color:white;
	text-shadow: 2px 2px black;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.lifechange{
	display:inline;
}
.lifechange:hover{
	cursor:pointer;
}

#searchlist{
	list-style:none;
	padding:0px;
	margin:0px;
}
#searchlist li{
	float:left;
	width:111px;
	padding-bottom:5px;
}
#searchlist li img{
	width:111px;
	border-radius:6px;
}
#searchlist li a{
	cursor:pointer;
}
#decksearch{
	overflow:auto;
	color:white;
}
#closedecksearch, #closedecksearchandshuffle{
	cursor:pointer;
}
#imageinspect, #decksearch{
	position:absolute;
	text-align:center;
	width:100%;
	height:100%;
	margin:auto;
	background:rgba(0,0,0,0.8);
}
#imageinspect img{
	margin-top:2em;
	border-radius:10px;
}
.inplaycard {
	display:block;
	width:111px;
	height:155px;
	/*border:2px solid black;*/
	position:absolute;
}
.inplaycard img{
	width:111px;
	height:155px;
	vertical-align:top;
	border-radius:5px;
}
.inplaycard .overlay{
	content:'+1/+1';
	position:absolute;
	width:111px;
	height:140px;
	top:0px;
	left:0px;
	color:white;
	text-shadow: 1px 2px black;
	padding-top:15px;
	text-align:center;
	overflow:auto;
}
.tapped{
	-webkit-transform:rotate(45deg);
	-o-transform: rotate(45deg);
	-moz-transform:rotate(45deg);
	transform: rotate(45deg);
}
.choosable{
	text-align:left;
}
#decklist{
	position:fixed;
	width:220px;
	top:20%;
	right:0px;
	color:white;
	max-height:500px;
	overflow-y:auto;
	overflow-x:hidden;
	background:rgba(1,1,1,0.8);
}
.decklistul{
	display:none;
}
#youlifevalue{
	display:inline;
}

.cardcount{
	display:inline-block;
	font-weight:bold;
	font-family:sans-serif;
	min-width:21px;
	line-height:21px;
	border-radius:2px;
	text-align:center;
}
.cardcount:hover{
	color:blue;
	background:grey;
}

/* Deckbuilder css options */
.colorDiv{
	float:left;
	margin-right:1em;
}
.clearfix {
	background:none;
	clear:both;
	float:none;
	width:100%;
	height:1px;
	border:none;
	margin:-1px 0;
}

#chat{
	width: -moz-calc(100% - 30px);
    width: -webkit-calc(100% - 30px);
    width: calc(100% - 30px);
}

#roll{
	margin-left:4px;
}

.larger{
	width:350px;
	height:auto;
}
