a:focus {
  outline: none;
}

header {
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
}

header > #title {
  float: left;
  margin-left: 1.5em;
  margin-top: 0.5em;
  color: white;
  font-size: 40px;
  font-weight: bold;
}

#title a {
  color: white;
  text-decoration: none;
}

.clearfix{
  clear: both;
}

nav {
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  position : fixed;
  top: 70px;
  height: 45px;
}

header, nav {
  z-index: 100; /*for tinyMCE */
}

nav > ul { 
  margin: 0;
  padding: 0;
  table-layout: fixed;
  display:table;
  border-spacing: 3px 0px;  
  width:100%;
  margin-top: 0.5em;
}

nav > ul li { 
  display: inline-block;
  margin: 0px 2em;
}
  
nav > ul li a { 
  /*text-align: center;*/
  text-decoration: none;
  color: #515151;
  line-height: 32px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  display: block; 
  padding: 0 10px;
}

/*
在行動裝置上點選單時，focus會觸發hover，而且單獨設focus也無效（在chrome裡面，各家行動瀏覽器不一定）
所以在最下面寫上@media (hover: hover)來控制，若裝置支援滑鼠，才顯示hover效果
但@media (hover: hover)的用法並未廣泛被瀏覽器支援...如firefox與IE
nav > ul li a:hover {
  color: #f69c55;
}
*/

nav > ul li a.active {
  border-bottom: solid #f69c55 3px;
}

hr {
  margin: 3em 0;
}

h1 {
  margin-bottom: 1em;
}

#banner {
  padding-top: 115px;
}

#banner img {
  width: 100%;
}

.container { 
  background: rgba(235, 235, 235, 1); /*ghostwhite*/
  padding: 1em 5em 5em 5em;
}

.container h1 {
  margin-top: 0px;
}

.floatLeft {
  float: left;
}

.introduction {
  /*width: calc(100%/4.2 - 2em);*/
  width: 21%;
  /*border: 1px solid #FF0000;*/
  margin: 0em 4em;
  display: inline-block;
  text-align: justify;
  line-height: 1.5em;
  vertical-align: top;
}

.contentTitle {
  margin: 2em 0 3em 0;
}

.contentTitle img {
  width: 27%;
  float: left;
  margin-top: 6px;
}

.contentTitle span {
  display: inline-block;
  margin: 10px 0 0 10px;
  font-weight: bold;
}

.contentTitle span.title {
  font-size: 24px;
}

.contentTitle span.subTitle{
  font-size: 16px;
}

.searchDiv {
  margin: 16px 0px;
}

div.paddingLR4{
  padding: 0 64px;
}

div.whiteBox {
  border-top: 3px solid #f69c55;
  vertical-align: top;
  background-color: white;
  display: inline-block;
  text-align: center;
  box-shadow: 2px 2px 2px #666666;
  padding: 5% 0;
}

/* pirce */

.priceOption {
  display: inline-block;
  vertical-align: top;
  position: relative;
  margin: 20px 0%;
  width: 33%;
  max-width: 250px;
  min-width: 200px;
  height: 400px;
/*   font-size: 1vw; */
  border: thin solid lightgray;
  box-shadow: 2px 2px 2px lightgray;
}

.priceOption:nth-child(even) {
  margin-left: 2%;
  margin-right: 2%;
}

.priceOption hr {
  border: none;
  border-bottom: thin solid black;
  margin: 5px 0;
}

.priceOptionTop {
  height: 150px;
  padding: 10% 10% 0 10%;
}

.priceOptionTop .title, .priceOptionTop hr {
  color: #232323;
}

.discount {
  background-color: #f1a34e;
}

.group {
  background-color: #d9524e !important;
}

.priceOptionTop img {
  width: 25%;
  position: absolute;
  left: 0;
  top: 0;
}

#referral {
  position: absolute;
  top: 0;
  left: 24%;
  transform: rotate(24deg);
  color: white;
}

.referral {
  background-color: #f1a34e;
}

.priceOptionTop span.title {
  font-size: 27.2px;
  font-weight: bold;
}

.white {
  color: white !important;
}

.circle {
  width: 45%;
  height: 0;
  padding-bottom: 45%;
  margin: -25% auto;
  background-color: white;
  border: 2px solid #f1a34e;
  border-radius: 50%;
  position: absolute;
  left: 28%;
}

.circleGroup {
  border: 2px solid #d9524e;
}

.circleContent {
  padding-top: 25%;
}

.circle .nt, .circle .amount {
  color: #333333;
  font-weight: bold;
}

.circle .nt {
  font-size: 0.8em;
}

.circle .amount {
  font-size: 1.3em;
}

.middle {
  padding-top: 30%;
  line-height: 25px;
  background: white;
  height: 240px;
}

.bottom {
  position: absolute;
  width: 100%;
/*   height: 50px; */
  padding: 8px 0;
  bottom: 0;
  
  background-color: #f1a34e; 
}

.freeTrial {
  display: block;
  width: 50%;
  padding: 8px;
  margin: 0 auto;
  color: black;
  text-decoration: none;
  background-color: #f7cc9e;
  border: thin solid white;
  border-radius: 5px;
}

.freeTrial:hover {
  background-color: #f88f4d;
}

.freeTrialGroup {
  background-color: #f1c0be !important;
}

.freeTrialGroup:hover {
  background-color: #f85c59 !important;
}

/* end price */


/* contactUs */
div#contactUsForm {
  float: left;
  width: 50%;
}

div#contactUsForm span {
  font-size: 20.8px;
}

div#contactUsForm p {
  line-height: 3em;
}


div#contactUsInfo {
  margin-top: 20px;
  float: right;
  width: 50%;
  text-align: center;
}


