/***** popup's controler *****/

.overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	transition: opacity 200ms;
	visibility: hidden;
	opacity: 0;
}

.overlay:target {
	visibility: visible;
	opacity: 1;
}

/***** popup's appearance *****/

/* Modal */
.pop-modal {
	background-color: rgba(0, 0, 0, 0.45);
	display: none;
	overflow: auto;
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-top: 10%;
}

/* Modal Content */
.modal-content {
	position: relative;
	top: 0px;
	width: 750px;
	margin: 0 auto;
	background-color: #434343;
}

.modal-animated-in {
	animation: totop-in .3s ease;
}

.modal-animated-out {
	animation: totop-out .3s ease forwards;
}

.modal-header {
	background-color: #111111;
	width: 100%;
	height: 60px;
	line-height: 60px;
	padding-left: 20px;
	box-sizing: border-box;
}

.modal-content .close {
	font-size: 40px;
	position: absolute;
	right: 0;
	top: 0;
	background-color: rgba(0, 0, 0, .2);
	width: 60px;
	height: 60px;
	color: #fff;
	line-height: 55px;
	text-align: center;
	cursor: pointer;
	transition: all .3s;
}

.modal-content .close:hover {
	color: #fff;
}

.no-logged {
	display: block;
}

.logged-in {
	display: none;
}

/* Modal Body */
.modal-body {
	padding: 2rem;
	color: #000;
	background-color: #fff;
}

.header-title {
	font-size: 1.3rem;
	color: #fff;
}

.modal-body-inner {
	overflow-y: auto;
	height: 350px;
	padding: 0 0.25rem;
}

.modal-body-inner hr {
	width: 97%;
}

.modal-body-inner h3 {
	margin-bottom: 5px;
}

.modal-body-inner::-webkit-scrollbar-track {
	background-color: white;
}

.modal-body-inner::-webkit-scrollbar {
	width: 5px;
	background-color: #352D23;
}

.modal-body-inner::-webkit-scrollbar-thumb {
	background-color: #352D23;
}

.modal-body ul,
.modal-body ol {
	margin: 1rem 0;
	list-style: none;
}

.modal-body li {
	padding: 0.25rem;
	line-height: 2rem;
}

.modal-body ol li {
	position: relative;
	margin-left: 30px;
	list-style-type: decimal;
}

.modal-body ul li {
	position: relative;
	margin-left: 30px;
	list-style-type: disc;
	padding: 0;
}

.modal-body .link {
	color: #FF11BE;
	text-decoration: underline;
}

.modal-body-text-wrap {
	margin-bottom: 20px;
}

.modal-body-text {
	letter-spacing: 0.05rem;
	font-size: large;
}

.modal-body-text-center {
	font-size: x-large;
	text-align: center;
	display: flex;
	justify-content: center;
	/* 水平居中 */
	align-items: center;
	/* 垂直居中 */
	height: 280px;
}

.modal-body-text-center p {
	margin: 0.75rem;
}

.modal-body-text-center>div {
	cursor: pointer;
}

.modal-body-text-wrap p {
	text-align: center;
	line-height: 1.8;
	margin: 1rem 0;
}

.modal-body-text-wrap h2 {
	color: #FF11BE;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 1vw 0;
}

.modal-body-text-wrap h5 {
	line-height: normal;
	display: inline;
	/* 不要用 fit-content */
	color: #000;
	letter-spacing: 0;
	font-size: 1.3rem;
	font-weight: bolder;
	/* 不要設 0，會失效 */
	background: linear-gradient(#fff 60%, #fff34e 0%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.modal-body-text-wrap h3 {
	border: #FF11BE 1px solid;
	padding: 0.5rem 1rem;
	color: #FF11BE;
	border-radius: 3px;
	width: fit-content;
}

.modal-body-text-wrap h4 {
	border-radius: 1rem;
	text-align: center;
	margin: 1rem auto;
	font-size: 1.6rem;
	color: #000;
	width: fit-content;
	padding: 1rem 1.2rem;
	font-weight: bolder;
	letter-spacing: 0.05rem;
}

.modal-body-text-wrap h6 {
	text-align: center;
	color: #000;
	font-size: 1.2rem;
}

.modal-body-text a {
	text-decoration: underline;
}

/* Modal Footer */
.modal-footer {
	background-color: #656464;
	width: 100%;
	height: 60px;
	line-height: 60px;
	padding-left: 20px;
}

.menu {
	right: 1%;
	bottom: 10%;
	position: fixed;
	z-index: 999;
}

.menu__style {
	padding: 5% 5%;
	background-color: #fff;
	background-size: 100% 100%;
	text-align: center;
	margin: 0;
	border: #000 1px solid;
}

.menu ul li {
	font-weight: 800;
	opacity: 1 !important;
	color: #111111;
	display: inline-block;
	border-bottom: 1px solid #333;
	padding: 1.6vh 0;
	width: 100%;
	letter-spacing: 1px;
	font-size: 2vh;
	display: block;
}

.menu a {
	text-decoration: none;
}

.menu ul li:hover {
	color: #FF11BE;
	font-weight: 700;
}

/* hide sidenav 黏人精*/

.menu>img {
	max-width: 250px;
	padding: 0;
}

#sidebar {
	transition: all 300ms linear;
}

