:root {
  --primary-color: #0803D3;
  --text-color: #ffffff;
  --background-color: #f8fafc;
  --border-color: rgba(255, 255, 255, 0.2);
}


body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8fafc;
  color: #000000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

header {
  background-color: transparent;
  color: #0803D3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0px;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #0803D3;
  text-decoration: none;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.co2-beregner {
  background-color: white;
  padding: 40px;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 40px auto;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
}

.input-group input, 
.input-group select {
  width: 100%;
  max-width: 380px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #000000;
}

#result, #yearlyResult {
  margin-top: 20px;
  font-weight: bold;
}


@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    margin-top: 10px;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .co2-beregner {
    width: 95%;
    padding: 20px;
  }
}

input[type="number"], select {
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  max-width: 380px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="number"]:focus, select:focus {
  border-color: #28a745;
  outline: none;
}

.co2-beregner2 {
  background-color: white;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  margin: 20px;
  width: 70%;
}

@media only screen and (max-width: 768px) {
  .co2-beregner2 {
    width: 100%;
  }
}

h2 {
  margin-bottom: 15px;
  font-size: 30px;
  color:#000000;
}

a {
  text-decoration: none;
  color: #000000;
  font-weight: 200;
}

.kilde {
  color: #0803D3;
  text-decoration: underline;
}

.results {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 40px;
}

@media only screen and (max-width: 768px) {
  .results {
    flex-direction: column;
  }

  .result-box {
    margin: 10px 0; /* Reduce margin between result boxes */
    padding: 20px; /* Keep padding consistent */
    width: 100%; /* Full width */
    box-sizing: border-box; /* Ensure padding doesn't increase width */
  }
}

.result-box {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 20px;
  margin: 10px;
  min-width: 200px;
}

@media only screen and (max-width: 768px) {
  .results {
    flex-direction: column;
  }

  .result-box {
    margin: 10px 0; /* Reduce margin between result boxes */
    padding: 20px; /* Keep padding consistent */
    width: 100%; /* Full width */
    box-sizing: border-box; /* Ensure padding doesn't increase width */
  }
}


.complexity-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.complexity-button {
  padding: 10px 40px;
  border: 2px solid #0803D3;
  background-color: transparent;
  color: #0803D3;
  cursor: pointer;
  border-radius: 5px;
}

.complexity-button.active {
  background-color: #0803D3;
  color: white;
}

@media screen and (max-width: 768px) {
  .complexity-buttons {
    flex-direction: column;
  }

  .complexity-button {
    width: 100%;
  }
}

.info-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-box {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        padding: 0 10px;
    }
    
    body {
        padding: 0 3%;
    }
}

button, .complexity-button, .email-button {
  transition: all 0.3s ease;
}

button:hover, .complexity-button:hover, .email-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.feature {
  text-align: center;
  width: 200px;
  margin: 1rem;
  color: #000000;
}

.feature img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: #000000;
}

.feature p {
  font-size: 0.9rem;
}

/* Add these styles to your CSS file */
.label-with-tooltip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 380px;
}

.tooltip-icon {
  cursor: help;
  color: #0803D3;
  font-weight: bold;
}

.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tooltip-icon:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 2px);
  border: 8px solid transparent;
  border-top-color: #333;
}

/* Adjust input group styling to accommodate tooltips */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

/* Make sure the tooltip text doesn't wrap on smaller screens */
@media (max-width: 768px) {
  .tooltip-icon:hover::after {
    width: max-content;
    max-width: 200px;
    white-space: normal;
  }
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 4rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;

}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.footer-bottom {
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  background-color: var(--text-color);
  color: var(--primary-color);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .footer-section {
      align-items: center;
  }

  .social-icons {
      justify-content: center;
  }

  .newsletter-form {
      flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
      width: 100%;
      margin-bottom: 0.5rem;
      border-radius: 4px;
  }
}

.range-slider {
  width: 100%;
  max-width: 380px;
  margin: 20px auto;
  text-align: center;
}

.range-slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  padding: 0;
  margin: 10px 0;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0803D3;
  cursor: pointer;
  transition: all .2s ease-in-out;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(8, 3, 211, 0.3);
}

.range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0803D3;
  cursor: pointer;
  transition: all .2s ease-in-out;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(8, 3, 211, 0.3);
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover,
.range-slider input[type="range"]::-moz-range-thumb:hover {
  background: #0803D3;
  transform: scale(1.1);
}

.range-slider input[type="range"]::-webkit-slider-runnable-track,
.range-slider input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: linear-gradient(to right, #0803D3 var(--value-percent, 0%), #e0e0e0 var(--value-percent, 0%));
  border-radius: 4px;
}

#monthValue {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
  display: inline-block;
}

.highlight {
  background-color: #0803D3;  /* Bright yellow background */
  color: #ffffff;  /* Black text */
  font-weight: bold;
  padding: 0 7px;
  border-radius: 3px;
}

/* Tilføj denne CSS til din eksisterende stylesheet */
.logo {
  max-width: 200px; /* Standard logo bredde */
  height: auto; /* Bevar proportioner */
  transition: max-width 0.3s ease; /* Blød overgang */
}

/* Tablet skærme */
@media screen and (max-width: 1024px) {
  .logo {
      max-width: 150px;
  }
}

/* Mobile skærme */
@media screen and (max-width: 768px) {
  .logo {
      max-width: 80px;
  }
}

/* Små mobile enheder */
@media screen and (max-width: 480px) {
  .logo {
      max-width: 75px;
  }
}

