html, body
{
	width: 100%;
	height: 100%;
	padding:0;
	margin: 0;
	box-sizing:border-box;
	font-family: 'Indie Flower', cursive;
    font-size: 14pt;
	display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    overflow: hidden;
}

html{
	background: #333;
	display: flex;
	justify-content: center;
	width: 100%;
}

html body{
	max-width: 400px;
	position: relative;
}

html * {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

html input, html input:before, html input:after {
		 -webkit-user-select: initial;
		 -khtml-user-select: initial;
		 -moz-user-select: initial;
		 -ms-user-select: initial;
		 user-select: initial;
		}

.page
{
    font-family: 'Indie Flower', cursive;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)), url(assets/images/images/dungeon1.jpg);
		background-position: center center;
		background-size: auto 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left:0;
    top:0;
    overflow: hidden;
}

.page.type-1 {
	background-image: linear-gradient(to top, rgba(0, 0, 150, 0.3), rgba(0, 0, 0, 0.9)), url(assets/images/images/hamlet.jpg);
}
.page.type-2 {
	background-image: linear-gradient(to top, rgba(0, 80, 0, 0.3), rgba(0, 0, 0, 0.9)), url(assets/images/images/cave1.jpg);
}
.page.type-3 {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)), url(assets/images/images/greybuck.jpg);
}
.page.type-4 {
	background-image: linear-gradient(to top, rgba(60, 60, 0, 0.3), rgba(0, 0, 0, 0.9)), url(assets/images/images/crypt1.jpg);
}
.page.type-5 {
	background-image: linear-gradient(to top, rgba(80, 0, 0, 0.3), rgba(0, 0, 0, 0.9)), url(assets/images/images/tower.jpg);
}

.field
{
    position: relative;
    width: 100%;
    height: 100%;
}

.head, .bottom
{
    max-height:50px;
    width: 100%;
}

.body, .head, .bottom
{
    flex:1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.l1{margin-top: 0px;}
.l2{margin-top: -4px;}
.l3{margin-top: -8px;}
.l4{margin-top: -12px;}
.l5{margin-top: -16px;}
.l6{margin-top: -18px;}
.l7{margin-top: -20px;}
.l8{margin-top: -22px;}

.card-class{
    width:100%;
    height: 100%;
    text-align: center;
    align-items:center;
    justify-content:flex-end;
    border-radius: 10px;
    font-size: 10pt;
    border-width:1px;
    border-style: solid;
    border-color:  #775500;
    box-shadow: 0 2px 1px 0px rgba(0,0,0,.2);
    color:#fff;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: absolute;
    box-sizing:border-box;
}

.card-class i
{
    width: 100%;
    height: 100%;
    font-size:250%;
    margin-bottom: 5px;
    color: #ffffff99;
    position: absolute;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
		background-size: contain;
}

.card-class.stone i
{
    width: 100%;
    height: 100%;
    font-size: 480%;
    margin-bottom: 5px;
    color: #333;
    position: absolute;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    background: #484848;
}

.r-4 .card-class.stone i,
.r-4 .card-class.stone i
{
    font-size: 520%;
}

.card-class div
{
    text-align: right;
    width: 100%;
		padding-right: 10%;
}

.ground
{
    background: transparent;
    z-index: 1;
    pointer-events: none;
    border-width: 2px;
    border-style: dashed;
    border-color: #484848;
    box-shadow: none;
}

.enemy
{
    background: #1100aa;
}

.poison
{
    background: #c000ff;
}

.heal
{
    background: #ff5500;
}

.weapon
{
    background: #00aa11;
}

.gold
{
    background: gold;
    color:#bb9900;
}

.gold i
{
    color:#bb9900;
}

.closed {
    font-size: 0;
    color:transparent;
    background: url(assets/images/bg/background4.jpg)!important;
		background-size: contain;
}

.closed *,
.card-class.closed i
 {display: none;}

.closed, .gold, .heal, .weapon, .enemy
{
    border-width: 2px;
    border-color: #33333399;
}

.card-class:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-image: radial-gradient(circle, transparent 0%, rgba(7, 9, 11, 0.356) 100%);
    border-radius: 8px;
    pointer-events: none;
}

.ground:after{
    display: none;
}

.ground.exit {pointer-events: all;}
.ground.exit i {
    font-size: 220%;
}