#sidebar.active {
	right: -800px;
}

#sidebar .toggle-btn {
	position: fixed;
	right: 0;
	cursor: pointer;

	background-color: #000;
}

/* 收合導覽黏人精*/
#sidebar .toggle-btn span {
	font-size: 1.2rem;
	display: block;
	width: 30px;
	color: #fff;
	margin: 1px 0px;
	padding: 3px 5px 10px 5px;
	text-align: center;
	cursor: pointer;
}

/*toTop*/
.toTop-arrow {
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	opacity: 0.8;
	background: #222222;
	color: #fff;
	cursor: pointer;
	position: fixed;
	right: 10px;
	bottom: 10px;
	padding-top: 10px;
	z-index: 999;
}

.toTop-arrow::before,
.toTop-arrow::after {
	width: 8px;
	height: 2px;
	border-radius: 5px;
	top: 12px;
	background: #fff;
	position: absolute;
	content: "";
}

.toTop-arrow::before {
	transform: rotate(-45deg) translate(0, -50%);
	left: 1.2rem;
}

.toTop-arrow::after {
	transform: rotate(45deg) translate(0, -50%);
	right: 1.2rem;
}

.toTop-arrow:focus {
	outline: none;
}

.card-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
}

.card-table td {
	width: 50%;
	/* 兩欄各佔 50% */
	padding: 8px 12px;
	border: 1px solid #ccc;
	text-align: left;
	line-height: 1.5;
	word-break: break-word;
	/* 避免文字超出 */
	vertical-align: middle;
	/* 垂直置中 */
}

.card-table tr:first-child td {
	background: #f8f8f8;
	/* 表頭底色 */
	font-weight: bold;
}

.card-table img {
	object-fit: contain;
}

@media (max-width:768px) {

	.modal-content {
		width: 90%;
	}

	.modal-body-text-wrap p {
		margin: 3vw 0;
		font-size: 2.6vw;
	}

	.modal-body-text-wrap h2 {
		font-size: 3vw;
		line-height: 1.3;
		margin: 1vw 0;
	}

	.modal-body-text-wrap h4 {
		font-size: 4.2vw;
		line-height: 1.3;
	}

	.modal-body-text-wrap h5 {
		font-size: 3vw;
	}

	.menu {
		max-width: 100%;
		bottom: 0%;
		right: 0;
	}

	.menu>img {
		max-width: 23%;
		padding: 0;
		opacity: 0.9;
	}

	.menu__style {
		padding: 2% 4% 2% 1%;
	}

	.menu ul li {
		padding: 2px 8px;
		font-size: 0.95em;
		line-height: 2.1em;
		width: auto;
		display: inline-block;
	}

	.menu ul li:hover {
		color: #FF11BE;
	}

	#sidebar .toggle-btn {
		bottom: 0px;
	}

	.toTop-arrow {
		bottom: 20%;
	}
}

@media (max-width:510px) {
	.modal-body {
		padding: 5vw;
	}

	.modal-body-text-wrap p {
		font-size: 3vw;
	}

	.modal-body ol li {
		margin-left: 6vw;
	}

	.modal-body ul li {
		margin-left: 6vw;
	}

	.modal-body-text-wrap h2 {
		font-size: 7.5vw;
		line-height: 1.3;
		margin: 1vw 0;
	}

	.modal-body-text-wrap h5 {
		font-size: 5.2vw;
	}

	.modal-body li {
		font-size: 4vw;
		line-height: 1.5;
	}

	.menu>img {
		max-width: 30%;
		padding: 0;
	}

	.menu__style {
		padding: 5vw;
	}

	.menu ul li {
		font-size: 0.9rem;
		line-height: 2.1rem;
	}
}