#bg1 {
  padding: 1vw;
}


.split {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-bottom: 3vh;
}


.center_split {
  flex: 1 1 50%;
  box-sizing: border-box;
  color: var(--normal-text);
  padding: 10px;
  text-align: center;
  width: 100%;
}

.oppslag_div:hover {
  box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.2);
  transform: scale(1.015);
}

.oppslag_div {
  border-radius: 15px;
  background-color: var(--main-bg-color);
  border-width: 1px;
  border-color: black;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.oppslag_title {
  font: size 6px;
  color: var(--normal-text);
  margin-top: 10px;
  padding: 10px;
}

.pinned_oppslag_img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px 15px 0 0;
}

.center_split:is(:last-child) {
  border-left: 1px solid var(--main-color);
}

@media (max-width: 1080px) {
  .center_split {
    flex: 100%;
  }

  .center_split:is(:last-child) {
    border-left: none;
  }

  .center_split:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid black;
    /*width: calc(100% + 40px);*/
  }
}


.bottom_images {
  display: flex;
  padding-bottom: 20px;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 2vw;
}

.bottom_images img {
  flex: 1 1 auto;
  max-height: min(60px, 6vw);
  max-width: 100%;
  /* Ensure images do not stretch beyond container width */
  object-fit: contain;
}

.center {
  width: 100%;
  text-align: center;
  color: var(--normal-text);
}

.home_banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-left: 10%;
  padding-right: 10%;
  border: 3px solid var(--main-color);
  border-radius: 20px;
  margin: 20px;
  padding-bottom: 20px;
}

.home_banner h1 {
  margin-bottom: 0px;
}

.arr_items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--off_color);
  height: 80px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.arr_items:hover {
  box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.2);
  transform: scale(1.015);
}

.arr_items:active {
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
  transform: scale(0.985);
}

.arr_items img:first-child {
  height: 100%;
  width: 38.19660112501051%;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
  box-shadow: 8px 0px 8px 0px rgba(0, 0, 0, 0.08);
}


.arsimg {
  height: 25px;
  width: auto;
  background-color: var(--main-color);
  border-radius: 50%;
  border: 2px solid var(--main-color);
  bottom: 7px;
  left: 7px;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.3);

}


.arr_right_side {
  height: 80px;
  width: 61.8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  background-color: var(--off_color);
  border-radius: 0 10px 10px 0;
}


.arr_right_side p {
  margin: 4px;
  margin-left: 10px;
}

.arsh {
  font-size: 2em;
  /* Adjust as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  padding-bottom: 40px;
  width: 80%;
}

.arsth {
  display: flex;
  justify-content: space-between;
}

.text_date {
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arsspots {
  flex-grow: 1;
  text-align: right;
  white-space: nowrap;
}


.round_arrow_button {
  align-items: center;
  width: min(350px, 100%);
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #68ff5a 0, var(--main-color) 100%);
  border: 0;
  border-radius: 40px;
  box-shadow: rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow, transform;
  font-size: 18px;
}

.round_arrow_button:focus {
  box-shadow: var(--main-color) 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, var(--main-color) 0 -3px 0 inset;
}

.round_arrow_button:hover {
  box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, var(--main-color) 0 -3px 0 inset;
  transform: translateY(-2px);
}

.round_arrow_button:active {
  box-shadow: var(--main-color) 0 3px 7px inset;
  transform: translateY(2px);
}


.arr_item_gray {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--uimportat-gray);
  height: 80px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.max_width_home_image {
  margin: 15px;
  margin-top: 11%;
  max-width: calc(100% - 30px);
}

#main_screen_image {
  width: 100%;
  aspect-ratio: 2048 / 1110;
  display: grid;
  place-items: center;
  /* Centers both horizontally and vertically */
  align-items: start;
}

