/*--------------------------------------------------------------
# Root
--------------------------------------------------------------*/
/* Fonts */
:root {
	--font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--font-primary: "Amatic SC", sans-serif;
	--font-secondary: "Inter", sans-serif;
}

/* Colors */
:root {
	--color-default: #212529;
	--color-primary: #ce1212;
	--color-secondary: #37373f;
}

/* Smooth scroll behavior */
:root {
	scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
html,
body {
	font-family: var(--font-default);
	height: 100%;
	color: var(--color-default);
}

#main {
	/* 減去footer高度 */
	min-height: calc(100% - 20%);
	/* header 高度 */
	margin-top: 80px;
	/* 背景設定 */
	position: relative;
	padding-bottom: 2%;
}

section {
	overflow: hidden;
}

/*--------------------------------------------------------------
# Spacing
--------------------------------------------------------------*/
.h-55px {
	height: 55px;
}

.letter-space-2px {
	letter-spacing: 2px;
}

/*--------------------------------------------------------------
# Color, Background
--------------------------------------------------------------*/
.text-scarlet {
	color: #ce1212;
}

.bg-gray {
	background: rgba(55, 55, 63, 0.04);
}

/*--------------------------------------------------------------
# Form 
--------------------------------------------------------------*/
form p {
	font-size: 14px;
	margin-bottom: 0px;
}

.bootstrap-select>.dropdown-toggle,
.bootstrap-select>.dropdown-toggle:focus,
.bootstrap-select>.dropdown-toggle:hover {
	height: 100%;
	border: 1px solid #ced4da;
	border-radius: 10px;
	box-shadow: none;
	outline: 0px !important;
	color: black;
	background-color: white;
	padding: 8px 60px;
}

/* dropdown menu max-height */
div.dropdown-menu.open {
	max-height: 314px !important;
	overflow: hidden;
}

/* dropdown menu max-height */
ul.dropdown-menu.inner {
	max-height: 260px !important;
	overflow-y: auto;
}

.errorMessage {
	display: none;
	color: #ED4337;
	font-weight: bold;
}

/*--------------------------------------------------------------
# Card
--------------------------------------------------------------*/
.card {
	background-color: #ffffffe0;
}

.card-shadow {
	border-radius: 30px;
	border: 0;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.card-shadow-search {
	border-radius: 10px !important;
	border: 1px solid rgb(219, 219, 219);
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-submit {
	padding: 5px 20px;
	display: inline-block;
	vertical-align: baseline;
	background-color: #B82B22 !important;
	color: white;
	font-weight: 600;
}

.btn-submit:hover,
.btn-submit:active,
.btn-submit:visited,
.btn-submit:focus {
	color: white;
	background: rgb(221, 80, 72) !important;
}

.btn-excel {
	width: 110px;
	background-color: #30B0C7;
	color: white;
	border: 0;
}

.btn-excel:hover,
.btn-excel:active,
.btn-excel:visited {
	background-color: #268c9f !important;
	color: white !important;
}

.btn-excel:disabled {
	background-color: rgb(126, 209, 224) !important;
	color: white !important;
}

.btn-pdf {
	width: 110px;
	background-color: #FF2D55 !important;
	color: white !important;
	border: 0;
}

.btn-pdf:hover,
.btn-pdf:active,
.btn-pdf:visited {
	background-color: #cc2444 !important;
	color: white !important;
}

.btn-pdf:disabled {
	background-color: rgb(238, 159, 175) !important;
	color: white !important;
}

.btn-goback {
	padding: 12px 60px;
	border-radius: 10px;
	background-color: #08a4a7;
	color: white;
	font-weight: 600;
}

/*--------------------------------------------------------------
# Pagination 
--------------------------------------------------------------*/
.page-point {
	border-bottom: 0;
	border-top: 0;
	pointer-events: none;
}

.page-current {
	border-color: #6c757d !important;
	background-color: #6c757d !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
	background: #fff;
	transition: all 0.5s;
	z-index: 997;
	height: 80px;
	border-bottom: 1px solid #ededed;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .06);
}

.header a {
	text-decoration: none;
}

#header-logoImg {
	height: 40px;
	max-width: 268px;
	margin-right: 6px;
}

#header-logoImg:focus-visible {
	outline: 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	font-size: 14px;
	min-height: 20%;
	background-color: #1f1f24;
	padding: 30px 0;
	color: rgba(255, 255, 255, 1);
}

