* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  color: #fff;
}

.close-s {
  -webkit-transform: translate(-101%, -1%);
          transform: translate(-101%, -1%);
}

.big-Photo {
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
  z-index: 30;
}

.back-window-photo {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.394);
  z-index: 25;
  text-align: center;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: -1vw;
  left: 0;
  width: 30%;
  background-color: #fff;
  text-align: center;
  padding: 0.4em 1em;
  z-index: 10;
  -webkit-transition-duration: 1s;
          transition-duration: 1s;
}

.sidebar__btn {
  width: 20%;
  background-color: rgba(152, 152, 152, 0.34);
  position: absolute;
  top: 0;
  bottom: -1vw;
  left: 100%;
  z-index: 21;
  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;
  cursor: pointer;
  -webkit-transition-duration: 0.2s;
          transition-duration: 0.2s;
}

.sidebar__btn span {
  color: rgba(255, 255, 255, 0.435);
  -webkit-transition-duration: 0.3s;
          transition-duration: 0.3s;
}

.sidebar__btn:hover {
  background-color: rgba(159, 159, 159, 0.537);
}

.sidebar__btn:hover span {
  color: white;
}

.sidebar__title {
  color: #000;
  padding: 0.5em 0.4em 0.2em;
  font-size: 2vw;
}

.sidebar__title-album {
  color: #000;
  padding: 0.6em 0;
  font-size: 1.5vw;
}

.sidebar__title-settings {
  font-size: 1.3vw;
  color: #000;
}

.sidebar__album {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: start;
}

.sidebar .s-photo {
  width: 46%;
  margin: 0 2% 1.2vw;
  cursor: pointer;
  border-radius: 5px;
}

.sidebar .s-photo:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  -webkit-transition-duration: 0.5s;
          transition-duration: 0.5s;
}

/* value fields */
.field {
  border: 1px solid black;
  border-radius: 10px;
  background-color: #7e756a;
  width: 90px;
  text-align: center;
  color: #fff;
  outline: none;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.632);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.632);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.wrapper {
  width: 80%;
  margin: 0 auto;
}

.header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-color: #000;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 10vh;
}

.header .header__logo {
  margin: 0 6% 0 8%;
  width: 7%;
  display: block;
}

.header .header__title {
  width: 55%;
}

.header .header__link {
  width: 15%;
  margin-left: 6%;
  margin-right: 3%;
  font-weight: 600;
  text-decoration: none;
}

.header .header__link:hover {
  color: #9f9f9f;
}

.link__content {
  display: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.header__link:hover + .link__content {
  display: block;
  position: absolute;
  width: 20%;
  top: 10vh;
  right: 2vw;
  border: 2px solid black;
  border-radius: 10px;
  background-color: #fff;
  padding: 10px;
  -webkit-transition-duration: 2s;
          transition-duration: 2s;
}

.link__text {
  color: #000;
  font-size: 1em;
}

.main {
  background-image: url(../assets/orange-floor-and-wall-background-3d-rendering_43151-1031.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 5vh 0 8vh;
  overflow: hidden;
  min-height: 80vh;
}

.appliances {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-bottom: 4vh;
}

/*ampermetr styles*/
.ampermetr {
  border-radius: 10px;
  text-align: center;
  background-image: url("../assets/amper.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 400px;
  height: 220px;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.632);
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.632);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.ampermetr__range {
  width: 82%;
  margin-top: 37px;
  margin-bottom: 95px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: rgba(101, 101, 101, 0.353);
}

/*voltmetr styles*/
.voltmetr {
  border-radius: 10px;
  text-align: center;
  background-image: url("../assets/volt.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 450px;
  height: 220px;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.632);
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.632);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.voltmetr__range {
  width: 80%;
  margin-top: 39px;
  margin-bottom: 95px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: rgba(101, 101, 101, 0.353);
}

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

.curtain-setings {
  text-align: center;
  margin: 0 1.5vw;
}

.curtain-setings__title {
  font-weight: 600;
  font-size: 1.1em;
}

.curtain-setings__check {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.769);
  border-radius: 50%;
  margin-top: 1.5vh;
  outline: none;
}

.curtain-setings__check:hover {
  border: 2px solid black;
}

.curtain-setings__check:active {
  background-color: rgba(0, 0, 0, 0.558);
}

.curtain-setings__check:checked {
  background-color: rgba(101, 101, 101, 0.353);
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.632);
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.632);
}

.curtain-setings__check:checked:active {
  background-color: rgba(0, 0, 0, 0.558);
}

.voltmetr-setings {
  text-align: center;
  margin: 0 1.5vw;
}

.voltmetr-setings__title {
  font-weight: 600;
  font-size: 1.1em;
}

.voltmetr-setings__range {
  margin-top: 4vh;
  width: 100%;
}

.dist-info {
  text-align: center;
  margin: 2vh 0;
}

.dist-info__title {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 1.5vh;
}

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

.installation__lamp {
  width: 30%;
  margin-right: -5vw;
}

