@charset "UTF-8";

/* sideBar */
#sideBarWrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 210px;
  height: 100%;
  z-index: 1000;
  transition: left 300ms ease;
  background: rgba(0, 0, 0, 0.5);
}
#sideBarWrap .sideBarScroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-y: overlay;

  /* ie scrollbar color properties */
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-3dlight-color: #fff;
  scrollbar-arrow-color: #fff;
  scrollbar-base-color: #efefef;
  scrollbar-face-color: #ccc;
  scrollbar-track-color: #fff;
  scrollbar-darkshadow-color: #fff;
  scrollbar-highlight-color: #fff;
  scrollbar-shadow-color: #ccc;
  scrollbar-width: 5px;

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: gray transparent;
}
#sideBarWrap .sideBarScroll::-webkit-scrollbar {
  width: 6px;
}
#sideBarWrap .sideBarScroll::-webkit-scrollbar-track {
  border-radius: 10px;
}
#sideBarWrap .sideBarScroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}
#sideBarWrap .sideBarScroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}
#sideBarWrap .sideBar {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#sideBarWrap a {
  display: block;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
#sideBarWrap .menu a {
  text-indent: 0;
  white-space: normal;
}
#sideBarWrap h1 {
  position: relative;
  display: block;
  height: 140px;
  background: url('https://lwi.nexon.com/m_kartrush/common/sidebar/h1_2.png') no-repeat;
  background-color: #1d1f76;
  background-size: auto 100%;
}
#sideBarWrap h1 a.link1 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 64%;
}
#sideBarWrap h1 a.link2 {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 36%;
}
#sideBarWrap .btnToggle {
  position: absolute;
  top: 0;
  left: 210px;
  width: 50px;
  height: 50px;
  background: #1d1f76;
}
#sideBarWrap .btnToggle span {
  position: absolute;
  top: 23px;
  left: 9px;
  width: 32px;
  height: 4px;
  background: #fdbd10;
  border-radius: 10px;
  transition: all 300ms ease;
}
#sideBarWrap .btnToggle span:first-child {
  width: 10px;
  margin: -8px 0 0 3px;
  transform: rotate(45deg);
}
#sideBarWrap .btnToggle span:last-child {
  width: 15px;
  margin: 6px 0 0 14px;
  transform: rotate(45deg);
}
#sideBarWrap .btnToggle span:nth-child(2) {
  opacity: 0;
}
#sideBarWrap .btnToggle span:nth-child(3) {
  transform: rotate(-45deg);
}

#sideBarWrap.__hide {
  left: -210px;
}
#sideBarWrap.__hide .btnToggle span {
  left: 12px;
  width: 24px;
  margin: 0;
}
#sideBarWrap.__hide .btnToggle span:first-child {
  transform: translateY(-10px);
  opacity: 1;
}
#sideBarWrap.__hide .btnToggle span:nth-child(2) {
  transform: rotate(0);
  opacity: 0;
}
#sideBarWrap.__hide .btnToggle span:nth-child(3) {
  transform: rotate(0);
}
#sideBarWrap.__hide .btnToggle span:last-child {
  transform: translateY(10px);
  background: #fdbd10;
}
#sideBarWrap .util {
  position: relative;
  margin: auto auto 40px;
}
#sideBarWrap .util ul {
  display: flex;
  justify-content: center;
}
#sideBarWrap .util ul li {
  margin: 0 10px;
}
#sideBarWrap .util ul a {
  width: 31px;
  height: 25px;
  background: url('https://lwi.nexon.com/m_kartrush/common/sidebar/spr_util.png') no-repeat;
  background-size: 100% auto;
}
#sideBarWrap .util ul a:hover {
  opacity: 0.5;
}
#sideBarWrap .util ul .btn_home {
  background-position-y: 0;
}
#sideBarWrap .util ul .btn_youtube {
  background-position-y: -25px;
}
#sideBarWrap .util ul .btn_forum {
  background-position-y: -50px;
}
#sideBarWrap .util .download_btn {
  width: 160px;
  margin: 15px auto 0;
}
#sideBarWrap .util .download_btn a {
  height: 48px;
  background: url('https://lwi.nexon.com/m_kartrush/common/sidebar/spr_btn_download_lnb.png') no-repeat;
  background-size: 100% auto;
}
#sideBarWrap .util .download_btn a:last-child {
  margin-top: 7px;
}
#sideBarWrap .util .download_btn .btn_app {
  background-position-y: 0;
}
#sideBarWrap .util .download_btn .btn_google {
  background-position-y: -48px;
}

