* {
  box-sizing: border-box;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  font-family: Montserrat Arial, sans-serif;
  transition: background ease-in-out 0.3s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* height: -webkit-fill-available; */
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.33),
    rgba(0, 0, 0, 0)
  );
  opacity: 0.4;
  z-index: -1;
}

.overlay-offline {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(200,200,200,0.8);
  z-index: 2;
  display: flex;
  opacity: 1 !important;
  font-weight: bold;
  font-size: 30px;
  align-items: center;
  justify-content: center;
}

.login-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      89.45% 65.29% at 0% 0%,
      rgba(243, 37, 74, 0.33) 0%,
      rgba(243, 37, 74, 0) 100%
    ),
    radial-gradient(
      76.67% 86.68% at 100% 100%,
      rgba(43, 174, 111, 0.33) 0%,
      rgba(44, 175, 112, 0) 100%
    ),
    #445065;
}

.header__circle {
  opacity: 0;
  position: absolute;
  width: 100vh;
  height: 100vh;
  top: -50vh;
  left: -23vh;
  border-radius: 100vh;
  z-index: -1;
  background: radial-gradient(
      89.45% 65.29% at 0% 0%,
      rgba(243, 37, 74, 0.33) 0%,
      rgba(243, 37, 74, 0) 100%
    ),
    radial-gradient(
      76.67% 86.68% at 100% 100%,
      rgba(43, 174, 111, 0.33) 0%,
      rgba(44, 175, 112, 0) 100%
    ),
    #445065;
}

body.go,
body.auto {
  background-color: #23ae6b;
}

body.stop {
  background-color: #f81c43;
}

body.cameras {
  background-color: #333;
}

body.add {
  background-color: #e5e5e5;
}

body.login {
  background-color: #233254;
}

#page_container {
  /*  transform: translateX(100%); */
  /* transition: transform 2s ease-in-out ; */
}

.login-form {
  display: grid;
  grid-gap: 5%;
}

.header {
  width: 60px;
  height: 56px;
  display: flex;
  right: 0;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  position: absolute;
}

.header__menu-toggle {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  color: #fff;
}

.container__buttons {
  display: grid;
  grid-template-rows: 40px 50px;
  grid-gap: 20%;
}

.container__buttons .buttons {
  display: flex;
  justify-content: space-between;
  padding: 0 2%;
}

