/*
Theme Name: X Platform 02 default Theme
Author: FIB24(Billy Hui)
*/

:root {
  --primary-theme-color: #FFC400;
  --secondary-theme-color: #00B0FF;
}

body {
  background-color: #f5f5f5;
  font-family: 'Roboto', 'Noto Sans TC', 'Open Sans', 'sans-serif';
  font-display: swap;
  margin: 0;
}

header {
  background: var(--primary-theme-color);
  max-height: 90px;
  color: white;
}

header div {
}

a {
  text-decoration: none!important;
}

footer {
  background: var(--primary-theme-color);
  padding: 2rem 1rem;
  color: white;
}

hr.hr-slim {
  margin-top: .5rem;
  margin-bottom: .5rem;
}

hr.hr-2x {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

hr.white {border-color: white;}

p.remark {font-size: .9rem;}

/* Header */
.header-desktop {

}

.header-icon {
  display: inline-block;
  width: 40%;
  height: 5rem;
}

.header-icon img {
  height: 100%;
}

.header-content {
  text-align: right;
}

.header-content ul {
  margin: 0;
  margin-top: .4rem;
}

.header-main {
}

.header-sub {
}

.header-sub .item {
  transition: .2s;
}

.header-mobile {

}

.header-mobile .header-content {
  display: table;
  height: 5em;
}

.header-mobile a {
  color: white;
}

/* For Menu */
.header-list a {
  font-size: 1.1rem;
  padding: 0 0.4rem;
  color: white;
  transition: .3s;
}

.header-list a:hover {
  color: black;
}

.header-list .item {
  display: inline-block;
}

/* For Sub-Menu */
.item:hover .sub-menu {display: block;}

.sub-menu {
  display: none;
  padding: 0;
  margin-top: 0!important;
  position: absolute;
  background-color: #ffffff;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10;
  transition: .3s;
}

.sub-menu .sub-item {
  display: block;
  transition: .2s;
}

.sub-menu .sub-item:hover {
  background: #eeeeee;
}

.sub-menu .sub-title {
  display: block;
  background: #aaaaaa;
}

.sub-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.sub-menu p {
  margin: 0;
  text-align: left;
  padding: 4px 16px;
}

/* For Mobile-Menu */
.mobile-menu {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
}

.mobile-menu-content {
  position: relative;
  top: 0;
  width: 100%;
  text-align: left;
  margin-top: 2em;
  list-style: none;
}

.mobile-menu li, .mobile-menu a {
  padding: .2rem 0;
  font-size: 2rem;
  color: #757575;
  display: block;
  transition: 0.3s;
}

.mobile-menu li:hover, .mobile-menu li:focus, .mobile-menu a:hover, .mobile-menu a:focus {
  color: #fff;
}

.mobile-menu .closebtn {
  position: absolute;
  padding: .4em;
  top: 0;
  right: 0;
  font-size: 3em;
  z-index: 13;
}

.mobile-sub-menu {
  display: none;
  list-style: none;
}

.mobile-sub-menu .sub-title {
  color: var(--primary-theme-color);
  text-decoration: underline;
  font-size: 1.4rem;
}

/* Footer */
.footer-box {
  margin-bottom: 2rem;
}

.footer-box-icon {
  padding: 0 2rem;
  margin-bottom: 2rem;
}

p.copyright {
  text-align: center;
}

footer * {
  margin: 0;
}

/* Donator */
#DonatorUpgrade, #mDonatorUpgrade {
  color: var(--primary-theme-color);
}

/* Slideshow */
.Slideshow {
  position: relative;
  height: 35rem;
  color: white;
  background-size: cover!important;
  background-position: center!important;
}

.Slideshow .SlideshowMask {
  background-color: #fff;
  height: 100%;
  width: 100%;
  position: absolute;
}

.Slideshow .info_panel {
  position: relative;
  height: 100%;
  background: rgba(0,0,0,0.6);
  padding: 2rem;
  transition: .3s;
}

.Slideshow #progressArea {
  position: absolute;
  right: 2rem;
}

.Slideshow #progressBox {
  height: 1rem;
  transition: background-color .3s;
}

.info_box h2 {margin-right: 3rem;}

.info_box p {max-height: 21rem; overflow: hidden;}