.r-2 .card-class, .r-2 .card-class:after {
	font-size: 230%;
  line-height: 100%;
}
.r-3 .card-class, .r-3 .card-class:after{
	font-size: 170%;
  line-height: 100%;
}
.r-4 .card-class, .r-4 .card-class:after {
	font-size: 130%;
	line-height: 100%;
}
.r-5 .card-class, .r-5 .card-class:after {
	font-size: 110%;
	line-height: 100%;
}


.open{
    pointer-events: all;
    z-index: 5;
		background-image: url(assets/images/bg/dun-open-floor-1.png)!important;
}


.goldscore
{
    color: gold;
    font-size: 120%;
    text-align: right;
    padding:20px;
}
.cardscore
{
    color: white;
    font-size: 10pt;
    text-align: left;
		padding-left: 5px;
}

.cardscore .sprite
{
	pointer-events: all;
}


.classname
{
    color: #fff;
    font-size: 120%;
    text-align: center;
    padding:20px;
    flex:1;
}

.home .classname
{
	font-size: 200%;
}

.globalscore
{
    max-height: 0;
}

.globalscore .classname
{
    padding: 0;
}

.globalscore small
{
    font-weight: normal;
    font-size: 60%;
    color: #cacb08;
}

.hpscore
{
	padding: 0 20px 50px;
	font-size: 200%;
	display: flex;
	position: absolute;
	left: -30px;
	bottom: -30px;
	background: #ff5500aa;
	width: 140px;
	height: 120px;
	border-radius: 50% 90% 50% 50%;
	color: #fff;
	align-items: flex-start;
	justify-content: flex-start;
	padding-left: 40px;
	padding-right: 0;
	box-sizing: border-box;
}

.hpscore div{
	position: absolute;
	bottom: 95px;
	z-index: 1;
}

.hpscore i
{
    position: absolute;
    left: 55px;
    font-size: 45pt;
    bottom: 70px;
    transform: scaleX(-1);
    color: firebrick;
}

.bottom .hpscore .sprite.icon
{
	background-position: top center;
  height: 100px;
  background-size: 100% auto;
  transform: scaleX(-1);
  bottom: 30px;
  left: -20px;
}
.bottom .hpscore .sprite.c-paladin{
	transform: scaleX(1);
}

.hpscore.poisoned
{
    background: #c000ffaa;
}

.hpscore.poisoned i
{
    color: #390c63;
}

.armscore
{
    padding:0 20px 50px;
    font-size: 15pt;
    display: flex;
    position: absolute;
    right: -30px;
    bottom: -30px;
    background: #00aa11aa;
    width: 140px;
    height: 160px;
    border-radius: 80% 50% 0% 50%;
    color: #fff;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 40px;
    box-sizing: border-box;
}

.armscore div{
	position: absolute;
	z-index: 1;
	bottom: 30px;
	font-size: 200%;
}

.armscore i
{
    position: absolute;
    right: 55px;
    opacity: .5;
    font-size: 45pt;
    bottom: 70px;
    transform: scaleX(-1);
}

