﻿#RGBKeyboard {
  background: #0d0d0d;
  color: #fff;
  padding: 50px 0 0 0;
}

#RGBKeyboard .center {
  position: relative;
}

#RGBKeyboard .frame {
  position: relative;
  z-index: 12;
  width: 1130px;
  margin: 0 auto;
}

.rgb_bg {
  position: relative;
  margin: -120px auto 0;
  width: 1192px;
  height: 827px;
  background: url("../images/RGBKeyboard_1920.jpg") center bottom no-repeat;
  z-index: 11;
}

.rgb_control {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 250px;
  background: rgba(85, 118, 129, 0.1);
  z-index: 20;
}

.rgb_control_panel {
  margin: 35px auto;
  text-align: center;
  list-style: none;
  padding: 0;
}

.rgb_control_panel li {
  position: relative;
  display: inline-block;
  padding: 10px 50px;
  vertical-align: top;
  min-height: 123px;
}

.rgb_control_panel li:after {
  content: '';
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
}

.rgb_control_panel li:last-child:after {
  border: none;
  content: none;
}

.rgb-icons {
  margin: 0 auto 15px;
}

.rgb-icons .btn-rgbicon {
  margin: 0 4px;
}

#KBframe {
  position: absolute;
  left: 61px;
  top: 180px;
  width: 1064px;
  height: 308px;
  overflow: hidden;
}

.icon-rgbicon {
  width: 64px;
  height: 64px;
  background: url("../images/rgb-icon.png") 0 0 no-repeat;
}

.icon-rgbicon:after {
  content: '';
  background: url("../images/rgb-icon_hover.png");
  width: 1px;
  height: 1px;
  visibility: hidden;
  opacity: 0;
}

.icon-rgbicon-wave {
  background-position: 0px 0;
}

.icon-rgbicon-breathing {
  background-position: -64px 0;
}

.icon-rgbicon-raindrop {
  background-position: -128px 0;
}

.icon-rgbicon-marquee {
  background-position: -192px 0;
}

.icon-rgbicon-waveonkeypress {
  background-position: -256px 0;
}

.icon-rgbicon-static {
  background-position: -320px 0;
}

.icon-rgbicon-gametype {
  background-position: -384px 0;
}

.btn-rgbicon {
  position: relative;
  border-radius: 50%;
  perspective: 200px;
}

.btn-rgbicon .btn-rgbbtntitle {
  opacity: 0;
  transition: all 400ms ease;
  transform-style: preserve-3d;
  transform-origin: center;
  transform: translateY(10px);
}

.btn-rgbicon.hover .btn-rgbbtntitle {
  opacity: 1;
  transform: translateY(0);
}

.btn-rgbicon:hover, .btn-rgbicon.active {
  box-shadow: 0 0 15px 0px rgba(255, 255, 255, 0.2);
  transition: box-shadow 250ms ease;
}

.btn-rgbicon:hover .icon-rgbicon, .btn-rgbicon.active .icon-rgbicon {
  background-image: url("../images/rgb-icon_hover.png");
  transition: background-image 300ms ease;
}

span.btn-rgbbtntitle {
  position: absolute;
  top: -28px;
  width: auto;
  left: 50%;
  line-height: 14px;
  word-wrap: normal;
  white-space: nowrap;
}

span.btn-rgbbtntitle:before {
  content: '[';
  margin-right: 5px;
}

span.btn-rgbbtntitle:after {
  content: ']';
  margin-left: 5px;
}

.icon-wavedir {
  width: 24px;
  height: 24px;
  background: url("../images/icon-wavedirection.png") 0 0 no-repeat;
}

.icon-wavedir-left {
  background-position: 0px 0;
}

.icon-wavedir-right {
  background-position: -24px 0;
}

.icon-wavedir-up {
  background-position: -48px 0;
}

.icon-wavedir-down {
  background-position: -72px 0;
}

.btn-wavedir .icon-wavedir {
  transition: opacity 400ms ease;
  opacity: 0.2;
}

.btn-wavedir:hover .icon-wavedir, .btn-wavedir.active .icon-wavedir {
  opacity: 1;
}

#rd-kb {
  position: relative;
  width: 1118px;
  height: 503px;
}

.kb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/kbframe.png") 0 0 no-repeat;
  z-index: 99;
}

.ef, .ef-img {
  position: absolute;
  left: 0;
  top: 0;
}

.ef {
  width: 100%;
  height: 100%;
  transition: opacity 400ms ease 0s;
  opacity: 0;
}

#kb-ef {
  position: absolute;
  left: -25px;
  top: -61px;
}

