*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  height: 100%;
  touch-action: manipulation;
  overflow: hidden;
}

body {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  color: #fff;
  font-family: Poppins, Arial;
  font-size: 14px;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

@media (min-width: 432px) {
  .pult {
    max-height: 844px;
    border-radius: 40px;
    max-width: 390px !important;
    overflow: auto;
  }

  .wrapper {
    align-items: center;
  }

  .modal.show > .modal-content {
    margin: 20% auto !important;
  }
}

.wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pult {
  height: 100%;
  width: 100%;
  max-width: 430px;
  background: rgb(13 13 13)
    radial-gradient(circle at 50% 0, rgb(48 48 48 / 65%), rgb(54 54 54 / 52%));
  padding: 30px 20px;
}

.btn {
  box-sizing: border-box;
  display: inline-block;
  border: 0;
  text-align: center;
  vertical-align: top;
  width: 40px;
  height: 80px;
  line-height: 30px;
}

.btn.round {
  border-radius: 100%;
  position: relative;
}

.button-long {
  position: relative;
  width: 55px;
  height: 160px;
  background-color: transparent;
  border-radius: 12px;
}

button {
  box-shadow: 0px 0px 9px -5px rgb(134 134 134 / 77%);
  background-color: #1c1c1c;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.btn.off {
  height: 40px;
  background-image: url(../images/icon-power.png);
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: center;
  width: 52px;
  box-shadow: none;
  background-color: transparent;
}

.header {
  display: flex;
  align-items: center;
  column-gap: 44px;
}

.header > img {
  width: 180px;
}

.block.block-navigate {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 15%;
}

.pult .btn.text {
  font-size: 15px;
  padding: 0;
}

.button-long > button {
  width: 100%;
  background-color: #1c1c1c;
  box-shadow: none;
  box-shadow: 0px 0px 9px -5px rgb(0 0 0 / 77%);
}

.button-long > :nth-child(1) {
  margin: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.button-long > :nth-child(2) {
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top: none;
}

.navigation {
  width: 280px;
  height: 280px;
  margin: 15px 0 40px 0;
  display: inline-block;
  background: url(../images/navigation.png) no-repeat center / 100%;
  position: relative;
}

.nav-up {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 56px;
  height: 50px;
  margin-left: -28px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-up::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: url(../images/nav-up.png) no-repeat center / 20% auto;
}

.nav-down {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 56px;
  height: 50px;
  margin-left: -28px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-down::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: url(../images/nav-down.png) no-repeat center / 20% auto;
}

.nav-left {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 50px;
  height: 56px;
  margin-top: -28px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 100%;
  background: url(../images/nav-left.png) no-repeat center / auto 20%;
}

.nav-right {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 50px;
  height: 56px;
  margin-top: -28px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-right::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 100%;
  background: url(../images/nav-right.png) no-repeat center / auto 20%;
}

.nav-ok {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 2px solid #fff;
  background-color: #adb2b1;
  border-radius: 8px;
  line-height: 56px;
  z-index: 10;
  cursor: pointer;
}

.btn.round.btn-big {
  width: 160px;
  height: 160px;
  position: relative;
  box-shadow: rgb(0 0 0 / 20%) 4px 4px 4px 0px, rgb(0 0 0 / 14%) 1px 1px 1px 3px,
    rgb(0 0 0 / 12%) 3px 3px 3px 1px;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 9%, 1) 0%,
    hsla(0, 0%, 16%, 1) 100%
  );
}

.btn.round.btn-big > button {
  border: none;
  box-shadow: none;
  background-color: transparent;
}

.btn.round.btn-big .btn-big-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1c1c1c;
  box-sizing: content-box;
  display: inline-block;
  border: 0;
  text-align: center;
  vertical-align: top;
  width: 30px;
  height: 30px;
  line-height: 30px;
  padding: 5px;
  margin: 0px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #eee;
  font-size: 10px;
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.5);
}

.vol-up {
  background-image: url(../images/icon-plus.png);
  background-repeat: no-repeat;
  background-size: 18%;
  background-position: center;
}

.vol-down {
  background-image: url(../images/icon-minus.png);
  background-repeat: no-repeat;
  background-size: 18%;
  background-position: center;
}

.channel-up {
  background-image: url(../images/channel-up.png);
  background-repeat: no-repeat;
  background-size: 18%;
  background-position: center 25px;
}

.channel-down {
  background-image: url(../images/channel-down.png);
  background-repeat: no-repeat;
  background-size: 18%;
  background-position: center 50px;
}

.button-long.ch::after {
  content: "CH";
  color: white;
}

.button-long.vol::after {
  background: url(../images/icon-mute.png) no-repeat center / 86% auto;
}

.button-long::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(50%, 50%);
  right: 50%;
  bottom: 50%;
}

.block.block-navigate.util {
  margin-top: 50px;
  column-gap: 20px;
}

