@font-face {
  font-family: NotoSansCJKtc;
  src: url(../assets/font/Noto_Sans_TC/NotoSansTC-Thin.otf);
}
html {
  font-size: 100%;
}

body {
  height: 100vh;
  margin: 0;
  font-family: NotoSansCJKtc;
}

.hide {
  display: none;
}

h1 {
  margin: 0;
}

p {
  margin: 0.4em;
}
p#state {
  height: 1.875rem;
  color: #FF0000;
}

div#remote, div#local {
  display: none;
}

a#gotomain {
  font-size: 0;
  position: absolute;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
}
a#gotomain:focus, a#gotomain:active {
  font-size: 1rem;
  z-index: 100;
  padding: 8px;
}

.header {
  width: 100%;
  background-color: #ffcf00;
}
.header .logo {
  display: block;
}

.content {
  width: 100%;
  font-weight: 300;
  text-align: center;
  background: -webkit-gradient(linear, left top, left bottom, from(#fff805), to(#ffffff));
  background: linear-gradient(#fff805, #ffffff);
}
.content .content-background {
  width: 100%;
  height: 100%;
  padding-bottom: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: url("../assets/img/background.png") no-repeat;
  background-size: auto 100%;
}

.over-img,
.call-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 25vh;
  margin-top: 14vh;
  margin-bottom: 5vh;
}

.title-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 4.82vh;
}

.volume .slider {
  vertical-align: middle;
}

.speaker-icon,
.volume-icon {
  width: 23px;
  vertical-align: middle;
}

.btn {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-family: NotoSansCJKtc;
  font-weight: 300;
  margin: 3vh auto 0;
  outline: 0;
}
.btn span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: 50px;
}
.btn span.hide {
  display: none;
}
.btn .call {
  background-color: #ffcf00;
  color: #000000;
}
.btn .over {
  background-color: #ff1515;
  color: #FFFFFF;
}
.btn:hover .call, .btn:focus .call {
  background-color: #ff1515;
  color: #FFFFFF;
}

@media screen and (max-width: 640px), (max-height: 600px) {
  .header {
    height: 51px;
  }
  .header .logo {
    width: 148px;
    display: block;
    padding: 14px 0 0 11px;
  }

  .content {
    height: calc(100% - 51px);
    font-size: 1.125rem;
  }
  .content .content-background {
    background-position: center -5vh;
  }
  .content .content-background .volume .slider {
    -webkit-appearance: none;
    width: 171px;
    height: 5px;
    border-radius: 8px;
    background-color: #d2d2d2;
    margin-left: 1.4832rem;
    margin-top: 0.5rem;
    outline: none;
  }
  .content .content-background .volume .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background-color: #ffcf00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin: 0;
  }
  .content .content-background .volume .slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background-color: #ffcf00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
  }
  .content .content-background .volume .speaker-icon {
    width: 3.625rem;
  }

  .btn {
    width: 130px;
    height: 28px;
    line-height: 28px;
    font-size: 0.875rem;
  }
}
@media screen and (min-width: 641px) {
  .header {
    width: 100%;
    height: 9.375vh;
    background-color: #ffcf00;
  }
  .header .logo {
    width: auto;
    padding: 2.475vh 0 0 10.417vh;
  }

  .content {
    height: calc(100% - 9.375vh);
    font-size: 1.25rem;
  }
  .content .content-background {
    height: 100%;
    background-position: center top;
  }
  .content .content-background .volume .slider {
    -webkit-appearance: none;
    margin: 0px 0 0px 15px;
    width: 164px;
    cursor: pointer;
  }
  .content .content-background .volume .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #ffcf00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin: -6px 0px 0px 0px;
  }
  .content .content-background .volume .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #ffcf00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
  }
  .content .content-background .volume .slider::-ms-thumb {
    width: 20px;
    height: 20px;
    background-color: #ffcf00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
  }
  .content .content-background .volume .slider::-webkit-slider-runnable-track {
    width: 164px;
    height: 8px;
    cursor: pointer;
    background: #d2d2d2;
    border-radius: 8px;
    border: none;
  }
  .content .content-background .volume .slider::-moz-range-track {
    width: 164px;
    height: 8px;
    cursor: pointer;
    background: #d2d2d2;
    border-radius: 8px;
    border: none;
  }
  .content .content-background .volume .slider::-ms-track {
    width: 164px;
    height: 8px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
  }
  .content .content-background .volume .slider::-ms-fill-lower {
    background: #d3d3d3;
    border: none;
    border-radius: 3.6px;
  }
  .content .content-background .volume .slider:focus::-ms-fill-lower {
    background: #d2d2d2;
  }
  .content .content-background .volume .slider::-ms-fill-upper {
    background: #d2d2d2;
    border: none;
    border-radius: 2.6px;
  }
  .content .content-background .volume .slider:focus::-ms-fill-upper {
    background: #d3d3d3;
  }

  .btn {
    width: 246px;
    height: 7.22vh;
    max-height: 50px;
    margin-top: 4vh;
    font-size: 1.2em;
  }
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .speaker-icon {
    margin-top: -20px !important;
  }

  .volume-icon {
    margin-top: -20px !important;
  }
}
@media screen and (min-width: 641px) and (max-height: 600px) {
  .header {
    height: 51px;
  }
  .header .logo {
    width: 148px;
    padding: 14px 0 0 11px;
  }

  .content {
    height: calc(100% - 51px);
    font-size: 1.125rem;
  }
  .content .content-background {
    background-position: center -5vh;
  }
  .content .content-background .volume .slider {
    width: 171px;
    height: 5px;
  }
  .content .content-background .volume .slider::-webkit-slider-runnable-track {
    height: 5px;
  }
  .content .content-background .volume .slider::-moz-range-track {
    height: 5px;
  }
  .content .content-background .volume .slider::-ms-track {
    height: 5px;
  }

  .btn {
    width: 130px;
    height: 28px;
    line-height: 28px;
    font-size: 0.875rem;
  }
}
.blockOverlay {
  display: none;
  cursor: default;
  z-index: 1000;
  border: none;
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background-color: black;
  opacity: 0.6;
  position: fixed;
}

@-webkit-keyframes circle {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes circle {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.blockIndicator {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  border-radius: 50%;
  border: 6px solid #f2f2f2;
  border-left: 6px solid #1696e7;
  -webkit-animation: circle 1.1s infinite linear;
  animation: circle 1.1s infinite linear;
  position: fixed;
}
