@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* Base styling: */
body {
  font-family: "Inter", sans-serif;
}

a {
  color: #008a60;
  text-decoration: none;
}

a:hover {
  color: #00a676;
  text-decoration: none;
}

.bold {
  font-weight: bold;
}

.margintop {
  margin-top: 10px;
}

.inputsmall {
  width: 14.2857%;
}

/* input:invalid {
  box-shadow: 0 0 5px 1px rgba(198, 40, 40, 0.5);
} */

/* Change the color of the validation bubble arrow */
/* input:invalid:after {
  border-color: rgba(198, 40, 40, 0.5) transparent;
}
¨ input:invalid::placeholder {
  color: #721c24;
  font-style: italic;
} */
.form-check-input:checked {
  background-color: #0b3d91;
  color: #0b3d91;
  border-color: #0b3d91;
}
.postcodeCol {
  position: relative;
  width: 40%;
}
.btn {
  width: 100%;
}
.warning-message {
  color: red;
  /* font-size: 12px; */
  margin-top: 5px;
}

.form-cons-input {
  display: flex;
  justify-content: space-between;
}

#consumption {
  width: 100%;
}

#help-icon {
  display: inline-block;
  /* padding: 5px; */
  border: 2px solid #21252a;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 22px;
}

.standard-cons-div {
  display: flex;
  justify-content: end;
}

#consumptionButton {
  display: none;
  width: auto;
  font-size: 12px;
  padding: 5px;
}

#consumption.updated {
  color: transparent;
  animation: inputHighlight 1s;
}

@keyframes inputHighlight {
  0% {
    background: #fff;
    color: transparent;
  }
  30% {
    background: #0b3d9128;
    color: transparent;
  }
  60% {
    color: #21252a;
  }
  100% {
    background: #fff;
    color: #21252a;
  }
}

.background {
  background-color: #fefefe;
}

/* @media screen and (max-width: 992px) {
  .inputsmall,
  .col-lg-4 {
    width: 33%;
  }
  .col-lg-3 {
    width: 50%;
  }
}
@media screen and (max-width: 540px) {
  .col-lg-4,
  .inputsmall {
    width: 50%;
  }
  .col-lg-3 {
    width: 100%;
  }
}
@media screen and (max-width: 285px) {
  .col-lg-4,
  .inputsmall {
    width: 100%;
  }
} */

.info-container {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: auto;
  padding: 5%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}

.results-container {
  padding: 0;
  margin: 0;
}

.background-image-results {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("../images/iStock-1400218353.jpg") no-repeat center center;
  background-size: cover;
  z-index: -1;
  filter: blur(2px);
}

.background-image-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("../images/iStock-1400218353.jpg") no-repeat center center;
  background-size: cover;
  z-index: -1;
  filter: blur(2px);
}

.background-image-results::before,
.background-image-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, #fefefe, rgba(0, 0, 0, 0));
}

#results {
  padding: 0px;
  position: relative;
  overflow: hidden;
}

#item-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 240px;
  padding-top: 10px;
}

.tiltak-card {
  display: flex;
  width: 100%;
  padding: 10px 15px;
  flex-direction: column;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid #c0c0c0;
  background: #fefefe;
  transition: all 0.3s ease;
  position: relative;
}

.tiltak-checkbox:not(:checked) ~ .tiltak-card > * > *,
.tiltak-checkbox:not(:checked) ~ .tiltak-card > * {
  color: #b3b3b3;
}

.tiltak-navn {
  color: #2b2b2b;
  font-size: 18px;
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-left: 5px;
}

.tiltak-data {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border-top: 1px solid #848484;
  padding-left: 5px;
}

.invest {
  display: flex;
  padding: 10px 0px;
  flex-direction: column;
  gap: 5px;
  flex: 1 0 0;
  align-self: stretch;
  color: #2b2b2b;
  font-family: Inter;
  font-style: normal;
  line-height: normal;
}

.savings-kwh {
  display: flex;
  padding: 10px 0px;
  flex-direction: column;
  gap: 5px;
  flex: 1 0 0;
  align-self: stretch;
  color: #157347;
  font-family: Inter;
  font-style: normal;
  line-height: normal;
}

.payback {
  display: flex;
  padding: 10px 0px;
  flex-direction: column;
  gap: 5px;
  flex: 1 0 0;
  align-self: stretch;
  color: #1456a1;
  font-family: Inter;
  font-style: normal;
  line-height: normal;
}

.tiltak-num {
  font-size: 16px;
  font-weight: 700;
}

.tiltak-txt {
  font-size: 12px;
  line-height: normal;
}

.tiltak-checkbox {
  display: none;
}

.card-container {
  width: 95vw;
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Checked state */
.tiltak-checkbox:checked + .tiltak-card::before {
  content: "";
  background-image: url("../images/check-mark.png");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  position: absolute;
  right: 15px;
  width: 20px;
  height: 20px;
}

/* Unchecked state */
.tiltak-checkbox:not(:checked) + .tiltak-card::before {
  content: "";
  border: 1px solid #b3b3b3;
  border-radius: 3px;
  background-size: 20px 20px;
  position: absolute;
  right: 15px;
  width: 20px;
  height: 20px;
}

.bygg-header {
  display: flex;
  justify-content: space-between;
}

.tiltak-header {
  display: flex;
  justify-content: space-between;
  margin-left: 15px;
  margin-right: 15px;
  margin-top: 2rem;
  border-bottom: 1px solid #b3b3b3;
}

#settings,
#info {
  width: 25px;
  height: 25px;
}