#kb-ef.marquee_single #ef2-marquee,
#kb-ef.marquee #ef2-marquee,
#kb-ef.wave_td .ef1-td-img,
#kb-ef.wave_lr .ef1-lr-img,
#kb-ef.default #ef0-default,
#kb-ef.raincolor #vkb,
#kb-ef.waveonkey #ef6-waveonkeypress,
#kb-ef.gametype #ef7-gametype,
#kb-ef.singlecolor #ef3-static,
#kb-ef.breathcolor #ef4-breath {
  opacity: 1;
}

#ef6-waveonkeypress {
  background: #4e4e4e;
}

.kb-ef {
  position: absolute;
  top: 62px;
  left: 88px;
  width: 996px;
  height: 305px;
  overflow: hidden;
}

.kb-gkey {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 60px;
  height: 307px;
  z-index: 98;
  background: red;
}

.ef1-lr-img {
  background: url("../images/rainbow-x.png") 0 0 repeat-x;
}

.ef1-td-img {
  background: url("../images/rainbow-y.png") 0 0 repeat-y;
}

.ef2-img {
  width: 349px;
  height: 43px;
  background: url("../images/Marquee.png") 0 0 no-repeat;
}

.ef2-img-2 {
  transform: rotateY(180deg);
}

#ef0-default {
  background: url("../images/rainbow-x.png") 0 0 repeat-x;
}

#ef4-breathing {
  width: 100%;
  height: 100%;
  transition: background-color 1.5s ease 0s;
}

.default-color {
  background: #4e4e4e;
}

.ag-keyboard-press {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  background: none;
  transition: opacity 400ms ease-in-out 0s;
}

.ag-keyboard-press.on {
  opacity: 1;
  transition: opacity 200ms ease-out 0s;
}

.ef6-img {
  width: 281px;
  height: 295px;
  background: url("../images/wave.png") 0 0 no-repeat;
  transition: transform 400ms ease 0s;
  transform: scale(0.4);
}

.ef6-img.on {
  transform: scale(1);
}

.ef6-img.right {
  transform: rotateY(180deg) scale(0.4);
}

.ef6-img.right.on {
  transform: rotateY(180deg) scale(1);
}

@keyframes wave_lr {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -1063px 0;
  }
}

@keyframes wave_td {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -611px;
  }
}

.ef6-vcblock {
  left: 500px;
  width: 281px;
  height: 295px;
  transition: transform 400ms ease 0s;
  transform: scale(0.4);
}

.ef6-vcblock.on {
  transform: scale(1);
}

.ef6-vcblock.right {
  transform: rotateY(180deg) scale(0.4);
}

.ef6-vcblock.right.on {
  transform: rotateY(180deg) scale(1);
}

.ef6-vcblock .ef6-block {
  position: absolute;
  background-color: #9afeff;
}

.ef6-vcblock .block-front {
  position: absolute;
  left: 100%;
  top: 0;
  width: 15px;
  height: 100%;
  opacity: 0.2;
}

.ef6-vcblock .block-back {
  position: absolute;
  right: 100%;
  top: 0;
  width: 64px;
  height: 100%;
  opacity: 0.4;
}

.block1 {
  left: 165px;
  top: 0px;
  width: 104px;
  height: 47px;
}

.block2 {
  left: 123px;
  top: 46px;
  width: 104px;
  height: 48px;
}

.block3 {
  left: 93px;
  top: 94px;
  width: 104px;
  height: 42px;
}

.block4 {
  left: 71px;
  top: 136px;
  width: 104px;
  height: 59px;
}

.block5 {
  left: 114px;
  top: 195px;
  width: 104px;
  height: 41px;
}

.block6 {
  left: 146px;
  top: 236px;
  width: 104px;
  height: 59px;
}

.sp-preview {
  border: none;
  width: 33px;
  height: 18px;
}

#select_gt {
  width: auto;
}

.sp-dd {
  transform: scale(0.8);
}

@media screen and (max-width: 1366px) {
  .rgb_bg {
    transform: scale(0.8) translate(-140px, 0px);
    margin-top: -190px;
  }
  #RGBKeyboard {
    padding-top: 40px;
  }
  #RGBKeyboard .frame {
    width: 880px;
  }
  .rgb_control {
    height: 210px;
  }
  .rgb_control_panel li {
    padding: 10px 20px;
  }
}

@media screen and (max-width: 960px) {
  #RGBKeyboard {
    background: url(../images/rgbkb_960.jpg) center bottom no-repeat;
    height: 646px;
  }
  .rgb_bg, .rgb_control {
    display: none;
  }
  #RGBKeyboard .frame {
    width: 610px;
    padding-top: 40px;
  }
}

@media screen and (max-width: 640px) {
  #RGBKeyboard {
    background-image: url(../images/rgbkb_640.jpg);
    height: 676px;
    padding-top: 0;
  }
  #RGBKeyboard .frame {
    width: auto;
    padding-top: 20px;
  }
}