.footer .icon {
	margin-right: 15px;
	font-size: 24px;
	line-height: 0;
}

.footer h4 {
	font-size: 16px;
	font-weight: bold;
	position: relative;
	padding-bottom: 5px;
	color: #fff;
}

.footer-text {
	color: rgba(255, 255, 255, 0.8);
}

@media(max-width:767.98px) {
	.footer-content {
		width: 80%;
		margin-left: 10%;
	}
}

/*--------------------------------------------------------------
# Desktop Navigation 電腦版導覽列
--------------------------------------------------------------*/
@media (min-width: 1280px) {
	.navbar {
		padding: 0;
	}

	.navbar ul {
		margin: 0;
		padding: 0;
		display: flex;
		list-style: none;
		align-items: center;
	}

	.navbar li {
		position: relative;
	}

	.navbar>ul>li {
		white-space: nowrap;
		padding: 10px 0 10px 28px;
	}

	.navbar a,
	.navbar a:focus {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 3px;
		font-family: var(--font-secondary);
		font-size: 16px;
		font-weight: 600;
		color: #7f7f90;
		white-space: nowrap;
		transition: 0.3s;
		position: relative;
	}

	.navbar a i,
	.navbar a:focus i {
		font-size: 12px;
		line-height: 0;
		margin-left: 5px;
	}

	.navbar>ul>li>a:before {
		content: "";
		position: absolute;
		width: 100%;
		height: 2px;
		bottom: -6px;
		left: 0;
		background-color: var(--color-primary);
		visibility: hidden;
		width: 0px;
		transition: all 0.3s ease-in-out 0s;
	}

	.navbar a:hover:before,
	.navbar li:hover>a:before,
	.navbar .active:before {
		visibility: visible;
		width: 100%;
	}

	.navbar a:hover,
	.navbar .active,
	.navbar .active:focus,
	.navbar li:hover>a {
		color: #000;
	}

	.navbar .dropdown ul {
		display: block;
		position: absolute;
		left: 28px;
		top: calc(100% + 30px);
		margin: 0;
		padding: 10px 0;
		z-index: 99;
		opacity: 0;
		visibility: hidden;
		background: #fff;
		box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
		transition: 0.3s;
		border-radius: 4px;
	}

	.navbar .dropdown ul li {
		min-width: 200px;
	}

	.navbar .dropdown ul a {
		padding: 10px 20px;
		font-size: 15px;
		text-transform: none;
		font-weight: 600;
	}

	.navbar .dropdown ul a i {
		font-size: 12px;
	}

	.navbar .dropdown ul a:hover,
	.navbar .dropdown ul .active:hover,
	.navbar .dropdown ul li:hover>a {
		color: var(--color-primary);
	}

	.navbar .dropdown:hover>ul {
		opacity: 1;
		top: 100%;
		visibility: visible;
	}

	.navbar .dropdown .dropdown ul {
		top: 0;
		left: calc(100% - 30px);
		visibility: hidden;
	}

	.navbar .dropdown .dropdown:hover>ul {
		opacity: 1;
		top: 0;
		left: 100%;
		visibility: visible;
	}
}

@media (min-width: 1280px) and (max-width: 1366px) {
	.navbar .dropdown .dropdown ul {
		left: -90%;
	}

	.navbar .dropdown .dropdown:hover>ul {
		left: -100%;
	}
}

@media (min-width: 1280px) {

	.mobile-nav-show,
	.mobile-nav-hide {
		display: none;
	}
}

