
/* Molslinjen bg */

#mobileCarType {
  display: none;
}


.button-wrapper {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding-bottom: 0.6rem;
  padding-left: 0.6rem;
}

#openPopupBtn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #24d68f;
  display: flex;
  align-items: end;
}

#openPopupBtn:hover {
  text-decoration: underline;
}

.buttons {
    white-space: nowrap;
    overflow: auto;
	padding-bottom: 0.5rem;
  }

/* <find ud af hvorfor position relative ikke passer */
.bg {
  background-color: #0000008b;
  position: fixed; /* Fixed position will make it cover the entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
z-index: 200;
}

.popup_container {
  display: flex;
font-family: korolev, sans-serif;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  padding: 3rem;
  border-radius: 10px;
  position: relative;
  width: 40%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  box-sizing: unset;
}

.closePopup {
   color: #001F46;
    float: right;
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1rem;
	cursor: pointer;
}

.text_popup {
  max-width: 65ch;
}

.text_popup h2 {
  margin-bottom: 0.5rem;
  margin-top: 0;
  font-size: 32px;
}

.scroll {
  display: none;
}

#browseCars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tabbutton {
  border: 1px solid;
  border-color: #001f47;
  border-radius: 100px;
  cursor: pointer;
  padding: 0.4rem 1rem 0.4rem 1rem;
  transition: 0.3s;
  background-color: #fff;
  margin: 0 0.3rem 0.3rem 0;
}

/* Change background color of buttons on hover */
.buttons button:hover {
  background-color: #001f47;
  color: #fff;
}

/* Create an active/current tablink class */
.buttons button.active {
  background-color: #001f47;
  color: #fff;
}

.tabcontent {
  display: none;
}

.tabcontent.active {
  display: block;
}

.car_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.car {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2rem 1rem 2rem 1rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.car img {
    object-fit: contain;
    height: 4rem;
}

h4,
h5 {
  margin-top: 0;
}


h5 {
 font-weight: 400;
	font-size: 12px;
	line-height: 100%;
}
svg {
  max-width: 100%;
}

/* Electric - Micro disabled */

.micro {
  opacity: 20%;
  background-color: #f0f0f0;
}
.mini {
  opacity: 20%;
  background-color: #f0f0f0;
}

.closePopup {
    color: #001F46;
    float: right;
	font-family: korolev, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

@media (max-width: 991px) {
  .lilleMols {
    width: 100%;
  }

  .scroll {
    display: none;
	  
  }

  .popup_container {
    width: 90%;
    height: auto;
    padding: 1.5rem;
    overflow: auto;
    object-fit: contain;
  }

  .closePopup {
     color: #001F46;
    float: right;
	font-family: korolev, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .tabbutton {
    padding: 0.4rem 1rem 0.4rem 1rem;
    margin-right: 0.6rem;
    white-space: nowrap;
  }

  .car_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .car {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0.5rem 1rem 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .carpic {
    width: 80%;
  }

  .cartext h4 {
    font-weight: bold;
  }
  .cartext h5 {
    font-weight: 100;
  }
}

@media (max-width: 480px) {
  .scroll {
    display: block;
  }

  .dropdown-popup-wrapper {
    display: flex;
    width: 100%;
  }

  #mobileCarType {
    display: flex;
  }

  #DesktopCarType {
    display: none;
  }

  p {
    margin: 0;
  }

  .carpic {
    width: 40%;
  }

  .big {
    margin-top: 0.4rem;
    width: 45%;
    margin-bottom: 0;
  }

  .bigText {
    margin-bottom: 1rem;
  }

  .buttons {
    white-space: nowrap;
    overflow: auto;
  }

  .tabbutton {
    padding: 0.2rem 0.6rem 0.2rem 0.6rem;
    margin-right: 0.4rem;
    white-space: nowrap;
  }

  /* #openPopupBtn {
    top: 67%;
    left: 25%;
  } */
}