.container__buttons .analytics {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  padding: 0 2%;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.container__buttons .analytics span {
  opacity: 0.7;
}

.container__buttons .analytics p {
  font-size: 24px;
  margin: 0;
}

.container__buttons button {
  padding: 10px;
  color: #fff;
  border-radius: 5px;
  background: none;
  border: 1px solid;
  font-size: 12px;
  width: 130px;
}

.container {
  display: grid;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  /* height: -webkit-fill-available; */
  grid-gap: 3%;
  padding: 6%;
}

.container.home {
  grid-auto-rows: minmax(150px,auto) 150px 130px;
}

.container.cameras {
  grid-auto-rows: 30vh 40vh;
}

.container.add-cameras {
  grid-auto-rows: 10vh 70%;
}

.container.activate-cameras {
  grid-auto-rows: 10vh 30vh;
}
.container.activate-player {
  grid-auto-rows: 10vh calc(var(--vh, 1vh) * 45);
}


input {
  height: 40px;
  background: #fbfbfb;
  box-shadow: inset 0px 0px 30px rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  border: none;
  padding: 0 5%;
}

.btn-prim {
  height: 40px;
  background: #1b1f26;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  color: #fff;
}

.btn-ghost {
  height: 40px;
  background: #fff;
  color: #1b1f26;
  border: none;
  max-width: 100px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.container.activate-cameras section,
.container.activate-player section,
.container.cameras section,
.container.add-cameras section {
  background: #ffffff;
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 8px 0px;
}
.container.activate-player section,
.container.activate-cameras section {
  padding: 5% 10% !important;
  font-weight: bold;
  display: grid;
}

.cameras__title {
  display: grid;
  justify-content: center;
  align-items: center;
}
.cameras__title .error {

}

.cameras__title .success {
  color: #3bcf63;

}

.cameras__title i {
  display: grid;
  font-size: 150px;
}

/* .cameras__title span {
} */

.container__cameras__title {
  display: grid;
  align-items: center;
  font-weight: bold;
  margin-top: 20px;
}

.container__cameras__title button {
  border: none;
  background: none;
}

.container__cameras__title.add {
}

.container__cameras__title.update {
  grid-template-columns: 20px auto 40px 40px;
}

.cameras__back {
  position: absolute;
  background: none;
  border: none;
  align-items: center;
  padding: 0 16px;
  width: 60px;
  height: 56px;
}

.cameras__back a {
  color: #000;
}

.camera-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow-y: scroll;
}

.add-camera {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0px 6px 0 50px;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
}

.camera-list li a {
  display: grid;
  grid-template-columns: 50px auto 30px;
  height: 50px;
  align-items: center;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none;
  color: #000;
}

.cameras__instructions {
  display: grid !important;
  grid-template-rows: 50px 60vh;
  align-items: center;
  padding: 5% 10% !important;
  font-weight: bold;
}

.cameras__activation p {
  font-weight: bold;
  font-size: 16px;
  padding: 3% 10% 0 10%;
  margin: 0;
}

.cameras__activation .buttons {
  padding: 0 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 5%;
}

.cameras__activation .title,
.cameras__instructions .title {
  color: #1b1f26;
  opacity: 0.5;
}

.center {
  display: grid;
  justify-items: center;
  align-content: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
}

.dot.red {
  background-color: red;
}

.dot.green {
  background-color: greenyellow;
}

.container section.card {
  background-color: #fff;
  padding: 8% 6%;
  font-size: 14px;
  display: grid;
  grid-template-rows: auto 42px;
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.container section.card .modes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: #f1f1f1;
  border-radius: 8px;
}

.card button {
  border: none;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  color: #1b1f26;
  opacity: 0.5;
  transition: transform ease-in-out 0.3s;
  outline: none;
}

i {
  pointer-events: none;
}

.modes .active {
  opacity: 1;
  transform: scale(1.2);
  background: #ffffff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.container_counter-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container_counter-section p {
  color: #fff;
  font-size: 1.5rem;
  margin-top: 40px;
}

.container__counter-indicator {
  width: 50%;
  position: absolute;
  color: #fff;
}

.container__counter-indicator::after {
  content: attr(data-percent)"%";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  font-weight: bold;
  font-size: 2rem;
}

svg {
  animation: scaleup 0.5s 0s 1 ease-in-out forwards;
}

svg circle {
  opacity: 0.2;
  fill: none;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

svg circle:last-of-type {
  stroke: #ddd;
  transition: stroke-dashoffset 0.5s ease-out;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.side-nav--visible {
  pointer-events: auto;
}

.side-nav::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.3s cubic-bezier(0, 0, 0.3, 1);
}

.side-nav__container {
  position: absolute;
  right: 0;
  width: 90%;
  max-width: 400px;
  background: #fff;
  height: 100%;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
  transform: translateX(106%);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.side-nav--animatable .side-nav__container {
  transition: transform 0.13s cubic-bezier(0, 0, 0.3, 1);
}

.side-nav--visible.side-nav--animatable .side-nav__container {
  transition: transform 0.33s cubic-bezier(0, 0, 0.3, 1);
}

.side-nav--visible::before {
  opacity: 1;
}

.side-nav--visible .side-nav__container {
  transform: none;
  /* transform: translateX(106%); */
}

.side-nav__hide {
  position: absolute;
  right: 16px;
  top: 10px;
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
}

.side-nav__header {
  font-family: "Montserrat";
  color: rgba(27, 31, 38, 0.5);
  display: flex;
  padding: 10px 40px;
  align-items: flex-end;
  font-size: 20px;
}

.side-nav__content {
  padding-top: 32px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.side-nav__content li {
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
}

.side-nav__content li a {
  display: grid;
  grid-template-columns: 50px 3fr 30px;
  align-items: center;
  text-decoration: none;
  color: #808080;
}

.side-nav__content li.active {
  border-left: 5px solid #000;
  color: #000;
}

.side-nav__content li:hover {
  background: #ccc;
}

@keyframes scaleup {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  72% {
    transform: scale(1.1);
  }

  84% {
    transform: scale(0.95);
  }

  98% {
    transform: scale(1);
  }

  99% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0.75;
  }

  50% {
    opacity: 0.75;
  }

  100% {
    opacity: 1;
  }
}

.form {
  background: #ffffff;
  width: 85%;
  height: 50%;
  padding: 3% 5% 5% 5%;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
  border-radius: 5px;
  display: grid;
}

form input:invalid {
  border-color: red;
}

input:valid {
  border-color: #e5e5e5;
}

.form button:hover,
.form button:active,
.form button:focus {
  background: rgba(61, 61, 61, 0.8);
}

.form .hidden {
  opacity: 0;
  height: 0;
}

.tab {
  display: flex;
  width: 50%;
  max-width: 300px;
  justify-content: space-evenly;
}

.tab-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.side-nav__header span,
.tab-container a span{
  color: #e5e5e5;
}

.tab-container a {
  text-decoration: none;
  color: rgba(27, 31, 38, 0.5);
  transition: ease-in-out 0.2s;
}

.tab-container .active {
  color: #000;
}

#toast {
  position: absolute;
  bottom: 0;
  width: 100%;
  top: 85vh;
  transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);
  transform: translateY(15vh);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
}

#toast.success {
  display: grid;
  grid-template-columns: auto 20px;
  align-items: center;
  background: radial-gradient(
      89.45% 65.29% at 0% 0%,
      rgba(243, 37, 74, 0.33) 0%,
      rgba(243, 37, 74, 0) 100%
    ),
    radial-gradient(
      76.67% 86.68% at 100% 100%,
      rgba(43, 174, 111, 0.33) 0%,
      rgba(44, 175, 112, 0) 100%
    ),
    #445065;
}
#toast.error {
  background: radial-gradient(
      89.45% 65.29% at 0% 0%,
      rgba(243, 37, 74, 0.33) 0%,
      rgba(243, 37, 74, 0) 100%
    ),
    radial-gradient(
      76.67% 86.68% at 100% 100%,
      rgba(43, 174, 111, 0.33) 0%,
      rgba(44, 175, 112, 0) 100%
    ),
    #445065;
}

.collapse div {
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
}
.collapse div:nth-child(odd) {
  background-color: rgba(241, 241, 241, 0.5);
}

.scroll {
  overflow-y: scroll;
}
.left {
  text-align: right;
    padding: 0 5%;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat Regular'), local('Montserrat-Regular'),
       url('../fonts/Montserrat-Regular.ttf') format('truetype')
}

.install-btn {
  position: absolute;
  background: none;
  color: #fff;
  border: none;
  display: none;
}