/*desktop-first*/
*{
	font-family:sans-serif,Microsoft JhengHei;
	box-sizing: border-box;
}
html{	
	font-size: 100%;
}
h2{
	text-align: center;
}
body{
	background-color: #7DDBF4;
	margin: 0;
	padding: 0;
	font-size: 1em;
	background-image: url("../images/pixel_cloud.svg");
	background-size: 961px 634px;
	background-repeat: repeat;
	background-position: center;
	animation-name: cloud;
	animation-duration: 10s;
	animation-iteration-count: infinite;
}
@keyframes cloud {
  0%   {
    background-position: 0 0;
  }
  50%  {
    background-position: 0 -13%;
  }
  100% {
    background-position: 0 0;
  }
}
table,tbody,tr,td{
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid #999999;
}
.swal_bigger_button{
	padding-left: 3em !important;
	padding-right: 3em !important;
}
#content_right.gamewin{
	margin: 35px;
}
#equal_sign{
	text-align: center;
	font-size: 5em;
	margin: 0;
	padding: 0;
	line-height: 1em;
	transform-origin: center center;
	transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -webkit-transform-origin: center center;
  -moz-transform-origin: center center;
  -ms-transform-origin: center center;
  -o-transform-origin: center center;
}
#title_large,#title_small{
	margin: 10px 0;
	height: 100px;
}
#title_large img,#title_small img{
	height: 100%;
	width: auto;
}
.cursor-custom {
	cursor: auto;
}
#content{
	display: flex;
		flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
	margin-bottom: 150px;/*預留給ground*/
}
#content_left{
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	text-align: center;
	justify-content: center;
	flex-grow: 0;
	z-index: 2;
	margin: 20px;
}
#content_right{
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	flex-grow: 0;
}
#gamewin{
	position: relative;
	width: 500px;
	padding-top: 20px;
}
#final_text{
	font-size: 2em;
	word-break: break-all;
	margin: 10px;
	padding: 10px;
	background-color: white;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
	text-align: justify;
	font-family: Courier New;
	font-weight: bold;
}
#palette_container{
	position: relative;
	width: 500px;
	margin: 10px 0;
	padding: 30px 20px;
	z-index: 0;
	box-shadow: 10px 5px rgba(0, 0, 0, 0.3);
	background-color: white;
	border-top: 10px solid #ededed;
	border-bottom: 10px solid #ededed;
	border-radius: 2.1em;
	z-index: -2;
}
#paletteBtnTitle {
	display: flex;
	width: 100%;
	justify-content: space-around;
	color: #999999;
	font-size: 2.6em;
	text-align: center;
}
#paletteBtnTitle div{
	display: inline-block;
	width: 16%;
	height: 100%;
	margin: 10px 0;
}
#paletteBtnTitle.palette-number-btn{
	color: black;
}
#paletteBtnTitle.palette-number-btn *{
  background: linear-gradient(#d2d2d3,white);
  box-shadow: 0 5px #b2b2b2;
  border-radius: 10%;
  border: 1px solid #d3d3d3;
  cursor: pointer;
}
#paletteBtnTitle.palette-number-btn *[data-checked="true"]{
  background: linear-gradient(#ff8316,#d5226e);
  color: white;
}
#paletteBtnTitle.palette-number-btn *:hover{
  background: linear-gradient(#fbb03b,#d57e22);
  color: white;
}
#hint_btn{
	display: block;
	position: relative;
	width: 57px;
	height: 59px;
	cursor: pointer;
	box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	z-index: 4;
}
#hint_btn:hover{
	box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}
