@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
@import url(http://fonts.googleapis.com/css?family=Titillium+Web:700);

html, body, #root {
	width:100%;
	height:100%;
	margin:0px;
	padding:0px;
	background:#167ac8;
  /* background:url(../images/bg.png) center bottom no-repeat #3ae8c4; */
  background:no-repeat #3ae8c4;
	background-size:contain;
	font-family: 'Titillium Web', sans-serif;
	font-weight:700;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#root {
	float: left;
}

header, footer, h1 {
	margin:0px;
	padding:0px;
	font-family: 'Titillium Web', sans-serif;
	font-weight:700;
}

header, footer, h1 {
	width:100%;
	float:left;
}

h1 {
	padding:0 0;
	font-size:25px;
	line-height:50px;
	float:left;
	margin:0px;
	color:#FFF;
}

footer,
header {
	padding:0 2%;
	width:96%;
	height:60px;
	font-size:22px;
	line-height:60px;
	position:relative;
	text-align:center;
	color:#fff;
	background:rgba(0,102,255,0.6)
}

header {
	height:50px;
	line-height:50px;
	position: relative;
}

header a.material-icons {
	position: absolute;
	width: 40px;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    background: #3ae8c4;
    border-radius: 10px;
    top: 5px;
	left: 5px;
	color: #333;
	text-shadow: none;
	font-weight: bold;
}

footer {
	position:fixed;
	left:0px;
	bottom:0px;
}

footer div {
	position:absolute;
	right:5px;
	top:5px;
	width:50px;
	height:50px;
	background-size:auto 100%;
	cursor:pointer;
}

#puzzle {
	width:100%;
	margin:auto;
	box-shadow:0 0 0 #ccc;
	float:left;
	position:fixed;
	left:0;
	top:0;
	margin:0;
	border:solid 0px #fff;
	border:solid 0px #fff;
	border-radius:0px;
	text-shadow:0 1px 1px #333;
	height:100%;
}

#puzzle footer strong {
	font-weight:700;
}

#puzzle footer span {
	width:40px;
	height:40px;
	line-height:40px;
	text-align:center;
	background:#FFF;
	margin:10px;
	display:inline-block;
}


#puzzle footer span {
	color:#333;
}

#puzzle footer a {
	margin:5px auto;
	text-decoration:none;
	color:#fff;
	background:#0CF;
	display:inline-block;
	line-height:50px;
	padding:0 10px;
}

.puzzle-game {
	float:left;
	width:100%;
	height: calc(100vh - 110px);
	background:rgba(255,255,255,0);
	display:block;
	left:0px;
	top:0px;
	padding: 0;
	box-sizing: border-box;
	position: relative;
}

.puzzle-game .width-area {
  height: calc(100vh - 130px);
}

.puzzle-game.active {
	display:block;
}

.puzzle-area {
  position: absolute;
  
  margin: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.puzzle-item {
	width:270px;
	float:left;
	margin:0 0 0 0;
	position:relative;
	padding:25px 15px 25px 15px;

}

.puzzle-item-2 {
	float:right;
	margin:0 0 0 0;
}

.puzzle-area div {
  width:33.33%;
  background:rgba(255,255,255,0.5);
  box-shadow:0 0 20px #ccc inset;
  float:left;
  margin:0;
  outline:solid 1px rgba(0,0,0,0.5);
  position:relative;
  cursor:pointer;
  font-size:35px;
  text-align:center;
  box-sizing: border-box;
}

.puzzle-area[data-size='16'] div {
  width: 25%;
}



.puzzle-area div img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;  
  -ms-transform: scale(0);
  -webkit-transform: scale(0);
  transform: scale(0);  
  transition: transform 0.3s;
}

.puzzle-area div.on img {
	transition: transform 0.3s;
	-ms-transform: scale(1);
	-webkit-transform: scale(1);
	transform: scale(1);
}