.Slideshow .controller {
  position: absolute;
  height: 3rem;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

/* Sheet */
.sheet-Standard {
  overflow: auto;
}

.sheet-Standard > table {
  border: 1px solid #ddd;
}

.sheet-Standard th, .sheet-Standard tr:hover {
  background-color: #f1f1f1;
}

.sheet-Standard th, .sheet-Standard td {
  padding: 1rem;
}

.sheet-info {
  width: 100%;
}

.sheet-info td.title {
  width: 12rem;
}

/* Category Box */
.categoryBox {
  height: 100%;
  min-height: 15rem;
  margin-bottom: 2rem;
}

.categoryBox:hover .icon, .categoryBox:hover .title {
  color: var(--primary-theme-color);
}

.categoryBox .title {
  background-color: #757575;
  color: white;
  display: table;
  text-align: center;
  height: 5rem;
  width: 100%;
  transition: .4s;
}

.categoryBox .icon {
  border-top: 0!important;
  border: 1px solid #212121;
  display: table;
  width: 100%;
  height: 10rem;
  background: #f5f5f5;
  color: black;
  text-align: center;
  transition: .4s;
}

.categoryBox h3 {
  display: table-cell;
  padding: .5em 1em;
  vertical-align: middle;
}

.categoryBox i {
  display: table-cell;
  vertical-align: middle;
}

/* Box */
.whiteBox {
  background-color: #ffffff;
  padding: 2rem;
}

/* Button */
.button {
  background-color: #212121;
  outline: none!important;
  cursor: pointer;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none!important;
  display: inline-block;
  font-size: 16px;
  transition: .3s;
}

.button:hover {color: grey;}
.button:active {color: white;}

.button.blue {
  background-color: #00B0FF!important;
}

.button.red {
  background-color: #F44336!important;
}

.button.amber {
  background-color: #FFC400!important;
}

.pageNavigation .button:hover{background-color: #dddddd;}

.button.prev {
  background-color: var(--secondary-theme-color);
  padding: .5rem 1rem;
}

.button.page {
  background-color: #f1f1f1;
  color: black;
  padding: .5rem 1rem;
}

.button.thisPage {
  background-color: var(--primary-theme-color)!important;
  color: white;
  padding: .5rem 1rem;
}

.button.next {
  background-color: var(--secondary-theme-color);
  padding: .5rem 1rem;
}

.button.Close {
  background-color: transparent;
  color: black;
  padding: 0;
  font-size: 2em;
  content: "&time;";
}

.button.Close:hover {color: grey;}

.button.slim {
  min-width: auto;
  height: 30px;
  padding: 0 1.6rem;
}

/* Input */
input.styled-input {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid black;
  outline: none;
  transition: .3s;
}

select.styled-input {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid black;
  outline: none;
  transition: .3s;
}

/* Switch Button */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--secondary-theme-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--secondary-theme-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Radio Button */
.radioButtonContainer {
  display: block;
  position: relative;
  padding-left: 1.8em;
  margin-bottom: .4em;
  cursor: pointer;
  font-size: 1.2em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input.radioButton {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radioButtonCheckMark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

.radioButtonContainer:hover input ~ .radioButtonCheckMark {
  background-color: #ccc;
}

.radioButtonContainer input:checked ~ .radioButtonCheckMark {
  background-color: var(--primary-theme-color);
}

.radioButtonCheckMark:after {
  content: "";
  position: absolute;
  display: none;
}

.radioButtonContainer input:checked ~ .radioButtonCheckMark:after {
  display: block;
}

.radioButtonContainer .radioButtonCheckMark:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}

/* Message Box */
.MessageBoxContainer {
  background-color: rgba(0,0,0,0.4);
  position: fixed;
  display: table;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 50;
}

.MessageBoxContainer > div {
  display: table-cell;
  vertical-align: middle;
}

.MessageBoxContainer .MessageBox {
  background-color: #f5f5f5;
  padding: 2rem;
  min-height: 24rem;
  max-width: 42rem;
  margin: auto;
}

.MessageBox .MessageBoxInputContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: flex-start;
}

.MessageBoxInputContainer > .MessageBoxInput {
  min-width: 25%;
  text-align: left;
}

/* hr */
hr.primaryColor {
  border: 0;
  border-top: .2em solid var(--primary-theme-color);
}

hr.secondaryColor {
  border: 0;
  border-top: .2em solid var(--secondary-theme-color);
}

/* Alert */
.alertText {color: red;}

/* Breadcrumb */
.breadcrumbBox {
  margin-bottom: 1em;
  padding: 1em 2em;
}

ul.XP02-breadcrumb {
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.XP02-breadcrumb li {
  display: inline;
  font-size: 18px;
}

ul.XP02-breadcrumb li+li:before {
  color: black;
  content: "/\00a0";
}

ul.XP02-breadcrumb li a {
  color: var(--primary-theme-color);
  text-decoration: none;
}

ul.XP02-breadcrumb li a:hover {
  color: #CCC;
  text-decoration: underline;
}

/* Other */
.pageNavigation {
  text-align: center;
}

.categoryLink {

}

.searchBar {
  position: relative;
  margin-bottom: 1rem;
}

.searchBar > input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #ccc;
  font-size: 1rem;
  background-color: white;
  padding: .7rem 1rem;
  padding-left: 2.8rem;
  outline: none;
}

.searchBar > i {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  color: #ccc;
}

.disabled {
  cursor: default;
  color: #ccc;
  margin: 0;
}

@media only screen and (max-width: 425px) {
  .mobile-menu {overflow-y: auto;}
  .recaptcha-container {
    max-width: 12em;
    overflow-x: auto;
  }
}