.block.block-navigate.util > button {
  height: 50px;
  border-radius: 12px;
  width: 78px;
}

.block.block-navigate.util > :nth-child(1) {
  width: 78px;
  background-image: url(../images/icon-home.png);
  background-repeat: no-repeat;
  background-size: 30%;
  background-position: center;
}

.block.block-navigate.util > [data-name="back"] {
  width: 78px;
  background-image: url(../images/icon-back.png);
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: center;
  flex: auto;
}

.block.block-navigate.util > [data-name="thermostat"] {
  background-image: url(../images/thermostat.png);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: center;
}

.block.block-navigate.util > :nth-child(3) {
  width: 78px;
}

.pult .choose-room {
  margin-top: 50px;
}

.choose-room {
  width: 100%;
  display: inline-block;
  display: flex;
  justify-content: center;
  align-items: center;
}

.select {
  background: transparent url(../images/arrow-select.png) no-repeat right 10px
    center;
  background-size: auto 5px;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 280px;
}

.input {
  width: 280px;
  height: 50px;
  padding: 0 14px;
  border: 2px solid #fff;
  color: #fff;
  transition: ease 0.3s;
  background-color: #565c5c;
  border-radius: 8px;
  line-height: 20px;
}
input,
textarea,
select {
  float: left;
  font-size: 14px;
  margin: 0;
  font-family: Poppins, Arial;
  font-weight: 400;
  border-radius: 0;
  border: 0;
  -webkit-appearance: none;
}

#menu {
  margin-top: 50px;
  display: flex;
  align-items: center;
  column-gap: 10px;
  overflow-x: auto;
}

div#menu > .menu-item {
  height: 95px;
  background-color: rgb(74 75 76 / 41%);
  display: flex;
  flex-direction: column;
  min-width: 110px;
  width: 110px;
  gap: 5px;
}

.menu-item {
  padding: 4px 4px 4px 8px;
}

.menu-item > img {
  width: 20px;
}

.menu-item .desc {
  font-size: 9px;
  line-height: 11px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 100%;
}

.menu-item .title {
  font-size: 14px;
  line-height: 17px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 16px;
}

button:active {
  transform: scale(0.9);
}

button:focus,
input[type="button"]:focus {
  outline: none;
}

button:active,
input[type="button"]:active {
  outline: none;
}

button.thermostat {
  margin-top: 20px;
  margin-bottom: -21px;
  width: auto;
  padding: 10px !important;
  border-radius: 10px;
  height: auto;
  background: gray;
  margin-left: auto;
  display: block;
  margin-right: auto;
}

.vol-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #80808099;
  opacity: 0.3;
  border-bottom-right-radius: 12px;
  height: 100px;
  border-bottom-left-radius: 12px;
  pointer-events: none;
}

.modal {
  display: none;
}

.modal.show {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgb(0 0 0 / 82%);
  display: block;
}

.modal.show > .modal-content {
  margin: 50% auto;
  width: 300px;
  height: 350px;
  background: white;
  padding: 40px 15px 20px 15px;
  border-radius: 14px;
  background: rgb(13 13 13)
    radial-gradient(circle at 50% 0, rgb(48 48 48 / 65%), rgb(54 54 54 / 52%));
  overflow: auto;
  position: relative;
}

.modal.show > .modal-content > .modal-inner .channel-item {
  height: 40px;
  padding: 10px 20px;
  border: 1px solid;
  border-radius: 10px;
  margin-bottom: 10px;
}

.modal.show > .modal-content > .modal-inner .channel-item.active {
  background: white;
  color: black;
}

p.channel-title {
  font-size: 20px;
}

.modal-inner {
  height: 100%;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-image: url(../images/icon-close.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
}

.btn.vol-up {
  height: 60px;
}

.btn.vol-down {
  height: 60px;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

.btn.mute {
  height: 40px;
  border-radius: 0;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000e3;
  z-index: 1;
  justify-content: center;
  align-items: center;
  display: none;
}

.loading.show {
  display: flex;
}

.spinner {
  width: 75px;
  height: 75px;
  display: inline-block;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.05);
  border-top-color: #fff;
  animation: spin 1s infinite linear;
  border-radius: 100%;
  border-style: solid;
}

.swipe {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.swipe p {
  font-size: 12px;
  margin-right: 5px;
  filter: brightness(0.7);
}

.swipe .swipe-left {
  width: 16px;
  height: 16px;
  background-image: url(../images/icon-double-left.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  margin-right: 3px;
  filter: brightness(0.7);
}

.swipe .swipe-right {
  width: 16px;
  height: 16px;
  background-image: url(../images/icon-double-left.png);
  transform: rotate(180deg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  margin-left: 3px;
  filter: brightness(0.7);
}

div#menu::-webkit-scrollbar {
  display: none;
}

.expr-msg {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 36px;
}

.hide {
  display: none;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