.hint_content{
	display: block;
	position: relative;
	width:500px;
	margin: 5px 0 10px 0;
	z-index: 4;
	filter: drop-shadow(10px 5px rgba(0, 0, 0, 0.3));
}
.hint_content p{
	padding: 20px;
	font-size: 1.5em;
	background-color: #ebffde;
	color: #0071bc;
	border-radius: 30px;
	margin: 0;
}
.hint_content .arrow-up{
  width: 0; 
  height: 20px; 
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;  
  border-bottom: 20px solid #ebffde;
  margin: 0 auto;
}
#paletteBtnColor{
	margin: 10px 0;
	display: flex;
	width: 100%;
	justify-content: space-around;
}
#paletteBtnColor label,
#paletteBtnColor div{
	display: inline-block;
	width: 14.2%;
	height: 0;
	padding-bottom: 12%;
	border: 1px solid gray;
}
#paletteBtnColor input{
	display: none;
}
#paletteBtnColor.palette-color-btn label{	
	cursor: pointer;
	border: 3px solid black;
}
#paletteBtnColor.palette-color-btn input:checked +label{
	border-color: brown;
	outline: 2px solid red;
}
#paletteBtnColor.palette-color-btn input:hover +label {
	border-color: yellow;
}
#paletteBtnColor .black{
	background-color: black;
	color:  white;
}
#paletteBtnColor .white{
	background-color: white;
	color: black;
}
#paletteBtnColor .red{
	background-color: red;
	color:  white;
}
#paletteBtnColor .green{
	background-color: #00C613;
	color:  white;
}
#paletteBtnColor .blue{
	background-color: blue;
	color:  white;
}
#paletteBtnColor .yellow{
	background-color: yellow;
	color:  white;
}
.draw-area{
	position: relative;
	color: #999999;
	margin: 50px 10px;
	background-color: white;
	border: 20px solid white;
	box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
	/*z-index: 2;*/
}
.draw-area.no-book-ring{
	margin-top: 40px;
}
.draw-area.no-book-ring .square{
	padding-top: 0;
}
.book-ring,
.book-ring-shadow {
	display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
  width: 100%;
	position: absolute;
	top: -60px;
	left: 0;
	height: 8%;
	min-height: 35px;
}
.book-ring .ring,
.book-ring-shadow .ring{
	margin: 12px;
	background-color: #fbb03b;
	border-radius: 40px;
	width: 15px;
	height: 100%;
}
.book-ring-shadow{
	position: absolute;
	top: -50px;
	left: 10px;
	z-index: -5;
}
.book-ring-shadow .ring{
	background-color: rgba(0, 0, 0, 0.3);
}
.draw-area .square{
	font-size: 2.5em;
	font-weight: bold;
	width: 100%;
	padding-top: 0.5em;
}
.draw-area table{
	margin: 0 auto;
	text-align: center;
	border-spacing: 0;
	border: 1px solid #999999;
	background-color: lightgrey;
}
.draw-area table tr td{
	border: 1px solid #999999;
	background-color: lightgrey;
}
.draw-area table tr td div {
	display: table-cell;
	padding: 10px 30px;
	vertical-align: middle;
}
.draw-area #square-hint-text{
	font-size: 0.8em;
	text-align: center;
	color: #fbb03b;
}
/* .showcase: 加密關卡-完成圖 -- start */
.showcase.draw-area{
	border: 15px solid white;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
	margin: 20px;
}
.showcase.draw-area .square{
	font-size: 1em;
}
.showcase.draw-area table tr td div{
	padding: 4px 12px;
}
.showcase .book-ring,
.showcase .book-ring-shadow {
	top: -35px;
	min-height: 30px;
}
.showcase .book-ring .ring,
.showcase .book-ring-shadow .ring{
	margin: 5px;
}
.showcase .book-ring-shadow{
	left: 2px;
	z-index: -5;
}
/* .showcase: 加密關卡-完成圖 -- end */
.btn-draw-area{
	margin: 5px;
	padding: 10px 5px;
}
.admin{
	float: right;
}
.admin .btn-draw-area{
	color: darkmagenta;
}
#ground{
	text-align: left;
	position: fixed;
	bottom: 0;
	margin: 0;
	width: 100%;
	height: 120px;
	background-image: url("../images/pixel_land.svg");
	background-repeat: repeat-x;
	background-size: 150px;
	background-position: bottom;
	z-index: -1;
}
#ground #logo{
	position: absolute;
	bottom: 5px;
	display: inline-block;
	width: 80px;
	height: 80px;
	margin: 5px 5px 5px 20px;
	background-image: url("../images/pixel_edu_logo.svg");
	background-size: cover;
	background-repeat: no-repeat;
}
#ground #owl_painting{
	position: absolute;
	left: 100px;
	bottom: 5px;
	margin: 5px 5px 5px 20px;
	width: 170px;
	height: 90px;
}
#btn_play_again{
	cursor: pointer;
	display: inline-block;
	background-image: url(../images/pixel_again_btn1.svg);
	background-repeat: no-repeat;
	background-size: contain;
	width: 200px;
	height: 50px;
	margin: 20px 10px 20px 10px;
}
#btn_play_again:hover{
	background-image: url(../images/pixel_again_btn2.svg);
}
#gamewin_text{
	padding: 40px 20px 40px 20px;
	width: 100%;
	height: auto;
	font-size: 2.5em;
	border-radius: 50%;
	background-color: #ffff8d;
	text-align: center;
}
.btn-hide-text,
.btn-hide-color{
	cursor: pointer;
	display: inline-block;
	background-image: url(../images/pixel_hide_btn1.svg);
	background-repeat: no-repeat;
	background-size: contain;
	width: 200px;
	height: 50px;
	margin: 20px 10px 20px 10px;
}
.btn-hide-color{
	background-image: url(../images/pixel_show_color_btn1.svg);
}
.btn-hide-text:hover{
	background-image: url(../images/pixel_hide_btn2.svg);
}
.btn-hide-text.showStatus{
	background-image: url(../images/pixel_show_btn1.svg);
}
.btn-hide-text.showStatus:hover{
	background-image: url(../images/pixel_show_btn2.svg);
}
.btn-hide-color:hover{
	background-image: url(../images/pixel_show_color_btn2.svg);
}
.btn-hide-color.showStatus{
	background-image: url(../images/pixel_hide_color_btn1.svg);
}
.btn-hide-color.showStatus:hover{
	background-image: url(../images/pixel_hide_color_btn2.svg);
}
#img_finish{
	display: block;
	margin: 10px auto;
	background-image: url(../images/finish.gif);
	background-repeat: no-repeat;
	background-size: contain;
	width: 310px;
	height: 200px;
}
/*隱藏內容*/
.hide{
	display: none !important;
}
/*禁止使用者拖曳選取內容*/
.preventUserSelect{	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
/********************** media  query **********************/
@media only screen and (min-width:1280px){
	#title_small{
		display: none;
	}
}
/* 平板橫式屬於這裡： */
@media only screen and (max-width:1280px){
	#title_large{
		height: 80px;
	}
	#title_small{
		display: none;
	}
	.draw-area{
		margin: 40px 10px;
	}
	.draw-area.no-book-ring{
		margin-top: 10px;
	}
	.draw-area table tr td div{
		padding: 8px 20px;
	}
	.s-hide{
		display: none;
	}
	#gamewin_text{
		font-size: 1.5em;
	}
	.hint_content p{
		font-size: 1.5em;
	}
	#gamewin,#palette_container,.hint_content{
		width: 400px;
	}
	#img_finish{
		width: 250px;
	}
	#btn_play_again,.btn-hide-text,.btn-hide-color{
		margin: 5px 0 5px 0;
		width: 150px;
	}
	.draw-area #square-hint-text{
		font-size: 0.6em;
	}
	#paletteBtnTitle{
		font-size: 2em;
	}
	#paletteBtnColor label{
		height: 35px;
	}
	#hint_btn{
		width: 35px;
		height: 35px;
	}
}
@media only screen and (max-width:1024px){
	.draw-area .square{
		font-size: 2em;
	}
}

