@font-face {
    font-family: "Noto Sans TC";
    src: url("../fonts/NotoSansTC-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

*{-webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
a,html,body,h1,h2,h3,h4,ul{
    -webkit-overflow-scrolling : touch !important;
    margin:0;
    padding: 0;
    font-family:Arial,"微軟正黑體";
    font-size: 1rem;
    list-style-type:none;
    text-decoration:none;
    
}
body{margin:0;  font-family:Arial,"微軟正黑體";font-size:0.75em; position: relative;overflow-x: hidden; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(0); 
	}
	50% {
		transform: translateY(-20px); 
	}
}


.puz_box{width: 100%;height: auto;}

#puz, #puzz {
 
  border-radius:var(--border-radius) 0 var(--border-radius) 0;    
  user-select:none;
}



#puz {
  width:1600px;
  min-height: 600px;
  position: relative;
  margin: 0 auto;
  border-radius: 10px;
padding: 10px;
max-width: 100%;
  
 padding: 50px 50px 80px 50px;
 
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
  background-image: url(../images/02.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
margin: auto;
  text-align: center;
}

.puz-title{font-size: 3.0em;font-weight: bold;color: #0050e6;margin: 15px auto;font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  
  font-style: normal;;
  font-weight: 900;
  font-style: normal;}
.puz-list{width: 300px;height: auto;max-width: 100%;margin: 0 100px;background-color: #7ac1df;display: grid;border-radius: 50px;padding: 20px;position: relative; flex-grow: 1; 
  display: flex; 
  justify-content: center;
  border: 2px solid transparent;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  text-align: left;
 
}




.puz-answer{font-size: 2em;font-weight: bold;color: #000000;margin: 15px auto;display: block;}

.puz-list-text{font-size: 2.0em;font-weight: bold;line-height: 1.5em;display: flex;align-self: center;font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;text-align:justify;margin: 0;}
.puz-list-span{position: absolute;background-color: #23a0d6;padding: 0 0 0 0;border-radius: 50px;font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;top: -50px;left: -45px;font-size: 4.5em;color: #ffffff;width: 80px;height: 80px;text-align: center;}
.puz-list-box{display: flex;min-height: 150px;height: auto;margin: 90px 0 10px;}
.puz-list--color{background-color: #f9b588;}
.puz-list-span--color{background-color: #f08c49;}

.answer-li--color01{color: #969696;}
.answer-li--color02{color: #f52d13;}

.puz-list {
 
  border: 2px solid transparent;
  transition: border 0.3s;
}

.puz-list.active {
  border: 5px solid rgb(255, 230, 0); /* or any color you prefer */
}


.index-map__btn01{width: 200px;height: 80px;border: 0;margin: auto;font-family: "Noto Sans TC", sans-serif;max-width: 100%;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;text-align: center;cursor: pointer;font-size: 2.0em;border-radius: 50px;background:radial-gradient(circle farthest-corner at left,#a7d6e0,#8ba8cd);}
.index-map__btn01:hover{background:radial-gradient(circle farthest-corner at left,#9bdfee,#6ea0e2)}

.answer-box{width: 100%;height: auto;margin: auto;}
.answer-box__title{font-size: 1.8em;color: #1a1919;text-align: left;padding: 10px 15px;background-color: #abe9e4;font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;text-align:justify;}
.answer-box_list{width: 95%;height: auto;margin: 15px auto;}
.answer-content{width: 100%;height: auto;margin: 15px auto;text-align: left;display: flex;align-items: baseline;}
.answer-content span{font-size: 2em;vertical-align: super;font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;}
.answer-content img{width: 30px;height: 30px;margin: 0 10px 0 0;}
.answer-li{font-size: 1.5em;line-height: 1.6em;font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;}
.answer-content ul{display: inline-block;vertical-align: middle;margin: 0 25px;width: calc(100%/2 - -370px);}
.answer-li--color{color: #1152e5 ;}

.answer-img{position: absolute;right: -16%;top: 55%;width: 350px;height: auto;max-width: 100%;}

.main {
	width: 100%; height: calc(100% - 85px);  padding-bottom: 150px; clear: both; position: relative;
}
.bounce {
	animation: bounce 0.5s infinite; 
	display: inline-block;
	margin: 20px;
	padding: 20px;
	background-color: #4CAF50;
	color: white;
	font-size: 20px;
	border-radius: 10px;
}

.slide-in-left {
	animation: fadeIn 1.0s ease-in-out forwards;
	opacity: 0;
}
.slide-in-left01{
	animation: fadeIn 3.0s ease-in forwards;
    opacity: 0; 

}


.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
    opacity: 0; 
}




.puz-list {
	opacity: 0; /* 初始狀態：不可見 */
    visibility: hidden; /* 初始狀態：不可見 */
    transform: perspective(2500px) rotateX(90deg); /* 初始狀態 */
    transform-origin: center;
    transition: opacity 0s 0.3s, visibility 0s 0.3s, transform 0.5s 0.6s ease-in-out; /* 調整延遲 */
}
.puz-list.show {
    opacity: 1; /* 最終狀態：可見 */
    visibility: visible; /* 最終狀態：可見 */
    transform: perspective(2500px) rotateX(0); /* 最終狀態 */
}   


.puz-list:hover {
 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.index-map__btn01 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.index-map__btn01:hover {
    transform: scale(1.1); 
   
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}







.clearfix {
	clear: both;
}


img {
	cursor: move;
}
.start {
	left: 0px; top: 0px; right: 0px; bottom: 0px; position: fixed; z-index: 100;
}
.welcome .welcome_bg {
	left: 50%; top: 50%; width: 900px; position: absolute; transform: translate(-50%, -50%); object-fit: contain; -webkit-transform: translate(-50%, -50%);
}
.btn {
	padding: 0px; border: 0px currentColor; transition:0.3s; border-image: none; left: 50%; text-align: center; position: absolute; z-index: 999; cursor: pointer; transform: translate(-50%, -50%); background-color: transparent; -webkit-transform: translate(-50%, -50%); -webkit-transition: all ease .3s;
}


.btn01 {
	padding: 0px; border: 0px currentColor; transition:0.3s; border-image: none; left: 50%; text-align: center; position: absolute; z-index: 999; cursor: pointer; transform: translate(-50%, -50%); background-color: transparent; -webkit-transform: translate(-50%, -50%); -webkit-transition: all ease .3s;

}

.btn01 img{width: 250px;height: auto;}




.btn-start01 {
	top: 97%;
	left: 38%;
}
.btn-back01 {
	top: 97%;
	right: 58%;
}

.btn:hover {
	transform: translate(-50%, -65%);
}

.btn01:hover {
	transform: translate(-50%, -65%);
}



.btn-start {
	top: 72%;
	left: 50%;
}
.btn-back {
	top: 72%;
	right: 58%;
}
.btn img,.btn01 img {
	cursor: pointer;
}


.wrapper {
	overflow: hidden;
}


.wrapper:before{
    content: "";
    position: fixed;
    background: url(../images/bg.jpg) 50% 50% no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.sr-only{margin:80px auto 0;text-align: center;width: 100%;position: absolute;}


.welcome {
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
    min-height: 100vh;
}

.sr-only img {
    height: 100vh; 
    width: 650px; 
    max-width: 100%; 
    object-fit: contain; 
    margin-top: -23vh; 
	padding: 15px;
}


.answer-img{position: absolute;right: -4%;top: 62%;width:200px;height: auto;max-width: 100%;}


header h1{
    position: absolute; 
    width: 0.063rem;
    height: 0.063rem;
    padding: 0;
    margin: -0.063rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

header {
	margin: 0px auto; width: 100%; position: relative;
}
.container {
	margin: 30px auto; width: 100%; position: relative;
}



.center {
	margin: 20px auto 0px; width: 1300px;padding: 20px;border-radius: 50px;max-width: 100%;
}
#btn-start {
    pointer-events: auto;  /* 確保按鈕可以被點擊 */
}

.title{
	width: 55%;
    max-width: 100%;
	margin: 20px auto 10px auto;
    text-align: center;
	position: relative;
	background-image: url(../images/44.png);
	background-size:100% 100%;
	background-repeat: no-repeat;
	padding: 2px 20px;
}

.title img{
	width: auto;
    max-width: 100%;
	position: relative;
}





.title-text{ 
font-size: 3.5vh;color: #ffffff;
width: 100%;font-weight: bold;line-height: 1.5em;font-family: "Noto Sans TC", sans-serif;
font-optical-sizing: auto;
font-style: normal;
font-weight: 700;
font-style: normal;}

#puz_box{width: auto;height: auto;}








@media all and (max-width:1500px)
{
.puzzle {
	left: 10px;
}
.timebox {
	width: 200px; height: 73px; right: 10px; background-size: contain;
}
.timebox::before {
	width: 41px; height: 38px;
}
#time_text {
	top: 18px;
}
.btn-start{left:50%}
.btn-start01{left:30%}
.answer-img{position: absolute;right: -4%;top: 62%;width:200px;height: auto;max-width: 100%;}

}
@media all and (max-width:1200px)
{
.center {
	width: auto;

}
#trash .flex {
	margin: 0px auto; padding: 65px 0px 0px; width: auto; display:grid; justify-content: center; align-items: center;
}
.puzzle {
	display: none;
}
.gallery {
	width: auto;justify-content: center;
}
.timebox {
	top: 10px;
}
#time_text {
	font-size: 2em;
}
.bottom-book {
	margin-right: 10px; margin-bottom: 10px;
}
.borderColor {
	margin-right: 0px;
}
.right-light {
	display: none;
}
.title{width: 80%;}
.puz-list{margin: 0 50px;}


}



@media all and (max-width:1100px)
{

	.answer-img{display: none;}


}

@media all and (max-width:1024px)
{

	.btn01 img{width: 220px;}
	.btn img{width: 220px;}

	.btn{left: 53%;}
	.btn-start{left: 50%;}
}



@media all and (max-width:912px)
{
.welcome .welcome_bg {
	width: 100%;
}
.btn-start {
	top: 70%;
}
.btn-back {
	top:70%;
}


.title{width: 80%;}
.title-text{font-size: 3.2vh;}

.puz-title{font-size: 2.8em;line-height: 1.5em;}
.puz-list-span{width:50px;height: 50px;font-size: 2.5em;padding: 0 0 0 0; top: -28px;
	left: -9px;}

	.puz-list{border-radius:40px;margin: 0 35px ;}
	.puz-list-text{font-size: 1.8em;}
	.puz-list-box{margin: 41px 0 10px;}
	
}


@media all and (max-width:720px)
{
  .btn-start{left: 50%;}
}




@media all and (max-width:610px)
{



.btn img {
	width: 200px;
}
.btn-start {
	top: 65%;
}
.btn-back {
	top: 65%;
}
.bookcase {
	width: 300px; height: 300px;
}
.borderColor {
	width: 300px; height: 300px;
}
.gallery {
	width: 344px;
}
.gallery img {
	width: 100px; height: 100px; object-fit: contain;
}

.book{ display: grid;

	width: 150px;margin: 5px;

	
}
.puz-answer{font-size: 1.5em;}
.puz-list-box{display: block;}
.puz-list{margin: 50px auto 20px;}
.puz-list-span{top: -37px;}

.answer-box__title{font-size: 1.2em;}
.answer-li{font-size: 1.3em;}
.answer-content ul{width: 100%;margin: 0;}
.answer-content{display: block;}

}
@media all and (max-width:500px)
{
.sweet-alert .sa-icon.sa-custom {
	width: 100% !important;
}
.puz-list-text{font-size: 1.5em;}
.puz-title{font-size: 1.8em;}
.answer-li{font-size: 1.0em;}
.answer-content span{font-size: 1.5em;}
.btn-start {
	top: 80%;
	left: 50%;
	#puz{padding: 43px 20px 101px 26px;}
}


.btn-back {
	top: 70%;
	left:  50%;
	right: 0;
}

.btn-start01 {
	
	bottom: 30%;
	left: 50%;
	top: 100%;
}

.btn-back01 {
	
	left:  50%;
	right: 0;
	top: 95%;
}


#puz{padding: 50px 20px 100px 20px;}
}
@media all and (max-width:400px)
{
.btn img {
	width: 180px;

}


.bookcase {
	width: 280px; height: 280px;
}

.gallery {
	width: 309px;
}
.gallery img {
	width: 93px; height: 93px; object-fit: contain;
}

#puzz i{width: 100px;height: 100px;background-size:300px 300px}

#puz i{width: 100px;height: 100px;}

.center{margin: 15px auto 0px;}



}
@media all and (max-width:390px)

{

	.btn-back01{left: 49%;}

}

@media all and (max-width:375px)
{
.sa-button-container {
	display: flex; flex-direction: column;
}
.sweet-alert .sa-confirm-button-container {
	padding: 0px 5px;
}
.sweet-alert button.confirm {
	margin: 15px 0px; width: 100%;
}

.btn-back01 {
	
	left:  43%;
	right: 0;
	top: 95%;
}

}


@media (max-height: 720px) {
	.sr-only img {
	  width: 450px;
	  max-width: 100%; /* 裝置高度大於400px時，設為650px寬 */
	}
  }




@media all and (max-width:320px)
{
	.btn-back{left: 48%;}
}
