/*======================================================================== 
	Copyright: HOT大聯盟
	Author: Shanny
  ========================================================================*/
header .logo{ z-index: 10; position: absolute; top: 10px;}
header .logo .car img{ z-index: 15; position: absolute; left: 0;
  animation: jump 1s infinite;}
header .logo .car::after{ content: ''; z-index: 10; position: absolute;
  border-radius: 100%; background: rgba(75,25,10,0.5);
  box-shadow: 0 0 3px 0 rgba(75,25,10,0.5); -webkit-box-shadow: 0 0 3px 0 rgba(75,25,10,0.5);
  animation: shadow 1s infinite;}

.santaClaus{ position: absolute; z-index: 5; top: -10px; left: 170px; transform: rotateY(180deg);}
@media (max-width: 959px) and (min-width: 768px){
  .santaClaus{ right: -10px; top: 30px;}
}

header .otherLink .rightMenu a,
header .otherLink .functionMenu a.stress{ background: rgba(25, 155, 85, 0.7);}
header .otherLink .rightMenu a:hover,
header .otherLink .functionMenu a.stress:hover{ background: rgba(25, 155, 85, 1);}
header .otherLink .rightMenu a span{ filter: invert(99%) sepia(21%) saturate(0%) hue-rotate(308deg) brightness(116%) contrast(100%);}

@media (max-width: 959px) {
  header { height: 145px; background-image: url(headerBg_m.jpg); background-position: top left;}

  header .logo{ width: 130px; margin-top: 2px;}
  header .logo .car img{ width: 60px;}

  @-webkit-keyframes jump{
    0%,100%{ bottom: 1px;}
    20%{ height: 46px;  /*從 20% 的地方才開始變形*/}
    50%{ bottom: 4px; height: 50px;}
    80%{ height: 48px;  /*到 80% 的地方恢復原狀*/}
  }
  @-webkit-keyframes shadow{
    0%,100%{
      width: 53px; height: 3px; bottom: 0; left: 4px;
      background: rgba(75,25,10,0.5);}
    50%{
      width: 46px; height: 5px; bottom: 0; left: 7px; /*讓陰影保持在原位*/
      background: rgba(75,25,10,0.25);}
  }
  
  header .otherLink{ z-index: 10;}
  header .menuDiv .otherLink{ padding-top: 6px;
    background: #f4ecdc;
    background: url(snow_b.png) left top / 100% no-repeat, linear-gradient(rgba(165, 101, 42, 0.2) 0%, rgba(244, 236, 220, 1) 25%);
  }
}

@media (min-width: 960px) {
  header { height: 105px; background-image: url(headerBg_pc.jpg);}

  header .logo{ width: 172px; margin-left: 10px; margin-top: 13px;}
  header .logo .car img{ width: 80px;}

  @-webkit-keyframes jump{
    0%,100%{ bottom: 1px;}
    20%{ height: 60px;  /*從 20% 的地方才開始變形*/}
    50%{ bottom: 9px; height: 58px;}
    80%{ height: 60px;  /*到 80% 的地方恢復原狀*/}
  }
  @-webkit-keyframes shadow{
    0%,100%{
      width: 72px; height: 3px; bottom: 0; left: 5px;
      background: rgba(75,25,10,0.5);}
    50%{
      width: 60px; height: 5px; bottom: 0; left: 10px; /*讓陰影保持在原位*/
      background: rgba(75,25,10,0.25);}
  }
}

/* 主選單 */
.mainMenu::before{}
.mainMenu a{ padding-top: 22px;}
.mainMenu a:hover, 
header.buyCar .mainMenu a.buyCarLink, 
header.sellCar .mainMenu a.sellCarLink, 
header.warranty .mainMenu a.warrantyLink {
    padding-top: 38px;
    background-image: url(bg_menu.png); background-position: center bottom;
    color: #fff;
}
.mainMenu a b{ position: relative; z-index: 5}
.mainMenu a b::before { content: attr(data-storke); position: absolute; z-index: -1;
  -webkit-text-stroke: 3px #fff; text-stroke: 3px #fff;}
.mainMenu a:hover b::before,
header.buyCar .mainMenu a.buyCarLink b::before, 
header.sellCar .mainMenu a.sellCarLink b::before, 
header.warranty .mainMenu a.warrantyLink b::before{
  content: attr(data-storke); position: absolute; z-index: -1;
  -webkit-text-stroke: 3px #da0503; text-stroke: 3px #da0503;
  text-shadow: 0 2px 3px #720b0b;}

@media (max-width: 959px) {
  .mainMenu{ margin-top: 70px;}
  /* 參考站 #burgerMenu 在 .mainMenu 內，本專案在外層，選擇器改寫 */
  #burgerMenu:checked ~ .menuDiv{ padding-top: 6px;}
  .menuDiv { margin-top: 0; background: #fff; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0));}
}
@media (min-width: 960px) {
  .mainMenu::before{}
}


/* 次選單 */
.subMenu div a{ color: #136f04;}

@media (min-width: 960px) {
  .subMenu{ min-width: 600px; background-image: url(bg_menuFocus2.png);}
  .subMenu > div{ background-image: url(bg_menuFocus.png);}
}

header .community a img{ opacity: 0.7; filter: invert(44%) sepia(69%) saturate(515%) hue-rotate(95deg) brightness(95%) contrast(90%);}