.home_fullscreen_image {
  position: absolute;
  max-width: 100%;
  left: 0;
  top: 0;
  width: 100%;
  border-radius: 15px 15px 0px 0px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

#bilde_text {
  z-index: 1;
  max-width: 50%;
  text-align: center;
  margin-bottom: 15%;
  color: white;
  padding-bottom: 25%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  opacity: 0;
}

.sammerbeidspartnere {
  padding: 3vh 0px 0px 0px;
}

.poll-box {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.poll-box .option {
  margin: 10px 0;
  position: relative;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  color: #333;
  transition: padding-left 0.3s ease;
}

.option-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #add8e6;
  z-index: 1;
  transition: width 0.3s ease;
}

.option span {
  z-index: 2;
}

.text {
  position: relative;
}

.vote-count {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #000;
  z-index: 2;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, right 0.3s ease;
}

.option .voted {
  padding-left: 20px;
  /* Shift text slightly to the right when voted */
  opacity: 1;
  /* Make visible */
  transform: translateY(-50%) translateX(0);
  /* Move into view */
}

.vote-count {
  position: absolute;
  right: 10px;
}

.disabled {
  cursor: not-allowed !important;
}

.voted {
  cursor: default !important;
}

/* Stillingsannonser */
#SA_HEADER {
  color: var(--normal-text);
  text-align: center;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#stillingsannonser {
  max-width: 1200px;
  margin: 40px auto;
  /* luft opp og ned */
  margin-top: 10px;
  padding: 3vh 2vw;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.02),
      rgba(0, 0, 0, 0.05));
  /* Myk gradient */
  border-top: 2px solid rgba(var(--main-color-rgb), 0.25);
  border-bottom: 2px solid rgba(var(--main-color-rgb), 0.25);
  border-radius: 12px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  /* litt mykere shadow */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.annonser {
  display: grid;
  grid-template-columns: repeat(3, 31.5%);
  /* alltid 3 kolonner */
  gap: 2rem;
  width: 100%;
}

.stilling_div_gray {
  background-color: rgba(0, 0, 0, 0.05);
  /* lys grå bakgrunn */
  padding: 20px;
  border-radius: 15px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
  /* innvendig shadow for "tom" følelse */
  height: 445px;
  /* samme høyde som vanlig stillings_div */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.3);
  font-style: italic;
  user-select: none;
  cursor: default;
}

/* Tablet: maks 2 annonser */
@media (max-width: 900px) and (min-width: 601px) {
  .vis_2 {
    display: none;
  }

  .annonser {
    grid-template-columns: repeat(2, 1fr);
    /* 2 kolonner på tablet */
  }
}

/* Mobil: maks 1 annonse */
@media (max-width: 600px) {
  .vis_1 {
    display: none;
  }

  .vis_2 {
    display: none;
  }

  .annonser {
    grid-template-columns: 1fr;
    /* 1 kolonne på mobil */
  }
}

.vis_mer_wrapper {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.stilling_icon {
  padding: 4px;
  width: 40px;
  height: 40px;
  padding-left: 10px;
  padding-right: 10px;
}

.stilling_div {
  overflow-wrap: break-word;
  background-color: var(--main-window-color);
  padding: 20px 20px 20px 20px;
  border-radius: 15px;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
  position: relative;
  height: auto;
  /* Example height */
  width: 1fr;
  /* Full width of the grid cell */
  align-items: center;
  justify-content: center;
  max-width: 485px;
}


.stilling_div:hover {
  transform: scale(1.02);
  cursor: pointer;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.stilling_icon {
  width: 32px;
  height: 32px;
}

.stilling_div h1 {
  padding-top: 5px !important;
  margin-top: 0px;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;


}


.stilling_line {
  display: flex;
  padding-bottom: 10px;

}

.stilling_line p {
  display: flex;
  padding: 0px;
  margin: 0px;
  padding-left: 10px;
  padding-top: 5px;
}

.image_div {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  box-sizing: border-box;
}

img {
  max-height: 100%;
  max-width: 100%;
}

.stilling_head {
  display: flex;
}