.home .body
{
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home .body .classname
{
    max-height: 40px;
    margin-top: -60px;
}
.home .body .list
{
    display: flex;
    width: 100%;
		height: 80%;
    justify-content: center;
		align-items: flex-end;
    padding: 10px 0;
}

.home .body .list.register
{
	align-items: center;
	flex-direction: column;
}

.playername{
	color: #fff;
	position: fixed;
	top: 0;
	right: 10px;
}

.register input
{
	font-size: 150%;
	outline: 0;
	padding: 5px 0;
	text-align: center;

	font-family: 'Indie Flower', cursive;
}

.gc-rogue
{
	zoom:.82;
}
.gc-rogue .sprite.c-rogue{
	width: 130%;
}

.gc-rogue b{
	zoom:1.05;
}

.getclass{
    width:28%;
    height: 140px;
    text-align: center;
    align-items:center;
    justify-content:center;
    border-radius: 10px;
    font-size: 100%;
    color:#fff;
    display: flex;
    flex-direction: column;
    box-sizing:border-box;
    background: transparent;
    z-index: 1;
    box-shadow: none;
    margin: 5px;
    position: relative;
}
.getclass.selected{
	position: absolute;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url(assets/images/images/dungeon1.jpg);
	background-position: top center;
	background-size: auto 100%;
	width: 100%;
	height: 100%;
	top: 0;
	z-index: 2;
	margin: 0;
	padding: 0;
	justify-content: center;
}
.getclass.selected .sprite
{
	height: 300px;
}
.getclass.selected b{
	display: none;
}
.getclass.selected div{
	position: absolute;
	top: 20px;
	font-size: 200%;
}
.getclass.selected>p
{
	position: absolute;
	bottom: 0;
}
.getclass.selected div p
{
	font-size: 50%;
	margin: 0;
	line-height: 100%;
	position: static;
}
.getclass b{
    position: absolute;
    bottom: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: normal;
    font-size: 80%;
    box-sizing: border-box;
		opacity: .6;
}

.getclass .sprite
{
	pointer-events: all;
}

.startgame,
.getclass .startgame
{
	width: 200px;
	height: 60px;
	line-height: 60px;
	background: url(assets/images/bg/background5-1.jpg) center center;
	font-size: 120%;
	display: block;
	margin: 20px 0 0;
	text-align: center;
	color:#fff;
}

.body .list:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-image: radial-gradient(circle, transparent 0%, rgba(7, 9, 11, 0.356) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.getclass i
{
    width: 100%;
    font-size:25pt;
}

.shop .body,
.options .body,
.endlevel .body
{
    flex-direction: column;
}

.shop .body div,
.options .body div,
.endlevel .body div
{
	padding: 5px 0;
	color: #fff;
	margin-bottom: 0px;
}

.endlevel .body div
{

    font-weight: normal;
}

.page.endlevel
{
	z-index: 12;
  font-weight: bold;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)), url(assets/images/images/dungeon1.jpg) center center !important;
  background-size: auto 100%!important;
}

.separator
{
    margin-top: 10px;
		width: 100%;
}

.shop .body div.blocked
{
	color: #999;
	pointer-events: none;
}

.inventory{
    width:100px;
    height: 100px;
    text-align: center;
    align-items:center;
    justify-content:center;
    border-radius: 10px;
    font-size: 120%;
    color:#fff;
    display: flex;
    flex-direction: column;
    box-sizing:border-box;
    background: transparent;
    z-index: 1;
    border-width: 2px;
    border-style: dashed;
    border-color: #fffa;
    box-shadow: none;
    margin: 5px;
    position: relative;
}

.inventory .beltsize{
    top: -32px;
    position: absolute;
}

.item
{
    background: transparent;
		border: 0;
    width: 90px;
    height: 90px;
}

.item span
{
    font-weight: normal;
    font-size: 50%;
    padding: 0 0 5px;
}

.belt
{
    display: flex;
}

.belt .item
{
    position: relative;
    margin:0 5px;
}

.disabled
{
    pointer-events: none;
}

@media screen and (device-aspect-ratio: 40/71) {
    body {
        zoom:.8;
    }
}

.map .body
{
    flex-flow: wrap-reverse;
    width: 375px;
}

