/* Bg control ------------------------------------------*/
.bgContWrap {
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 100%;
  width: 100%;
  height: 0;
  z-index: -1;
}

.bgContWrap > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: -1;
  -webkit-transition: opacity 400ms ease-in;
  -o-transition: opacity 400ms ease-in;
  transition: opacity 400ms ease-in;
}

.bgContWrap > div.show {
  opacity: 1;
}

/* bgmPlayer -------------------------------------------*/
.bgmPlayer {
  position: fixed;
  display: table;
  table-layout: fixed;
  top: 0;
  right: 0;
  height: 30px;
  text-align: center;
  vertical-align: middle;
  font-family: 'Bellefair', serif;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0 0 0 3px;
}

.bgmPlayer > h3 {
  display: inline-block;
  padding: 0 10px 0 10px;
  font-size: 11px;
  line-height: 11px;
  color: #aaa;
}

.bgmPlayer > button {
  display: table-cell;
  width: 60px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  border: none;
  background-color: transparent;
  outline: 0;
  color: #aaa;
  font-family: 'Bellefair', serif;
}

.bgmPlayer.off > .btnBgmPause,
.bgmPlayer.on > .btnBgmPlay {
  background-color: rgba(0, 0, 0, 0.3);
  font-family: 'Bellefair', serif;
  color: #fff;
}

.bgmPlayer.off {
  opacity: 1.0;
}

.bgmPopupWrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20000;
  text-align: center;
  vertical-align: middle;
  -webkit-transition: all 1000ms;
  -o-transition: all 1000ms;
  transition: all 1000ms;
  opacity: 0;
}

.bgmPopupWrap.on {
  opacity: 1;
}

.bgmPopup {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  padding: 18px 10px 0px;
  width: 95%;
  max-width: 400px;
  height: 150px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  background-position: center;
  border-radius: 7px;
}

.bgmPopup h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 17px;
  color: #888;
  line-height: 1.2em;
}

.bgmPopup p {
  margin: 0 0 22px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
}

.bgmPopup button {
  padding: 20px 0;
  width: 45%;
  font-size: 14px;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  outline: 0;
}

.bgmPopup button:hover {
  opacity: .8;
}

.bgmPopup button.btnBgmPlay {
  background-color: #9a252b;
  border-bottom: solid 5px #7b050b;
}

.bgmPopup button.btnBgmMute {
  background-color: #888;
  border-bottom: solid 5px #666;
}

.bgmCheck {
  display: none;
}
