/*-----------------------------------------------------
	mahjong
-----------------------------------------------------*/

#location_mahjong {
	background: transparent url(../images/puzzles/mahjong/background.jpg) no-repeat scroll 0 0;
}

#mahjongTiles {
	position: absolute;
	top: 210px;
	left: 157px;
}

/*-----------------------------------------------------
	levels
-----------------------------------------------------*/

#location_mahjong .level {
	position: absolute;
	top: 0;
	left: 0;
	width: 350px;
	pointer-events: none;
}

#location_mahjong .level2 {
	position: absolute;
	top: -7px;
	left: 1px;
	width: 350px;
}

#location_mahjong .level3 {
	position: absolute;
	top: -12px;
	left: 2px;
	width: 350px;
}

#location_mahjong .level1 .area {
	background-color: rgba(0,0,0,0.2);
}

#location_mahjong .level2 .area {
	background-color: rgba(0,0,0,0.1);
}

#location_mahjong .level3 .area {
	background-color: rgba(0,0,0,0);
}

/*-----------------------------------------------------
	tiles
-----------------------------------------------------*/

#location_mahjong .tile {
	width: 55px;
	height: 55px;
	float: left;
	margin-right: 3px;
	margin-bottom: 2px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: -4px 10px 2px 3px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: -4px 10px 2px 3px rgba(0, 0, 0, 0.5);
	-ms-box-shadow: -4px 10px 2px 3px rgba(0, 0, 0, 0.5);
	box-shadow: -4px 10px 2px 3px rgba(0, 0, 0, 0.5);
	position: relative;
	pointer-events: auto;
	background: transparent url("../images/puzzles/mahjong/tiles.png") no-repeat scroll 0 1px;
}

#location_mahjong .tile1 {
	background-position: 0px 1px;
}

#location_mahjong .tile2 {
	background-position: -55px 1px;
}

#location_mahjong .tile3 {
	background-position: -110px 1px;
}

#location_mahjong .tile4 {
	background-position: -165px 1px;
}

#location_mahjong .tile5 {
	background-position: -220px 1px;
}

#location_mahjong .area {
	position: absolute;
	top: 0;
	right: 0;
	width: 55px;
	height: 55px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;

	-webkit-box-shadow: inset 4px -5px 1px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: inset 4px -5px 1px rgba(0, 0, 0, 0.4);
	-ms-box-shadow: inset 4px -5px 1px rgba(0, 0, 0, 0.4);
	box-shadow: inset 4px -5px 1px rgba(0, 0, 0, 0.4);
}

#mahjongTiles .free {
	cursor: url(../images/ui/cursor_arrow_pointer.png), pointer;
}

#mahjongTiles .free:active .area,
#location_mahjong .free:hover .area {
	background-color: rgba(255,255,255,0.25);
}

#mahjongTiles .free.selected .area {
	background-color: rgba(200,255,0,0.25);
}

#mahjongTiles .removed {
	visibility: hidden;
}



/*-----------------------------------------------------
	columns and special
-----------------------------------------------------*/

#location_mahjong .column {
	float: left;
}

#location_mahjong .column-2 {
	margin-top: -27px;
}

#location_mahjong .column-4 {
	margin-top: -87px;
}

#location_mahjong .column-3 {
	margin-top: -55px;
}

#location_mahjong .column .tile {
	float: none;
}

#location_mahjong .level3 .tile1 {
	margin-left: 57px;
	-webkit-box-shadow: -9px 13px 3px 4px rgba(0, 0, 0, 0.6);
	-moz-box-shadow: -9px 13px 3px 4px rgba(0, 0, 0, 0.6);
	-ms-box-shadow: -9px 13px 3px 4px rgba(0, 0, 0, 0.6);
	box-shadow: -9px 13px 3px 4px rgba(0, 0, 0, 0.6);
}

#location_mahjong .level3 .tile5 {
	margin-left: 117px;
	-webkit-box-shadow: -10px 20px 3px 1px rgba(0, 0, 0, 0.7);
	-moz-box-shadow: -10px 20px 3px 1px rgba(0, 0, 0, 0.7);
	-ms-box-shadow: -10px 20px 3px 1px rgba(0, 0, 0, 0.7);
	box-shadow: -10px 20px 3px 1px rgba(0, 0, 0, 0.7);
}

/*-----------------------------------------------------
	mahjong bowls
-----------------------------------------------------*/

.mahjongBowl {
	position: absolute;
}

#location_mahjong .mahjongBowl .tile {
	margin-right: -24px;
	margin-bottom: -16px;
	-moz-transform: rotate(12deg) scale(0.75);
	-webkit-transform: rotate(12deg) scale(0.75);
	-o-transform: rotate(12deg) scale(0.75);;
	-ms-transform: rotate(12deg) scale(0.75);;
	transform: rotate(12deg) scale(0.75);;
}
#location_mahjong .mahjongBowl .tile:nth-child(2n+1) {
	margin-right: -16px;
	margin-bottom: -24px;
	-moz-transform: rotate(-6deg) scale(0.75);
	-webkit-transform: rotate(-6deg) scale(0.75);
	-o-transform: rotate(-6deg) scale(0.75);;
	-ms-transform: rotate(-6deg) scale(0.75);;
	transform: rotate(-6deg) scale(0.75);;
}


#mahjongBowl1 {
	-moz-transform: rotate(31deg);
	-webkit-transform: rotate(31deg);
	-o-transform: rotate(31deg);
	-ms-transform: rotate(31deg);
	transform: rotate(31deg);
	height: 97px;
	left: 17px;
	top: 13px;
	width: 105px;
}

#mahjongBowl2 {
	height: 110px;
	width: 105px;
	left: 12px;
	top: 250px;
}

#mahjongBowl3 {
	height: 62px;
	left: 246px;
	top: -14px;
	width: 145px;
}

#mahjongBowl4 {
	-moz-transform: rotate(-40deg);
	-webkit-transform: rotate(-40deg);
	-o-transform: rotate(-40deg);
	-ms-transform: rotate(-40deg);
	transform: rotate(-40deg);
    height: 100px;
    right: 23px;
    top: 18px;
    width: 100px;
}

#mahjongBowl5 {
	-moz-transform: rotate(20deg);
	-webkit-transform: rotate(20deg);
	-o-transform: rotate(20deg);
	-ms-transform: rotate(20deg);
	transform: rotate(20deg);
	height: 85px;
	right: -5px;
	top: 256px;
	width: 115px;
}