.puzzle-area div.done img {
	-ms-transform: scale(1);
	-webkit-transform: scale(1);
	transform: scale(1);
}

.puzzle-area div.no-done img {
	transition: transform 0s;
	-ms-transform: scale(1);
	-webkit-transform: scale(1);
	transform: scale(1);
}


.puzzle-item div.ui-draggable-dragging {
	z-index:10;
	box-shadow:0 0 20px #ccc inset, 0 0 10px #ccc;
	opacity:1;
	outline:solid 0px #fff;
}
.puzzle-item div {
	cursor:pointer;
	float:left;
	margin:5px;
	outline:solid 0px #fff;
	
}

.puzzle-area div.hide {
	visibility:hidden;
}

.puzzle-area div.none {
	background-image:none;
	visibility:hidden;
}

.message {
	position:fixed;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	background: rgba(0, 0, 0, 0.5);
}

.message .message-box {
	width:280px;
	height:100px;
	padding:10px 10px 40px 10px;
	background: #6869e8;
	border-radius:15px;
	position:fixed;
	left:50%;
	top:50%;
	transform: translate(-50%, -50%);	
	box-shadow: 0px 0px 20px #333;
}

.message .message-box div {
    width: 100%;
    float: left;
	text-align: center;
	position: relative;	
	background: #fff;
	border-radius:10px;
	padding: 10px 0 0 0;
}

.message .message-box div::before,
.message .message-box div::after {
	background: #6869e8;
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 100%;
	position: absolute;
	left: 10px;
	top: 10px;
}

.message .message-box div::after {
	left: auto;
	right: 10px;
}

.message p {
	float: left;
	width: 100%;
	margin: 0;
	line-height: 40px;
	text-align: center;
	font-size:20px;
	color: #e00049;
	text-shadow:none;
}
.message h4 {
	font-size:24px;
	font-weight:normal;
	float:left;
	width:100%;
	margin:0px;
	line-height:30px;
	text-align:center;
	font-family: 'Titillium Web', sans-serif;
	font-weight:700;
	color: #e00049;
	text-shadow:none;
}



.message div button {
	font-size: 14px;	
	border-radius:10px;
	background:#21d49c;
	color:#FFF;
	font-size:16px;
	font-weight: bold;
	text-align:center;
	border:solid 1px #1d648f;
	border-width: 1px 1px 0px 1px;
	margin:5px;
	cursor:pointer;
	padding: 8px 18px;
	text-transform: uppercase;
	position: relative;
	top: 20px;
	box-shadow: 0px 2px 2px #333;
	font-family: 'Titillium Web', sans-serif;
	outline: none;
}



.message div a.none {
	opacity:0.5;
	cursor:default;
}

.popup-box {
	float: left;
	width: calc(100% - 60px);
	margin: 30px;
	height: calc(100% - 60px);
	background: #fff;
	border: solid 10px #167ac8;
	padding: 5px;
	border-radius: 20px;
	box-sizing: border-box;
}  

.popup-box div {
	width: 70px;
    float: left;
    height: 70px;
    background: #f1f1f1;
    border-radius: 10px;
    border: solid 1px #167ac8;
    padding: 0;
	box-sizing: border-box;
	margin: 5px;
	overflow: hidden;
	font-size: 16px;	
}

.popup-box div b {
	text-align: center;
	width: 100%;
	float: left;
	line-height: 30px;
	background: #ccc;
	text-transform: uppercase;
	font-size: 12px;
}

.popup-box div span {
	text-align: center;
	width: 100%;
	float: left;
	line-height: 40px;
}

.popup-box p {
	float: left;
    width: 100%;
    margin: 0;
    line-height: 50px;
    text-align: center;
	background: #f1f1f1;
	
}

.popup-box p button {
	font-family: 'Titillium Web', sans-serif;
	color: #fff;
	padding: 5px 10px;
	background: #167ac8;
	border: 0;
	text-transform: uppercase;
	border-radius: 5px;
	cursor: pointer;
}