.installation__runner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
  width: 80%;
}

.installation .priemnik {
  width: 20%;
  margin: 10px 0 -3.5vw 4.45vw;
  position: absolute;
  left: 0;
  bottom: 20px;
}

.installation .cap {
  position: absolute;
  margin-left: 7.2vw;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  width: 0.7vw;
  height: 5.2vw;
  background-color: #383737;
  -webkit-transition-property: top;
  transition-property: top;
  -webkit-transition-duration: 1.5s;
          transition-duration: 1.5s;
  z-index: 3;
}

.installation .ruler-range {
  width: 86%;
  margin-left: 12%;
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
}

.installation .ruler-range:after {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0.1vw;
  margin: 0.7vw 0 0 -14%;
  width: 114%;
  height: 2.6vw;
  background-image: url(../assets/ruler.png);
  background-size: cover;
}

.footer {
  background-color: #000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 2vh 0;
  min-height: 10vh;
}

.footer__logo {
  width: 20%;
}

.footer__text {
  font-size: 1.8em;
  font-weight: 600;
}

.open {
  top: -4vw;
}

.close {
  top: 0.4vw;
}

@media screen and (max-width: 1300px) {
  .close {
    top: 0vw;
  }
}

@media screen and (max-width: 1100px) {
  .header__title {
    font-size: 1.5em;
  }
  .header__link {
    font-size: 0.9em;
  }
  .installation .ruler-range:after {
    margin-top: 0.9vw;
  }
  .ampermetr {
    width: 340px;
    height: 190px;
  }
  .ampermetr__range {
    width: 82.5%;
    margin-top: 32px;
    margin-bottom: 90px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: rgba(101, 101, 101, 0.353);
  }
  .voltmetr {
    width: 380px;
    height: 190px;
  }
  .voltmetr__range {
    width: 82%;
    margin-top: 32px;
    margin-bottom: 90px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: rgba(101, 101, 101, 0.353);
    margin-left: 8px;
  }
  .open {
    top: -4.5vw;
  }
  .close {
    top: -0.35vw;
  }
}

@media screen and (max-width: 900px) {
  .field {
    width: 70px;
    font-size: 0.8em;
  }
  .header__title {
    font-size: 1.2em;
  }
  .ampermetr {
    width: 260px;
    height: 150px;
  }
  .ampermetr__range {
    width: 86%;
    margin-top: 22px;
    margin-bottom: 80px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: rgba(101, 101, 101, 0.353);
    margin-left: 6px;
  }
  .voltmetr {
    width: 300px;
    height: 150px;
  }
  .voltmetr__range {
    width: 84%;
    margin-top: 22px;
    margin-bottom: 80px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: rgba(101, 101, 101, 0.353);
  }
  .curtain-setings__title {
    font-size: 1em;
  }
  .curtain-setings__check {
    width: 25px;
    height: 25px;
  }
  .voltmetr-setings__title {
    font-size: 1em;
  }
  .voltmetr-setings__range {
    margin-top: 2vh;
  }
  .installation .ruler-range:after {
    margin-top: 1.15vw;
  }
  .footer__text {
    font-size: 1.3em;
  }
  .open {
    top: -4.8vw;
  }
  .close {
    top: -0.8vw;
  }
}

@media screen and (max-width: 800px) {
  .close {
    top: -1.2vw;
  }
}

@media screen and (max-width: 674px) {
  .sidebar__title {
    font-size: 3vw;
  }
  .sidebar__btn span {
    font-size: 2.2vw;
  }
  .sidebar__title-album {
    font-size: 2.5vw;
  }
  .field {
    width: 50px;
    font-size: 0.5em;
  }
  .header__title {
    font-size: 0.8em;
  }
  .header__link {
    font-size: 0.5em;
  }
  .ampermetr {
    width: 160px;
    height: 90px;
  }
  .ampermetr__range {
    width: 90%;
    margin-top: 15px;
    margin-bottom: 40px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: rgba(101, 101, 101, 0.353);
    margin-right: 4px;
    height: 4px;
  }
  .voltmetr {
    width: 170px;
    height: 85px;
  }
  .voltmetr__range {
    width: 87%;
    margin-top: 15px;
    margin-bottom: 35px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: rgba(101, 101, 101, 0.353);
    margin-right: 4px;
    height: 4px;
  }
  .curtain-setings__title {
    font-size: 0.7em;
  }
  .voltmetr-setings__title {
    font-size: 0.7em;
  }
  .dist-info__title {
    font-size: 0.7em;
    margin-bottom: 0vh;
  }
  .open {
    top: -5.6vw;
  }
  .close {
    top: -1.6vw;
  }
}

@media screen and (max-width: 570px) {
  .sidebar .s-photo {
    width: 100%;
    margin: 0 0 1.6vw;
    cursor: pointer;
    border-radius: 5px;
  }
  .open {
    top: -6.8vw;
  }
  .close {
    top: -2.4vw;
  }
}
