/***** 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.4);
	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;
}
.modal-header h3 {
	color: #fff;
	font-weight: bolder;
	font-size: 1.5rem;
	letter-spacing: 0.1rem;
}
.no-logged{
	display: block;
}
.logged-in{
	display: none;
}

/* Modal Body */
.modal-body {
	padding: 2rem;
	line-height: 2rem;
	color: #000;
	background-color: #fff;
}
.modal-body h3 {
	font-size: 18px;
}
.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 {
	
	list-style: none;
}
.modal-body li{
	padding: 0.25rem;
}
.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: #c6264c;
	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 h2{
    color: #c6264c;
    font-size: 1.65rem;
    font-weight: 600;
	line-height: 1.3;
	margin: 1.8vh 0;
}
.modal-body-text-wrap h5 {
    color: #000;
	letter-spacing: 0;
    font-size: 1.2rem;
    font-weight: 0;
	margin: 1.5vh 0;
}
.modal-body-text-wrap h3{
	border: #c6264c 1px solid;
	padding: 0.1rem 1rem;
	color:#c6264c;
	border-radius: 3px;
	width: fit-content;
}
.modal-body-text-wrap h6 {
	color: #999;
	font-size: 12px;
}
.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: 12%;
	position: fixed;
	z-index: 29;
}
.menu__style {
	padding: 5% 5%;
    background-color: #fff;
	background-size: 100% 100%;
    text-align: center;
	margin: 0;
}
.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: 1.8vh;
	display: block;
}
.menu a{
	text-decoration: none;
}
.menu ul li:hover {
    color: #cc2054;
    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;
}

@media (max-width:768px) {
	.modal-content{
		width: 90%;
	}
	.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: #c6264c;
	}
	#sidebar .toggle-btn{
		bottom: 0px;
	}
	.toTop-arrow{
		bottom: 20%;
	}
}

@media (max-width:510px) {
	.menu>img {
		max-width: 30%;
		padding: 0;
	}
	.menu__style {
		padding: 5vw;
	}
	.menu ul li {
		font-size: 0.9em;
		line-height: 2.1em;
	}
}
 