/* 平板直式屬於這裡：  */
@media only screen and (max-width:960px) {
	#title_large{
		height: 80px;
		width: 100%;
	}
	#title_small{
		display: none;
	}
	#content_left{
		flex-direction: row;
	}
	.draw-area{
		margin-top: 30px;
	}
	.draw-area.no-book-ring{
		margin-top: 10px;
	}
	.draw-area table tr td div{
		padding: 8px 20px;
	}
	.s-hide{
		display: none;
	}
	#content_left{
		margin: 5px 0;
	}
	.showcase.draw-area{
		margin: 20px;
	}
	.showcase.draw-area table tr td div{
		padding: 0 10px;
	}
	#gamewin_text{
		font-size: 1.5em;
	}
	.hint_content p{
		font-size: 1.5em;
	}
	#gamewin,#palette_container,.hint_content{
		width: 450px;
	}
	#img_finish{
		width: 250px;
	}
	#btn_play_again,.btn-hide-text,.btn-hide-color{
		margin: 5px 0 5px 0;
		width: 150px;
	}
	#palette_container{
		padding: 20px 10px;
	}
	#paletteBtnTitle{
		font-size: 2em;
	}
	#paletteBtnColor label{
		height: 45px;
	}
	#hint_btn{
		width: 40px;
		height: 40px;
	}
	#ground{
		height: 80px;
		background-size: 80px;
	}
	#ground #logo{
		height: 50px;
		width: 50px;
	}
	#ground #owl_painting{
		left: 70px;
		width: 130px;
		height: auto;
	}
}