/*--------------------------------------------------------------
# Mobile Navigation 手機版導覽列
--------------------------------------------------------------*/
@media (max-width: 1279px) {
	.navbar {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		max-width: 400px;
		border-left: 1px solid #666;
		bottom: 0;
		transition: 0.3s;
		z-index: 9997;
	}

	.navbar ul {
		position: absolute;
		inset: 0;
		padding: 50px 0 10px 0;
		margin: 0;
		background: rgba(255, 255, 255, 0.9);
		overflow-y: auto;
		transition: 0.3s;
		z-index: 9998;
	}

	.navbar a,
	.navbar a:focus {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 20px;
		font-family: var(--font-secondary);
		border-bottom: 2px solid rgba(255, 255, 255, 0.8);
		font-size: 16px;
		font-weight: 600;
		color: #7f7f90;
		white-space: nowrap;
		transition: 0.3s;
	}

	.navbar a i,
	.navbar a:focus i {
		font-size: 12px;
		line-height: 0;
		margin-left: 5px;
	}

	.navbar a:hover,
	.navbar li:hover>a {
		color: #ce1212;
	}

	.navbar .active,
	.navbar .active:focus {
		color: #ce1212;
		border-color: #ce1212;
	}

	.navbar .dropdown ul,
	.navbar .dropdown .dropdown ul {
		position: static;
		display: none;
		padding: 10px 0;
		margin: 10px 20px;
		transition: all 0.5s ease-in-out;
		border-left: 1px solid #eee;
	}

	.navbar .dropdown>.dropdown-active,
	.navbar .dropdown .dropdown>.dropdown-active {
		display: block;
	}

	.mobile-nav-show {
		color: var(--color-secondary);
		font-size: 28px;
		cursor: pointer;
		line-height: 0;
		transition: 0.5s;
		z-index: 9999;
		margin: 0 10px 0 20px;
	}

	.mobile-nav-hide {
		color: var(--color-secondary);
		font-size: 32px;
		cursor: pointer;
		line-height: 0;
		transition: 0.5s;
		position: fixed;
		right: 20px;
		top: 20px;
		z-index: 9999;
	}

	.mobile-nav-active {
		overflow: hidden;
	}

	.mobile-nav-active .navbar {
		right: 0;
	}

	.mobile-nav-active .navbar:before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(255, 255, 255, 0.8);
		z-index: 9996;
	}
}

/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
	position: fixed;
	visibility: hidden;
	opacity: 0;
	right: 15px;
	bottom: 15px;
	z-index: 99999;
	background: var(--color-primary);
	width: 44px;
	height: 44px;
	border-radius: 50px;
	transition: all 0.4s;
}

.scroll-top i {
	font-size: 24px;
	color: #fff;
	line-height: 0;
}

.scroll-top:hover {
	background: #ec2727;
	color: #fff;
}

.scroll-top.active {
	visibility: visible;
	opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	overflow: hidden;
	background: #fff;
	transition: all 0.6s ease-out;
	width: 100%;
	height: 100vh;
}

#preloader:before,
#preloader:after {
	content: "";
	position: absolute;
	border: 4px solid var(--color-primary);
	border-radius: 50%;
	-webkit-animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
	animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
	-webkit-animation-delay: -0.5s;
	animation-delay: -0.5s;
}

@-webkit-keyframes animate-preloader {
	0% {
		width: 10px;
		height: 10px;
		top: calc(50% - 5px);
		left: calc(50% - 5px);
		opacity: 1;
	}

	100% {
		width: 72px;
		height: 72px;
		top: calc(50% - 36px);
		left: calc(50% - 36px);
		opacity: 0;
	}
}

@keyframes animate-preloader {
	0% {
		width: 10px;
		height: 10px;
		top: calc(50% - 5px);
		left: calc(50% - 5px);
		opacity: 1;
	}

	100% {
		width: 72px;
		height: 72px;
		top: calc(50% - 36px);
		left: calc(50% - 36px);
		opacity: 0;
	}
}

/*--------------------------------------------------------------
# Waiting aos animation
--------------------------------------------------------------*/
@-webkit-keyframes animate-loading {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes animate-loading {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
	[data-aos-delay] {
		transition-delay: 0 !important;
	}
}