@import url(https://fonts.googleapis.com/earlyaccess/cwtexhei.css);
@import url('https://fonts.googleapis.com/css?family=Lobster|Righteous');
/* font-family: 'cwTeXHei', sans-serif; 中文黑體 */
/* font-family: 'Lobster', cursive; 英文草寫體 */
/* font-family: 'Righteous', cursive; 英文方圓體 */
/* font-family: 'Lobster', 'cwTeXHei', sans-serif;  英文草寫體中文黑體  */


/* reset & default & all ============================================== */
* { padding: 0; margin: 0; }
ul,ol,li { list-style: none; }
img { border: none; }
:focus { outline: none; }

body { background-color: #c6d0eb; color:#000; font-size: 15px; letter-spacing: 1px;
  font-family: "Helvetica Neue", Helvetica, Arial, STHeiti, "Microsoft JhengHei", 微軟正黑體, sans-serif; }

a { text-decoration: none; color: #3c75b7; font-family: 'Righteous', cursive; }
a:hover { color: #9c00d6; }

.TSw, .TSimp { display: inline-block; vertical-align: middle; }
nav .TSw { position: absolute; left: 0; bottom: 0; }
header .TSw { position: absolute; left: 0px; bottom: 30px; }

/* nav 區 ============================================================== */
nav { height: 60px; position: relative; }
nav>div { position: absolute; right: 0; bottom: 0;  }

nav>div>a { /*display: inline-block;*/ display: block; float: left;
  background-color: #232150; color: #FFF; margin-top: 12px; margin-right: 5px;
  padding: 8px 13px; font-family: 'Lobster', 'cwTeXHei', sans-serif; letter-spacing: 1px;
  /*文字陰影*/
  text-shadow: -2px -2px 2px #000;
  /*以下三行是上方邊框圓角*/ 
  border-top-left-radius: 7px; border-top-right-radius: 7px;
  -webkit-border-top-left-radius: 7px; -webkit-border-top-right-radius: 7px;
  -moz-border-top-left-radius: 7px; -moz-border-top-right-radius: 7px;
  /*設定滑入時的變化,轉場過程依指定時間慢慢呈現*/
  transition: all 0.3s;
}

nav>div>a:hover { color: #FFF; padding-bottom: 20px; margin-top: 0; 
  text-shadow: 4px 4px 2px #000; }

nav>div>a {
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#b456b7+0,cf85d3+8,993a91+33,592855+94 */
  background: #524f9d; /* Old browsers */ /* FF3.6-15 */
  background: -webkit-linear-gradient(top,  #504d91 0%,#c9c7eb 8%,#504d91 33%,#232150 90%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom,  #504d91 0%,#c9c7eb 8%,#504d91 33%,#232150 90%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b456b7', endColorstr='#592855',GradientType=0 ); /* IE6-9 */
}

#showMenu { display: none; }

@media(max-width:600px){
  #showMenu { display: inline-block; font-size: 24px; color: #FFF; padding: 10px; }

  nav { height: auto; background-color: #000; }
  nav>div { position: static; text-align: center; display: none; }
  nav>div>a { float: none; background: transparent; border-bottom: 1px dotted #666;
    margin: 0 20px; padding: 12px 0 3px 0;}
  nav>div>a:hover { margin: 0 20px; padding: 12px 0 3px 0; }
  nav .TSw { left: auto; right: 0; bottom: 0; }
}

/* header 區 =========================================================== */
header { background: url(images/layout/header002.jpg) no-repeat #232150 center top; 
  height: 200px; position: relative; }

header audio { position: absolute; left: 0px; bottom: 0px; width: 30px; height: 20px; transition: all 0.5s; }
header audio:hover { width: 300px; }

header .fa-ambulance { position: absolute; left: -50px; bottom: -15px; 
  transform: skewX(30deg) scale(1,0.5); font-size: 60px; color: #FFF;
  animation-name: headerAni; animation-duration: 5s;  }

@media(max-width:1200px){
  header { background-position: left top; }
}

@keyframes headerAni{
  0% { left:100vw; }
  100% { left:-50px; }
}

/* section.page區 ====================================================== */
.page { background: url(images/layout/shadow1.png) no-repeat center bottom; min-height: 300px;  
  padding: 50px 7% 100px; overflow: hidden; }
.page h1 { font-family: 'Lobster', 'cwTeXHei', sans-serif; 
  font-size: 2em; font-weight: normal; margin-bottom: 20px; }

.page h1 span { font-size: 1.2rem; }
.page h1 a { font-family: 'cwTeXHei', sans-serif; }

.page h1 .fa { color: #353079; }
.page1 h1 .fa { font-size:   2em; }
.page2 h1 .fa { font-size: 1.5em; 
  -webkit-transform: rotate(-30deg); 
  -moz-transform: rotate(-30deg); 
  -ms-transform: rotate(-30deg);
  -o-transform: rotate(-30deg);
  transform: rotate(-30deg); }

/* section.page1區 ===================================================== */
.page1 article { margin: 50px; }
.page1 article img { float: left; }
.page1 article h2 { padding-left: 120px; padding-bottom: 20px; font-family: 'Righteous', cursive; }
.page1 article p { padding-left: 120px; line-height: 1.5em; text-align: justify;
  word-break: break-all; }

.page1 article .testWrap { background-color: rgba(255, 255, 255, 0.5); width: 200px; 
  display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
  vertical-align: middle; transition: all 0.5s;  }

.page1 article .testWrap:hover { width: 300px; }

@media(max-width:600px){
  .page1 article { margin: 50px 0; text-align: center; }
  .page1 article img { float: none; }
  .page1 article h2 { padding: 20px 0px; }
  .page1 article p { padding-left: 0px; }
}

@media(min-width:1300px){
  .page1 article { float: left; width: 46%; margin: 2%; }
}

/* section.page2區 ===================================================== */
.page2 .container { display: flex; flex-wrap: wrap; }

.page2 figure { float: left; width: 19%; margin: 1%; padding: 2%; position: relative;
  background-color: rgba(255, 255, 255, 0.5); }
.page2 figure img { width: 100%; height: auto; border-radius: 10px; 
  box-shadow: -2px -2px 2px rgba(0, 0, 0, 0.9); transition: all 0.5s; }
.page2 figure figcaption { text-align: center; padding-top: 10px; }

.page2 figure img:hover { transform: scale(1.1,1.1); box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.4); }

.page2 figure:after { content: ''; position: absolute; left: 0; bottom: -17px; width: 100%; height: 17px; 
  background: url(images/layout/shadow3.png) no-repeat ; 
  background-size: contain; }

@media(max-width:760px){ .page2 figure { width: 40%; margin: 2%; padding: 3%; }  }
@media(max-width:400px){ .page2 figure { width: 82%; margin: 4%; padding: 5%; }  }

/* section.page3區 ===================================================== */
.page3 { max-width: 1200px; }

.page3 ul { background-size: contain; background-repeat: no-repeat;
  float: left; width: 17%; margin: 1%; padding: 50px 7% 80px; position: relative; }

.page3 ul:nth-of-type(1){ background-image: url(images/photo/block1.png); }
.page3 ul:nth-of-type(2){ background-image: url(images/photo/block2.png); }
.page3 ul:nth-of-type(3){ background-image: url(images/photo/block3.png); }

.page3 ul li:first-child { list-style: none; margin-bottom: 5px; }
.page3 ul li { font-size: 17px; padding-bottom: 5px; transform: rotate(2deg); }

.page3 ul li h2 { font-family: 'Righteous', cursive; text-indent: 1em; }
.page3 ul li.fa { position: absolute; right: 20px; bottom: 20px; color: #FFF;
  font-size: 4em; /*em是相對上一層文字的字體高*/}

.page3 ul:hover { animation-name: page3Ani; cursor: move;
  animation-duration: 1s; 
  animation-iteration-count: infinite; }

@keyframes page3Ani{
  /*   0% { transform: translate( 0px, 0px ); }  */
  50% { transform: translate( 10px, -10px ); }
  /* 100% { transform: translate( 0px, 0px ); }  */
}

@media(max-width:1200px){ .page3 ul { width: 24%; margin: 1%; padding: 50px 7% 70px; } }       /*2欄*/
@media(max-width: 900px){ .page3 ul { width: 34%; margin: 1%; padding: 50px 7% 70px; } }       /*2欄*/
@media(max-width: 700px){ .page3 ul { width: 38%; margin: 1%; padding: 50px 18% 90px; 12% } }  /*2欄*/
@media(max-width: 550px){ .page3 ul { width: 54%; margin: 1%; padding: 50px 13% 40px; } }      /*1欄*/
@media(max-width: 400px){ .page3 ul { width: 78%; margin: 0%; padding: 50px 10% 60px 12%; } }  /*1欄*/



/* section.page4區 ===================================================== */
.page4 figure { float: left; width: 18%; margin: 1%; position: relative; 
  border-radius: 50%; /*overflow: hidden;*/ transition: all 0.5s; }

.page4 figure img { width: 100%; height: auto; display: block; border-radius: 50%; }

.page4 figure a { position: absolute; width: 100%; height: 70%; left: 0; top: 0; 
  background-color: rgba(0, 0, 0, 0.5); color: #FFF; text-align: center; padding-top: 30%;
  font-family: 'Righteous', 'cwTeXHei', sans-serif; font-size: 20px;
  transition: all 3s; opacity: 0; border-radius: 50%; }

.page4 figure:hover { transform: rotate(360deg) scale(1.4); z-index: 1; /*轉一圈並放大*/
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); border: 3px solid #FFF; box-sizing: border-box; }

.page4 figure a:hover { opacity: 1;  /*淡入*/ }

@media(min-width:1600px){  .page4 figure { width: 14.5%; }	 }
@media(max-width:1200px){  .page4 figure { width: 23%; }	 }
@media(max-width: 900px){  .page4 figure { width: 31.3%; }	 }
@media(max-width: 600px){  .page4 figure { width: 48%; }	 }
@media(max-width: 400px){  .page4 figure { float: none; width: 80%; margin: 20px auto; }	  }
@media(max-width: 1024px){ .page4 figure a { opacity: 1; background-color: rgba(0,0,0,0.4);}  }


/* section.mediaArea區 ================================================= */
.mediaArea { min-height: 300px; /*background-color: aqua;*/ padding: 30px; }
.mediaArea video { width: 100%; max-width: 800px; margin: 0px auto; display: block; }

/* footer 區 =========================================================== */
footer { background-color: #232150; color: #bfbee5; 
  text-align: center; padding: 15px; font-size: 13px; }

/* aside 區 =========================================================== */
aside { position: fixed; right: 0; top:50%; /*margin-top: -180px;*/ 
  transform: translate(0,-50%); }

aside a { background-color: rgba(255, 255, 255, 0.2); display: block; 
  padding-right: 15px; right: -15px; position: relative; transition: all 0.2s; 
  animation: asideAni 0.5s 3; }

aside a:first-child { border-top-left-radius: 10px; }
aside a:last-child { border-bottom-left-radius: 10px; }

aside a:nth-of-type(1) { animation-delay: 2s; }
aside a:nth-of-type(2) { animation-delay: 2.3s; }
aside a:nth-of-type(3) { animation-delay: 2.6s; }
aside a:nth-of-type(4) { animation-delay: 2.9s; }
aside a:nth-of-type(5) { animation-delay: 3.2s; }
aside a:nth-of-type(6) { animation-delay: 3.5s; }
aside a:nth-of-type(7) { animation-delay: 3.8s; }

aside a:hover { background-color: rgba(255, 255, 255, 0.6); right: 0;  
  border-top-left-radius: 10px; border-bottom-left-radius: 10px; 
  box-shadow: 2px 2px 2px #000; }

aside a img { width: 60px; height: auto; display: block; }

aside a.TSw { display: block; }
aside a.TSw img { width: 40px; height: auto; padding: 10px 5px 10px 15px; }

@keyframes asideAni{
  0%  {}
  50% { right: 0; border-top-left-radius: 10px; border-bottom-left-radius: 10px; 
    box-shadow: 2px 2px 2px #000; background-color: rgba(255, 255, 255, 0.6); }
  100%{}
}

/* #goTop 區 =========================================================== */
#goTop { background-color: rgba(255, 255, 255, 0.2); width: 200px; height: 200px;
  border-radius: 50%; position: fixed; right: -100px; bottom: -100px; color: #FFF;
  padding: 30px; box-sizing: border-box; animation: goTopAni 4s infinite; cursor: pointer; }

@keyframes goTopAni{
  0%  {  }    /* 不動 */
  50% { transform: scale(1); }                /* 不動 */
  55% { transform: scale(1.1); }              /* 放大一點 */
  60% { transform: scale(1); color:#FFF; }    /* 縮回原大小 */
  75% { transform: scale(1.3); color:rgba(0, 0, 137, 0.4); }  /* 放大多一點 */
  100%{ transform: scale(1); }                /* 縮回原大小 */
}
}