/* 手機直式屬於這裡： */
@media only screen and (max-width:768px) ,
only screen and (max-height:768px) and (orientation: portrait){
	#title_large{
		height: 50px;
		margin: 5px 0;
		width: auto;
	}
	#content_left{
		flex-direction: column;
	}
	#content_right.gamewin{
		margin: 5px;
	}
	#content{
		margin-bottom: 50px;/*預留給ground*/
	}
	#title_small{
		display: none;
	}
	.draw-area .square{
		font-size: 1.5em;
	}
	.draw-area{
		margin: 30px 0 5px 0;
		border-width: 15px;
	}
	.draw-area table tr td div{
		padding: 4px 12px;
	}
	.draw-area #square-hint-text{
		font-size: 0.65em;
	}
	.book-ring,
	.book-ring-shadow{
		min-height: 25px;
		top: -40px;
	}
	.showcase .book-ring,
	.showcase .book-ring-shadow{
		min-height: 25px;
		top: -30px;
	}
	.showcase.draw-area{
		margin: 20px 0 10px 0;
	}
	.showcase.draw-area{
		font-size: 1em;
	}
	.showcase.draw-area table tr td div{
		padding: 0 8px;
	}
	.s-hide{
		display: none;
	}
	.ss-hide{
		display: none;
	}
	#content_left{
		margin: 5px;
	}
	#gamewin_text{
		font-size: 1.2em;
	}
	#final_text{
		font-size: 1.5em;
	}
	#gamewin,#palette_container,.hint_content{
		width: 350px;
	}
	.hint_content p{
		padding: 10px;
		font-size: 1.2em;
	}
	#img_finish{
		width: 180px;
		height: 100px;
	}
	#btn_play_again,.btn-hide-text,.btn-hide-color{
		margin: 5px 0 5px 0;
		width: 100px;
	}
	#palette_container{
		padding: 0 25px;
		margin: 5px 0;
		border-radius: 1em;
	}
	#paletteBtnTitle.palette-number-btn *{
		box-shadow: 0 3px #b2b2b2;
	}
	#paletteBtnTitle div{
		margin: 5px 0;
	}
	#paletteBtnTitle{
		font-size: 1.8em;
	}
	#paletteBtnColor{
		margin: 5px 0;
	}
	#paletteBtnColor label{
		height: 30px;
		border-width: 2px;
	}
	#hint_btn{
		width: 25px;
		height: 25px;
	}
	#ground{
		height: 80px;
		background-size: 80px;
	}
	#ground #logo{
		height: 50px;
		width: 50px;
	}
	#ground #owl_painting{
		left: 70px;
		width: 130px;
		height: auto;
	}
}

/* 手機橫式屬於這裡： */
@media only screen and (max-width:320px) ,
only screen and (max-height:768px) and (orientation: landscape) and (max-width:1000px){
	#title_large{
		height: 40px;
		width: 200px;
		margin: 5px 0;
	}
	#title_small{
		display: none;
	}
	#content_left{
		flex-direction: column;
	}
	#content_right.gamewin{
		margin: 5px 30px;
	}
	#gamewin_text{
		font-size: 0.8em;
		padding: 10px 5px;
	}
	#final_text{
		font-size: 1em;
		margin: 0;
	}
	#gamewin,#palette_container,.hint_content{
		width: 230px;
	}
	.hint_content p{
		padding: 5px;
		font-size: 1em;
		border-radius: 10px;
	}
	#equal_sign{
		font-size: 2em;
		line-height: 1em;
	}
	#img_finish{
		width: 150px;
		height: 80px;
	}
	#btn_play_again,.btn-hide-text,.btn-hide-color{
		margin: 5px 0 5px 0;
		width: 100px;
	}
	#content_left{
		margin: 5px;
	}
	#paletteBtnColor{
		margin: 5px 0;
	}
	#paletteBtnTitle div{
		margin: 5px 0;
	}
	.book-ring,
	.book-ring-shadow{
		top: -50px;
	}
	.showcase .book-ring,
	.showcase .book-ring-shadow{
		min-height: 25px;
		top: -30px;
	}
	.showcase.draw-area{
		margin: 20px 0 0 0;
		font-size: 0.5em;
		border-width: 10px;
	}
	.showcase.draw-area table tr td div{
		padding: 0 5px;
	}
	#paletteBtnTitle{
		font-size: 1.5em;
	}
	#palette_container{
		padding: 10px;
		margin: 5px 0;
		border-width: 5px;
		border-radius: 1em;
	}
	#paletteBtnColor label{
		height: 23px;
	}
	#hint_btn{
		width: 25px;
		height: 25px;
	}
	.draw-area{
		margin: 25px 30px;
	}
	.draw-area .square{
		width: 100%;
		max-width: 400px;
		margin: 0;
		font-size: 1.1em;
	}
	#content_right.gamewin .draw-area{
		margin-top: 15px;
	}
	#content_right.gamewin .draw-area.no-book-ring{
		margin-top: 0;
	}
	.draw-area table tr td div{
		padding: 0.5px 12px;
	}
	.draw-area #square-hint-text{
		font-size: 0.8em;
	}
	.s-hide{
		display: none;
	}
	.ss-hide{
		display: none;
	}
	#ground{
		background-size: 70px;
		height: 70px;
	}
	#ground #logo{
		width: 50px;
		height: 50px;
	}
	#ground #owl_painting{
		height: 50px;
		width: auto;
	}
}