#header {
   background-color: #666;
   color: #074470;
}

#nav {
   background: #f5fafc; 
   color: #074470;
   font-size: 24px;   
   height: 40px;  
   font: 新細明體,Century,Arial,sans-serif;
   font-family: 新細明體,Century,Arial;
   position: fixed; 
   top: 0; 
   width: 100%; 
   z-index: 100;
   padding: 5px;
}

body {
   background-color: #f5fafc;  
   color: #074470;
   font: 新細明體,Century,Arial,sans-serif;
   font-size: 18px;      
   letter-spacing: 1px;
   line-height: 24px;
   text-size-adjust: none;
}

#content{
   margin: 60px 5px 0px 5px;        
   background: #f5fafc;
   background-image: linear-gradient(to bottom right, #f5fafc, #f5fafc, #b0d8f5, #b0d8f5);
   padding: 0px;
   font: 新細明體,Century,Arial,sans-serif;
   font-size: 18px;   

   max-width: 1200px;
   margin: auto;
}


#content > div{
   font: 新細明體,Century,Arial,sans-serif;
   font-size: 18px;  
}



#footer {
   background: #f5fafc;
   color: #074470;
   height: 60px;  
   font: 新細明體,Century,Arial,sans-serif;
   letter-spacing: 1px;
   line-height: 24px;
   font-size: 16px;
}


.flex{
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #e8eded;
}

.flex > div{
  min-width: 400px;
  width: 50%;
  margin: auto;   /* top, right, bottom, left*/
  background-color: #e8eded;
}

.flex-text{
  padding: 10px;
}

.flex > div > b {
	font-size: 24px;
}

.flex-text > b {
	font-size: 24px;
}

.flex > div > img {
	object-fit: cover;
}

.flex > img {
	object-fit: cover;
}


#whatsapp {
   position: fixed; 
   bottom: 10; 
   right: 10;
}

#email {
   position: fixed; 
   bottom: 70; 
   right: 10;
}




/* Image fader */
.image-fader {
  width: 100%;
  height: 350;
  overflow: hidden;
  position: relative;
}

.image-fader img {
  top: 0;
  left: 0;
  width: 100%;
  height: 350;

  position: absolute;    	

  animation-name: imagefade;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 9s;
}

@keyframes imagefade {
  0% {
    opacity:1;
  }
  23% {
    opacity:1;
  }
  33% {
    opacity:0;
  }
  90% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}

.image-fader img:nth-of-type(1) {
  animation-delay: 6s;
}
.image-fader img:nth-of-type(2) {
  animation-delay: 3s;
}
.image-fader img:nth-of-type(3) {
  animation-delay: 0s;
}





/* Menu style */

.navMenu {
  position: absolute;
  top: 5px;
  right: 10px;
}

.navMenu a {


  padding: 5px;
  
   
  
  color: #074470;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;

}

.navMenu a:hover {
  color: #fcba03;
}




.dropdown {
  margin: 0px 0px 0px 0px;
  width: 300px;
  padding: 0px;
  font-size: 18px;  
  
  &:hover {
   
    li {
      padding: 5px;
      border-top: 1px lighten(#333, 2%) solid;
      height: auto;
      overflow: auto;
      opacity: 1;
    }
  }
}


.dropdown ul {
  display: block;
  list-style: none; 
  position: absolute;  
  border-radius: 0px;
  margin-top: 0px;
  margin-left: 250px;
  font-size: 18px;  
  
}




.dropdown li {
  font-size: 18px;  
  color: #074470;
  padding: 0px 0px;
  background: darken(#333, 2%);
  text-align: left;
  border: 1px;
  border-style: solid;
  border-color: #593506;
  width: 100%; height: 0px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transition-property: all, background-color;
  transition-duration: 0.2s, 0.4s;
  background: #cbe9f2;
  border-radius: 15px 5px 25px;
  margin: 2px 0px;

  &:hover, &.selected {
	background: #607ce0;
  }
  
  
  &:before {
    content: '';
    margin-top: -2px;
    margin-right: 10px;
    display: inline-block;
    border-radius: 8px;
    vertical-align: middle;
    width: 0px; height: 0px;
  }
  
  &:nth-child(1) {
    transition-delay: 0s, 0s;
    
    &:before {
      background: #5790E6;
    }
  }
  
  &:nth-child(2) {
    transition-delay: 0.1s, 0s;
    
    &:before {
      background: #8773EB;
    }
  }
  
  &:nth-child(3) {
    transition-delay: 0.2s, 0s;
    
    &:before {
      background: #B27CD9;
    }
  }
  
  &:nth-child(4) {
    transition-delay: 0.3s, 0s;
    
    &:before {
      background: #E884B0;
    }
  }
  
  &:nth-child(5) {
    transition-delay: 0.4s, 0s;
    
    &:before {
      background: #EDA180;
    }
  }
  
  &:nth-child(5) {
    transition-delay: 0.4s, 0s;
    
    &:before {
      background: #5790E6;
    }
  }
  
  &:nth-child(6) {
    transition-delay: 0.4s, 0s;
    
    &:before {
      background: #8773EB;
    }
  }
  
  &:nth-child(7) {
    transition-delay: 0.4s, 0s;
    
    &:before {
      background: #B27CD9;
    }
  }
  
  &:nth-child(8) {
    transition-delay: 0.4s, 0s;
    
    &:before {
      background: #E884B0;
    }
  }
  
  &:nth-child(9) {
    transition-delay: 0.4s, 0s;
    
    &:before {
      background: #EDA180;
    }
  }  
}