.map .round-cell{
    width:50px;
    height: 50px;
    text-align: center;
    align-items:center;
    justify-content:center;
    border-radius: 5px;
    font-size: 130%;
    color:#fff;
    display: flex;
    flex-direction: column;
    box-sizing:border-box;
    background: transparent;
    z-index: 1;
    border-width: 2px;
    border-style: dashed;
    border-color: #484848;
    box-shadow: none;
    margin: 5px;
    background: #333;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.map .round-cell.boss
{
    border-color: #fff;
}

.map .round-cell.boss:after,
.map .round-cell:after
{
    content: "";
    display: block;
    width: 10px;
    height: 1px;
    border-width: 2px;
    border-style: dashed;
    border-color: #484848;
    position: absolute;
    top: 20px;
    z-index: 1;
    right: -14px;
}

.map .round-cell.boss:before,
.map .round-cell:before
{
    content: "";
    display: block;
    width: 10px;
    height: 1px;
    border-width: 2px;
    border-style: dashed;
    border-color: #484848;
    position: absolute;
    top: 20px;
    z-index: 1;
    left: -14px;
}

.map .round-cell:first-child:before,
.map .round-cell:last-child:after
{
    display: none;
}

.map .round-cell.finished
{
    background: #676767;
}

.map .round-cell.current
{
    background: #d8510d;
}

.game .bottom
{
    min-height: 100px;
}

.sprite
{
    z-index: 1;
    pointer-events: none;
		background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center center;
		height: 40px;
		width: 40px;
		display: block;
}

.sprite.settings{
	background-image: url(assets/images/ui/cog.png);
}

.sprite.exit{
	background-image: url(assets/images/bg/door.png);
	background-size: 80% 80%;
}

.bottom .sprite.back,
.head .sprite.back,
.getclass.selected .sprite.back{
	background-image: url(assets/images/ui/arrow1.png);
	position: fixed;
	top:10px;
	left: 10px;
	width: 40px;
	height: 40px;
	pointer-events: all;
	z-index: 10;
}

.sprite.back span
{
	position: absolute;
	white-space: nowrap;
	padding-left: 45px;
	line-height: 43px;
	color: #fff;
	font-size: 120%;
}

.bottom .sprite.runeshop,
.bottom .sprite.top{
	background-image: url(assets/images/ui/stone.png);
	position: fixed;
	bottom:10px;
	width: 64px;
	height: 64px;
	pointer-events: all;
	z-index: 10;
}

.bottom .sprite.runeshop
{
	background-image: url(assets/images/runes/stone2.png);
	background-size: 80%;
	right:10px;
	color: gold;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	font-size: 100%;
}

.mirror
{
    display: none;
}
.top .body
{
	align-items: flex-start;
	flex-direction: column;
  height: calc(100% - 50px);
}
.top .classname
{
	display: flex;
	justify-content: center;
  width: 100%;
  box-sizing: border-box;
	align-items: flex-start;
}
.floorname
{
	color:#fff;
	font-size: 120%;
}
.top .classname .sprite
{
	width: 64px;
	height: 64px;
	position: static;
	border-radius: 50%;
	background-size: 200%;
	background-position: top center;
	border: 2px solid #222;
	background-color: #222;
	margin: 0 10px;
	pointer-events: all;
}

.top .classname .filter .sprite
{
	opacity: 1;
	border-color: #fff;
}
.top table
{
	color:#fff;
	width: 100%;
}
.top table td
{
	padding: 0 10px;
	text-align: right;
}
.top table .bold td
{
	font-weight: bold;
	color:gold;
}
.top table tr td:first-child
{
	text-align: left;
}

.top .body .list
{
	width: 100%;
	overflow: auto;
	height: calc(100% - 110px);
}

.shop .body {
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 50px;
}

.item {
    width: 74px;
    height: 74px;
    position: relative;
    margin: 0 5px;
}

.item div {
    font-size: 70%;
    line-height: 100%;
    text-align: center;
}

.item .sprite {
    height: 100%;
    width: 100%;
}

.item b {
    text-align: right;
    display: block;
    position: absolute;
    bottom: 3px;
    width: 100%;
    z-index: 1;
    color: gold;
    right: 0px;
}

.item.blocked
{
	opacity: .8;
}

.item.blocked .sprite
{
	filter: grayscale(1);
}

.item.blocked b
{
	color:#fff;
}

.map .body
{
	width: auto;
}

.map .list {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	background: url(assets/images/bg/background7.jpg);
	background-size: 100% auto;
	padding: 0px 20px 30px;
	box-sizing: border-box;
	box-shadow: inset 0 0 22px 4px #000d;
	border-radius: 2px;
}

.map .list .classname
{
	color:#3c3633;
	padding: 0;
	margin: 15px 0;
	font-weight: bold;
}
.map .list .classname.head{
	font-size: 170%;
}

.row{
	display: flex;
	flex-direction: row;
}

.cell
{
	pointer-events: none;
}

.cell.usable
{
	pointer-events: all;
}

.cell .sprite
{
	width:70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cell .sprite .point
{
	background: url(assets/images/map/point.png);
	background-size: 80%;
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	z-index: 2;
}
.cell .sprite .point-bg,
.cell .sprite .boss-round,
.cell .sprite .cross
{
	width: 50px;
	height: 50px;
	background: url(assets/images/bg/background7.jpg);
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 50%;
	position: absolute;
}
.cell .sprite .boss-round,
.cell .sprite .cross{
	width:70px;
	height: 70px;
	background-image: url(assets/images/spell/explosion.png);
	background-size: 70%;
	border-radius: 0;
	z-index: 4;
}
.cell .sprite .boss-round{
	background-image: url(assets/images/items/skull2.png);
	background-size: 40%;
	z-index: 3;
}


.cell.finished,
.cell.closed-round
{
	pointer-events: none;
}

.cell.closed-round .point-bg
{
	box-shadow: inset 0 0 0 40px #0005;
}

.got-items
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.got-items .item
{
	width: 44px;
	height: 44px;
}