/* desktop */
@media (min-width: 1025px) {
  header,
  #header {
    display: none;
  }
  #sideBarWrap .menu {
    width: 160px;
    margin: 0 auto 40px;
    padding-top: 30px;
  }
  #sideBarWrap .menu li {
    position: relative;
    margin-bottom: 35px;
  }
  #sideBarWrap .menu li a {
    position: relative;
    display: block;
  }
  #sideBarWrap .menu li img {
    position: relative;
    filter: saturate(200%) brightness(1.05) contrast(1) grayscale(0.88);
  }
  #sideBarWrap .menu li::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 99px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: saturate(500%) brightness(1) contrast(1) grayscale(0);
  }
  #sideBarWrap .menu li.on::after {
    display: none;
  }
  #sideBarWrap .menu li:hover::after {
    backdrop-filter: saturate(50%) brightness(1) contrast(1) grayscale(0);
  }
  #sideBarWrap .menu li a:hover img {
    filter: saturate(200%) brightness(1) contrast(1) grayscale(0);
  }
  #sideBarWrap .menu li.on a img {
    opacity: 1;
    filter: brightness(1) saturate(100%) contrast(1) grayscale(0);
  }
  #sideBarWrap .menu li a .thumb_pc {
    display: block;
    width: 100%;
  }
  #sideBarWrap .menu li a .thumb_mo {
    display: none;
  }
  #sideBarWrap .menu li a:after,
  #sideBarWrap .menu li a:before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    content: '';
    height: 99px;
    z-index: 2;
  }
  #sideBarWrap .menu li a:before {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(-120%) skew(-30deg);
    transition: transform 200ms ease;
  }
  #sideBarWrap .menu li a:hover:before {
    transform: translateX(0) skew(0);
  }
  #sideBarWrap .menu li a:after {
    box-sizing: border-box;
  }
  #sideBarWrap .menu li.on a:after {
    border: 3px solid #fdc231;
  }
}

/* mobile */
@media (max-width: 1024px) {
  header,
  #header {
    display: block;
  }
  #sideBarWrap .sideBarScroll {
    background: #07071c;
  }
  #sideBarWrap .dim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
  }
  #sideBarWrap .menu {
    margin-bottom: 20px;
  }
  #sideBarWrap .menu li {
    border-bottom: 1px solid #555;
    height: 70px;
    background-color: #03030e;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #sideBarWrap .menu li a {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #sideBarWrap .menu li a .thumb_pc {
    display: none;
  }
  #sideBarWrap .menu li a .thumb_mo {
    display: block;
    height: auto;
    width: 100%;
    margin-left: -16px;
    filter: brightness(0.8) grayscale(1);
  }
  #sideBarWrap .menu li.on a .thumb_mo {
    filter: brightness(1) grayscale(0);
  }
  #sideBarWrap .menu li.on {
    border-left: 3px solid #fdc231;
  }
  #sideBarWrap .util {
    margin-bottom: 20px;
  }
  #sideBarWrap .util .download_btn {
    display: none;
  }
  #sideBarWrap.__hide .btnToggle {
    background-color: #2e3191;
  }
  #sideBarWrap.__hide .dim {
    display: none;
  }
  #sideBarWrap .util ul a:hover {
    opacity: 1;
  }
}
/* sideBar(e) */