.sum-card {
  display: flex;
  width: 100vw;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 0px;
  left: 0px;
  background: #fefefe;
  z-index: 1;
  box-shadow: 0px -4px 20px 0px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.sum-card.scrolled {
  padding: 5px;
  padding-bottom: 20px;
  gap: 5px;
  border-radius: 10px 10px 0px 0px;
}

.tiltak-sum {
  display: flex;
  width: 100%;
  padding: 5px 0px;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
}

.tiltak-sum.scrolled {
  padding: 0 20px 5px 20px;
  font-weight: 600;
  font-size: 18px;
  flex-direction: column;
  align-items: center;
}

.tiltak-sum-txt {
  display: flex;
  width: 30%;
  padding: 0px 10px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.tiltak-sum-txt.scrolled {
  padding: 10px 0px;
  font-weight: bold;
  font-size: 16px;
  width: auto;
}

.tiltak-sum-data {
  display: flex;
  padding: 0px 15px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border-left: 1px solid #848484;
}

.tiltak-sum-data.scrolled {
  padding: 5px 15px;
  gap: 5px;
  border-left: 0px solid #848484;
  border-top: 1px solid #848484;
}

.sum-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
}

#request-btn {
  display: none;
  padding: 3px 25px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 10px;
  color: #fefefe;
  border: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

#request-btn.scrolled {
  display: flex;
  padding: 8px 30px;
  font-size: 16px;
}

.sum-details-invest {
  color: #2b2b2b;
}

.sum-details-kwh {
  color: #157347;
}

.sum-details-payback {
  color: #1456a1;
}

.calcbtn  {
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #008a60;
  color: #fbf9f9;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  padding: 8px 30px;
  font-size: 16px;
}

.calcbtn:hover {
  background: #00a676;
}

.input-container {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  gap: 10px;
  width: 95vw;
  margin: auto;
}

.about-container {
  max-width: 870px;
  width: 90vw;
  margin: 20px auto 35px auto;
}

.adsbanner {
  max-width: 100%;
}

#otovo-btn {
  width: 100%;
}

#otovo-banner {
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 20px rgba(11, 61, 145, 0.35);
  background-color: #0b3d91;
  margin-bottom: 15px;
  z-index: 4;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0b3d91;
  width: 90vw;
  max-width: 930px;
  margin: auto;
  padding: 20px 0 0 0;
}

.logo {
  font-weight: 900;
  text-decoration: none;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline;
  color: #fbf9f9;
  transition: all 0.3s ease;
}

.logo a {
  color: #fbf9f9;
  text-decoration: none;
}

.logo a:hover {
  color: #fbf9f9;
  text-decoration: none;
}

.ltext {
  font-size: 2.8rem;
  transition: all 0.3s ease;
}

.logo .fa-sun {
  font-size: 0.9em;
  vertical-align: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  margin: 0 10px;
  text-decoration: none;
  color: #fbf9f9;
}

.nav-links li a:hover {
  color: #00a676;
}

#hamburger-wrapper {
  background-color: #0b3d91;
  display: none;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
}

.burger {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.burger,
.burger:before,
.burger:after {
  padding: 0;
  margin: 0;
  background-color: #fbf9f9;
  border-radius: 2px;
  width: 80%;
  height: 4px;
  transition: margin 0.1s 0.2s, transform 0.2s;
}

.burger:before,
.burger:after {
  margin: 0;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.burger:before {
  margin-top: -10px;
}

.burger:after {
  margin-top: 10px;
}

.burger {
  margin-top: -10px;
}

.open .burger {
  transform: rotate(45deg);
}

.open .burger,
.open .burger:before,
.open .burger:after {
  transition: margin 0.2s, transform 0.1s 0.2s;
}

.open .burger:before,
.open .burger:after {
  margin-top: 0;
}

.open .burger:after {
  transform: rotate(-90deg);
}

#overlay-menu {
  display: none;
  padding-bottom: 10px;
  background-color: #0b3d91;
}

#overlay-menu li a {
  color: #fbf9f9;
}

#overlay-menu li a:hover {
  color: #00a676;
}

.message-row {
  margin: auto;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  #hamburger-wrapper {
    display: flex;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex;
  }
  #hamburger-wrapper {
    display: none;
  }
  #overlay-menu {
    display: none;
  }
}

#overlay-menu:not(.hide) {
  display: flex;
  justify-content: end;
  flex-direction: row;
}

/* Minimized state */
header.minimized .logo {
  font-size: 1.6rem;
}

header.minimized .ltext {
  font-size: 1.6rem;
}

header.minimized .logo-container {
  padding: 10px 0 5px 0;
}

.buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 8%;
  min-width: 57px;
}

.consumption-input {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 576px) {
  .sum-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    max-width: 900px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0px 0px;
  }

  .card-container {
    width: 48%;
    min-width: 350px;
    margin: 0;
  }

  #item-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: space-between;
    padding-bottom: 300px;
    max-width: 900px;
    margin: auto;
  }

  #item-list > * {
    align-self: flex-start;
  }

  .tiltak-header {
    max-width: 900px;
    margin: auto;
  }

  #otovo-btn {
    width: 90%;
    max-width: 900px;
  }

  .input-container {
    margin: 0 20px 0 20px;
    margin: auto;
    gap: 50px;
    /* max-width: 900px; */
  }

  .results-container {
    padding: 0 5% 0 5%;
    margin-top: 50px;
  }

  #results {
    padding: 0;
  }

  header.minimized .logo {
    font-size: 28px;
    margin-bottom: 10px;
  }

  header.minimized .ltext {
    font-size: 30px;
  }

  #consumption {
    width: 100%;
  }

  #consumptionButton {
    font-size: 14px;
  }
}