div#contactUsInfo #introduction{
  font-size: 24px;
  padding: 0 1em;
  text-align: justify;
  margin-top: -12px;
}

div.whiteBox p {
/*   font-size: 1.3em; */
}

div.whiteBox p:first-of-type {
  margin-bottom: .5em;
}

div.phoneBox, div.emailBox {
  width: 100%;
  /*height: 50%;*/
  margin: 3% 3% 3% 3%;
}

div.phoneBox {
  margin-top: 64px;
}


div.phoneBox img {
  width: 50px;
}

div.emailBox img {
  width: 70px;
  margin-bottom: 8px;
}

input.contactUs {
  width: 55%;
}

textarea.contactUs {
  width: 55%;
  vertical-align: top;
  margin-top: 20px;
}

/* end contactUs */


/* misc */
p.alert {
  margin-top: 0;
}

input.subject {
  width: 80%;
}

table a:link, table a:visited {
  color: blue;
}


form p {
  line-height: 3em;
}

input[type="text"], input[type="number"], input[type="password"], input[type="email"], 
input[type="date"], input.datepicker, select {
  height: 30px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

/* end misc */


@media screen and (max-width:1270px) {
  .container {
    padding: 1em 10% 5em 10%;
  }
  
  .introduction {
    width: calc(100%/3 - 4em);
    margin: 0em 2%;
  }
  
  .contentTitle {
    text-align: center;
  }
  
  .contentTitle img {
    float: none;
    display: block;
    margin-left: calc(50% - 13.5%);
  }
  
  .contentTitle span {
    margin: 10px 0 0 0;
    display: block;
  }
  
  .priceOption {
    font-size: 12.8px;
  }
  
}

@media screen and (max-width:770px) {
  .priceOption {
    width: 45%;
  }
  
  header > #title {
/*     margin-left: -40px; */
  }
  
  #headerButton a {
    margin: 20px 0px 0px 0px;
    padding: 0px 10px;
  }
  
  header #headerButton {
    padding: 0.8em 0.2em;
/*     margin-right: -25px; */
  }
  
  .introduction {
    display: block;
    margin: 0px auto;
    width: 100%;
    text-align: center;
  }
  
  .introduction:not(:first-child) {
    margin-top: 4em;
  }
  
  .introduction img {
    width: 90px;
    margin-left: calc(50% - 45px);
  }
  
  div.paddingLR4 {
    padding: 0;
  }
  
  .contentTitle span.title{
    margin-top: 8px;
  }
  /*
  .priceOption, .circle .nt {
    font-size: calc(8px + 1vw)!important;
  }
  
  .circle .amount {
    font-size: calc(8px + 2vw);
  }
  */
}

@media screen and (max-width: 768px){
  nav > ul li {
    margin: 0;
    padding: 0;
    width: 24%;
  }
  
  nav > ul li a {
    padding: 0;
  }
  
  #contactUsLeft{
    width: 50%;
    padding: 3% 0 0 6%;
  }
  
  #contactUsInfo{
    width: 100%;      
  }
  
  div#contactUsInfo{
    width: 50%;
  }
  
  div#contactUsForm{
    width: 100%;
  }

  div#contactUsInfo #introduction{
    padding: 0;
  }

  div.phoneBox, div.emailBox{
    height: 140px;
  }
}


@media screen and (max-width:500px) {
  .priceOption {
    width: 90%;
  }
  
  header {
    height: 60px;
  }
  
  header > #title {
    font-size: 24px;
  }
  
  #headerButton a {
    margin: 7px 0px 0px 0px;
    font-size: 12.8px;
  }
  
  header #headerButton {
/*     margin-right: -50px; */
  }
  
  nav {
    top: 60px;
  }
  
  #banner {
    padding-top: 6.6em;
  }
  
  .container {
    padding: 1em 2em 5em 2em;
  }
    
  .introduction img {
    width: 70px;
  }
  
  .contentTitle {
    margin-top: 1.5em
  }
  
  .contentTitle span {
    margin: 10px 0 0 0;
  }
  
  
  .contentTitle span.title {
    font-size: 19.2px;
  }
  
  .contentTitle span.subTitle{
    font-size: 12.8px;
  }
  
}


@media screen and (max-width: 480px){
  nav > ul li a {
    line-height: 32px;
    font-size: 16px;
  }
  
  nav > ul li:nth-child(even) {
/*     padding: 0 5px; */
  }
  
  #contactUsMain {
    display: flex;
    flex-direction: column;
  }
  
  #contactUsLeft {
    width: 100%;
    order: 2;
  }
  
  #contactUsInfo {
    width: 100%;
    order: 1;
  }
  
  div#contactUsInfo {
    width: 100%;
    margin-bottom: 2em;
  }
  
  div#contactUsForm {
    width: 100%;
  }
  
  input.contactUs, textarea.contactUs {
    width: 100%;
  }

  div#contactUsInfo #introduction {
    padding: 1em 0;
  }

  div.phoneBox, div.emailBox{
    margin: 0 3%;
  }

  div.whiteBox p:first-of-type{
/*       font-size: 3.5vw; */
    font-size: 16px;
  }
  
  .whiteBox p{
/*       font-size: 3vw; */
    font-size: 12.8px;
  }
}


@media (hover: hover) {
  /*@media.hover的說明中，兩種值分別為none與hover*/
  /*我認為這裡應該用 (hover: none)，當裝置不支援滑鼠時，停用元素的hover或採用不同的hover*/
  /*但不知為何none無效，故只能採hover。當裝置支援滑鼠時，啟用hover*/
  
  nav > ul li a:hover {
    color: #f69c55;
  }
}

.marginTop05 {
  margin-top: 0.5em;
  margin-bottom: 0;
}
