@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fjalla+One&family=Yanone+Kaffeesatz:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");
* {
  padding: 0;
  margin: 0;
  border: 0;
}

*, *:before, *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus, :active {
  outline: none;
}

a:focus, a:active {
  outline: none;
}

nav, footer, header, aside {
  display: block;
}

html, body {
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input, button, textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a, a:visited {
  text-decoration: none;
  color: black;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: 400;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.row1 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

table {
  text-align: center;
  margin: 100px 0 0 0;
}

.date {
  display: none;
}

.chart {
  width: 100%;
  min-height: 450px;
}

.main__title {
  margin: 0 0 30px 0;
  word-wrap: break-word;
  text-align: center;
  font-size: 60px;
  font-family: "Russo One", sans-serif;
  letter-spacing: 25px;
}

.buttons-load {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.buttons-charger {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.but-title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 16px;
}

.electricity {
  margin: 0 0 5 0px 0;
}

.electricity-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.electricty-img img {
  width: 200px;
}

.electricity-on {
  display: none;
}

.electricity-off {
  display: none;
}

.electricity-text {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
}

.animationGreen {
  -webkit-animation: butAnimationGreen 1s infinite;
          animation: butAnimationGreen 1s infinite;
}

.animationRed {
  -webkit-animation: butAnimationRed 1s infinite;
          animation: butAnimationRed 1s infinite;
}

.but {
  -webkit-transition: 1s;
  transition: 1s;
  cursor: pointer;
  margin: 0 20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-transform: uppercase;
  font-size: 25px;
  font-weight: 600;
  background: lightgray;
}
.but img {
  display: block;
  width: 30px;
  height: 30px;
}

.red {
  background: red;
  border: darkred;
}

.green {
  background: green;
  border: darkgreen;
}

.header__container {
  margin: 20px;
}
.header__row-left {
  margin: 0 0px 0 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.header__row-center {
  margin: 20px 100px 20px 0px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.title {
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Fjalla One", sans-serif;
  font-size: 24px;
}

.logo-img {
  max-width: 160px;
}

.header-row__center-text {
  font-family: "Yanone Kaffeesatz", sans-serif;
  font-size: 30px;
  font-weight: 600;
}
.arrow-img {
  max-width: 30px;
}

.account {
  text-decoration: none;
  height: 100px;
  width: 100px;
  margin: 0px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.account__logo img {
  max-width: 60px;
}
.account__text {
  margin: 15px 0 0 0;
  font-size: 20px;
  font-family: "Yanone Kaffeesatz", sans-serif;
}

.account-img {
  max-width: 60px;
}

.account-logout {
  display: none;
}

.devices {
  margin: 10px 0;
  display: none;
}
.devices__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 20px;
  width: 400px;
  height: 200px;
  background: lightgray;
  border-radius: 5px;
}

.device {
  text-align: center;
  margin: 10px;
}
.device__img {
  width: 80px;
  height: 60px;
  background: darkgray;
  border-radius: 5px;
}
.device__name {
  font-family: "Yanone Kaffeesatz", sans-serif;
  letter-spacing: 2px;
  font-size: 19px;
  margin: 2px;
}

.header__container {
  margin: 20px;
}
.header__row-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.header__row-center {
  margin: 20px 100px 20px 0px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.title {
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Fjalla One", sans-serif;
  font-size: 24px;
}

.logo-img {
  max-width: 160px;
}

.header-row__center-text {
  font-family: "Yanone Kaffeesatz", sans-serif;
  font-size: 30px;
  font-weight: 600;
}
.arrow-img {
  max-width: 30px;
}

.account {
  text-decoration: none;
  height: 100px;
  width: 100px;
  margin: 0px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.account__logo img {
  max-width: 60px;
}
.account__text {
  margin: 15px 0 0 0;
  font-size: 20px;
  font-family: "Yanone Kaffeesatz", sans-serif;
}

.account-img {
  max-width: 60px;
}

.account-logout {
  display: none;
}

.devices {
  margin: 10px 0;
  display: none;
}
.devices__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 20px;
  width: 400px;
  height: 200px;
  background: lightgray;
  border-radius: 5px;
}

.device {
  text-align: center;
  margin: 10px;
}
.device__img {
  width: 80px;
  height: 60px;
  background: darkgray;
  border-radius: 5px;
}
.device__name {
  font-family: "Yanone Kaffeesatz", sans-serif;
  letter-spacing: 2px;
  font-size: 19px;
  margin: 2px;
}

.main {
  margin: 100px 100px 0 100px;
}

.main-title {
  text-align: center;
  font-family: "Comfortaa", cursive;
  font-size: 50px;
  margin: 50px;
  font-weight: 600;
  letter-spacing: 25;
}

.main__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.block {
  margin: 30px;
}
.block__container {
  padding: 125px 0;
  background: url(../../../photos/Мурафа.png);
  border-radius: 15px;
  width: 700px;
  height: 400px;
  position: relative;
}
.block__content {
  position: absolute;
  left: 80%;
  top: 75%;
}
.block__name {
  text-align: center;
  font-family: "Comfortaa", cursive;
  font-weight: 600;
  letter-spacing: 40px;
  font-size: 60px;
}
.block__counter {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-size: 40px;
  margin: 30px;
  color: black;
  width: 60px;
  font-weight: bold;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.block__indications {
  width: 100%;
  height: 70px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  bottom: 0px;
  border-radius: 10px;
}

.indications-row {
  height: 100%;
  width: 100%;
}

.indications__left {
  width: 50%;
  height: 100%;
}
.indications__right {
  width: 50%;
  height: 100%;
}

.indication {
  font-family: "Yanone Kaffeesatz", sans-serif;
  letter-spacing: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 40px;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.voltage {
  background: rgba(0, 100, 0, 0.8);
}
.current {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: rgba(100, 0, 0, 0.8);
}
.circle {
  margin: 0 5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: darkgreen;
  position: absolute;
  top: 10px;
  right: 5px;
}

.switch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 300px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-transform: uppercase;
  font-weight: 600;
}

input[type=checkbox] {
  height: 0;
  width: 0;
  visibility: hidden;
}

label {
  cursor: pointer;
  text-indent: -9999px;
  width: 100px;
  height: 50px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

label:after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 45px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

input:checked + label {
  background: #bada55;
}

input:checked + label:after {
  left: calc(100% - 5px);
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
}

label:active:after {
  width: 130px;
}

.disable {
  background: darkgray;
}

@-webkit-keyframes butAnimationGreen {
  0% {
    border: 2px darkgreen solid;
  }
  50% {
    border: 8px darkgreen solid;
  }
  100% {
    border: 2px darkgreen solid;
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
    -webkit-transition: 1s;
    transition: 1s;
  }
}

@keyframes butAnimationGreen {
  0% {
    border: 2px darkgreen solid;
  }
  50% {
    border: 8px darkgreen solid;
  }
  100% {
    border: 2px darkgreen solid;
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
    -webkit-transition: 1s;
    transition: 1s;
  }
}
@-webkit-keyframes butAnimationRed {
  0% {
    border: 2px darkred solid;
  }
  50% {
    border: 8px darkred solid;
  }
  100% {
    border: 2px darkred solid;
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
    -webkit-transition: 1s;
    transition: 1s;
  }
}
@keyframes butAnimationRed {
  0% {
    border: 2px darkred solid;
  }
  50% {
    border: 8px darkred solid;
  }
  100% {
    border: 2px darkred solid;
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
    -webkit-transition: 1s;
    transition: 1s;
  }
}
html {
  margin: 0;
}

.chart {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.load {
  width: 300px;
  height: 100px;
}

.loading {
  margin: -20px 0 0 0;
  min-width: 100%;
  position: fixed;
  z-index: 117575475471;
  height: 100%;
  background: rgba(100, 100, 100, 0.6);
}

.loading__container {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.loading__content img {
  width: 300px;
}

.buttons-row {
  padding: 10px 0px;
  border-radius: 10px;
}

.restricted {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: silver;
}
.restricted * {
  cursor: not-allowed;
}

.account-but {
  text-decoration: none;
}

@media (max-width: 1000px) {
  .buttons-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: 400px;
    margin: 0 3%;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}
@media (max-width: 1000px) {
  .loading {
    margin: -40px 0 0 0;
  }
  .chart {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: 350px;
  }
  .header__container {
    margin: 40px 0;
  }
  .header__row {
    margin: 0 10px;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .header__row-center {
    width: 100%;
  }
  .header__row-center {
    margin: 40px 0 0 0;
  }
  .account {
    position: absolute;
    top: 15px;
    right: 30px;
  }
}
@media (max-width: 700px) {
  .header__row-center {
    width: 100%;
  }
  .account {
    position: absolute;
    top: 15px;
    right: 5px;
  }
  .header__row {
    margin: 0 0px;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
}
.status {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 10px 0 0 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.status-container {
  width: 500px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 10px;
  border-radius: 8px;
}
.status-circle {
  width: 40px;
  height: 40px;
  background: red;
  border-radius: 50%;
  margin: 0 20px;
}
.status-text {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 25px;
  font-weight: 600;
}
.status-time {
  text-align: center;
  margin: 0 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 25px;
  font-weight: 600;
}

.cur {
  display: none;
}

.energyStatus {
  margin: 0px 0 30px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.energyStatus-container {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.gotEnergy {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 30px;
}

.energy-img {
  position: relative;
}
.energy-img img {
  width: 150px;
}

.energyAmount {
  z-index: 20;
  position: absolute;
  top: 25%;
  font-size: 25px;
  left: 25%;
  font-weight: 700;
  color: darkgreen;
}

.container {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}