* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  overflow-x: hidden;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9)), url("/static/img/paneelit.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

#container {
  width: 100vw;
  height: 100vh;
}

.nav {
  height: 7%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  padding: 0 2rem;
}
.nav img {
  max-height: 90%;
}
.nav .text {
  display: flex;
  gap: 1rem;
}
.nav .text button {
  background: #4bca99;
  padding: 5px 8px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.main {
  height: 63%;
  width: 100%;
  padding: 1rem;
}
.main .left,
.main .right,
.main .mid {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  flex-direction: column;
}

.chart {
  background: #fff;
  padding: 1rem;
  height: 30vh;
  width: 100%;
}
.chart #chart {
  max-height: 20vh;
}

.grid {
  display: grid;
  row-gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gap-1 {
  gap: 1rem;
  row-gap: 1rem;
}

.gap-2 {
  gap: 2rem;
  row-gap: 2rem;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  border: 1px solid #cecece;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}
.card p {
  font-size: 1.2rem;
  text-align: center;
  font-size: clamp(1rem, 2vmin, 2.2vmin);
}
.card .value {
  font-size: 2.5rem;
  font-weight: bold;
}
.card div {
  padding: 1rem 0 0 0;
}
.card div small {
  display: block;
  text-align: center;
}
.card .power-value p {
  font-size: 1.5vmin;
}

.small-card p {
  font-size: 1rem;
}
.small-card .value {
  font-size: 1.6rem;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3rem;
  border: none;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  width: 65vw;
  max-width: 75vw;
  border-radius: 8px;
}
.modal .close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.modal .loading-wrapper {
  display: flex;
  align-items: center;
  /* HTML: <div class="loader"></div> */
}
.modal .loading-wrapper small {
  margin-left: 5px;
}
.modal .loading-wrapper .loader {
  width: 50px;
  height: 11px;
  margin: 0.4rem 0;
  display: none;
  -webkit-mask: radial-gradient(circle closest-side, #000 94%, rgba(0, 0, 0, 0)) left/20% 100%;
  background: linear-gradient(#000 0 0) left/0% 100% no-repeat #ddd;
  animation: l17 2s infinite steps(6);
}
@keyframes l17 {
  100% {
    background-size: 120% 100%;
  }
}

form .form-field {
  padding: 0.4rem 0;
}
form .form-field label {
  display: block;
  margin-bottom: 7px;
}
form .form-field input,
form .form-field textarea {
  resize: none;
  padding: 8px;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid #000;
}
form .form-field .checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
form .form-field .checkbox input[type=checkbox] {
  width: auto;
}
form .form-field .checkbox label {
  margin-left: 5px;
  margin-bottom: 0;
  display: inline-block;
}

progress {
  -webkit-appearance: progress-bar;
  display: inline-block;
  height: 20px;
  background-color: #fff;
  width: 80%;
  border-radius: 5px;
  margin-top: 2rem;
}

#chart {
  height: 30vh;
}

form.login {
  padding: 2rem 4rem;
  background: #fff;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}
form.login .form-field label {
  display: block;
}
form.login .form-field input {
  padding: 8px;
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 5px;
}
form.login .form-button {
  padding: 1rem 0 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
form.login .form-button button {
  background: #3ddb62;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 900px) {
  .nav img {
    max-width: 50%;
  }
  #container {
    height: auto;
    max-height: auto;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=main.css.map */
