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

:root {
  --control-stroke-color: #767676;
	--slider-thumb-size: 35px;
}

  /*
Reduce all text except h3.rubrik.
- :not(h3.rubrik) excludes the heading itself.
- :not(h3.rubrik *) excludes anything inside that heading.
*/
body *:not(h3.rubrik):not(h3.rubrik *) {
	font-size: 0.9em;
}
  
  /* For hiding scrollbar in Firefox without impacting scrolling function */
  html {
	scrollbar-width: none;
  }
  
  body {
	background-color: #7a1f10;
	color: #f9f8f2;
	padding: 0px;
	/* For hiding scrollbar in Edge and Explorer without impacting scrolling function */
	-ms-overflow-style: none;
  }
  
  /* For hiding scrollbar in Chrome, Safari, Opera and other webkit browsers, without impacting scrolling function */
  body::-webkit-scrollbar {
	display: none;
  }
  
#content {
	max-width: 90%;
	margin: 0 auto;
	padding-bottom: 35px;
	/* font-size: 1em; */
}

#content.BodyImage-caption {
	/* font-size: 1em;	 */
	color: white;
}

img.headerImage {
	width: 85%;
	height: auto;
	margin: auto;
	padding-top: 30px;
}

input[name="inputLon"], select[name="fack"] {
	border-radius: 4px;
	stroke-width: 2px;
	margin-top: 5px;
	/* line-height: 1em; */
	/* font-size: 1em; */
}

#inputLon::placeholder {
	color: #767676;
	opacity: 0.6;

}

  select, form,label, input {
	display: inline;
  }

  select {
	line-height: 2;
  }

  /* .padding-bottom {
	margin-bottom: 30px;
  } */

  input[type="range"] {
	display: block;
	cursor: pointer;
	margin: 20px 0 0;
  }

  .boxwidth {
	width: 100%;
  }

  input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 10px;
	cursor: pointer;
	position: absolute;
	opacity: 0;
	/* accent-color: rgb(118, 118, 118); */
  }

  .chk__box {
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	margin-left: 6px;
	border: 2px solid #767676;
	/* border: var(--control-stroke-width) solid var(--control-stroke-color); */
	border-radius: var(--control-radius);
	vertical-align: middle;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.85rem 0.85rem;
  }

  input[type="checkbox"]:checked + .chk__box {
	background-color: var(--control-focus-color);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.8' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  input[type="checkbox"]:disabled {
	border-color: #aaa;
	background: #eee;
	cursor: not-allowed;
  }

  input[type="checkbox"]:disabled:checked {
	background: #ccc;
  }

  /* input[type="checkbox"] {
	transform: scale(2);
    margin: 10px;
	cursor: pointer;
  } */

  .slider {
	position: relative;
	width: 100%;
  }

  #daysSlider {
	height: 20px;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	width: 100%;
	position: relative;
	padding: 0;
	border: 0;

  }

  #daysSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: var(--slider-thumb-size);
	height: var(--slider-thumb-size);
	background: #ee492e;
	cursor: pointer;
	border-radius: 3%;
	margin-top: -4px;
  }

  #daysSlider::-moz-range-thumb {
	width: var(--slider-thumb-size);
	height: var(--slider-thumb-size);
	background: #ee492e;
	cursor: pointer;
	border-radius: 3%;
	border: none;
	margin-top: -4px;

  }

  #daysSlider::-webkit-slider-runnable-track {
	width: 100%;
	height: 25px;
	background: #ddd;
	border-radius: 5px;
  }

  #daysSlider::-moz-range-track {
	width: 100%;
	height: 30px;
	background: #ddd;
	border-radius: 5px;
  }

  /* select label for daysSlider */
  label[for="daysSlider"] {
	font-size: 1.5em !important;
	position: absolute;
	white-space: nowrap;
	transition: left 0.15s ease;
	margin-right: 30px;
	/* padding-left: 30px; */
	/* top: -2px; */
	/* background-color: white; */
	/* color: black;
	padding: 2px 5px; */

  }

  /* #daysText {
	padding-right: 30px;
  }

  #daysValue {
	padding-left: 30px;
  }
	 */

  .ticks{
  position: relative;
  /* left: 0; right: 0; */
  top: 10px;            
  height: 28px;
}

.tick{
  position: absolute;
  width: 2px;
  height: 10px;
  background: white;
  transform: translateX(-50%);
  cursor: pointer;
}

.tick__label{
  position: absolute;
  top: 15px;
  /* left: 50%; */
  transform: translateX(-50%);
  font-size: 16px !important;
  color: white;
  white-space: nowrap;
  font-weight: normal;
}

.tick__label--insurance {
  /* Your custom styles for insurance period markers */
  /* color: blue; */
  font-weight: bold;
}

.tick__label--insurance::before {
  /* background-color: blue; */
  font-weight: bold;
}

p#dagarinfo, p#aktivitetstodInfo {
	font-size: 0.7em;
	margin-top: 25px;
	margin-bottom: 15px;
}

  .rubrik {
	padding-top: 20px;
	font-size: 0.9em;	
	}

  /* #inputYear {
	width: 4em;
  } */

  .flexcontainer {
	display: flex;
	justify-content: space-between;
	align-content: stretch;
	flex: 0 1 auto;
	/* border-radius: 4%; */
	padding: 7px;
  }

  /* .flexcontainerInner {
	display: flex;
	flex-direction: column;
	width: 50%;
  } */

  .center {
	display: flex;
	justify-content: center;
  }

  .stunning {
	background-color: #ee492e;
	padding: 10px;
	width: 100%;
	margin: 20px 0px 20px 0px;
	min-height: 70px;
  }

  .stunningText {
	font-size: 1.8em !important;
	margin-bottom: 0px;
  }

	.aktivitetstod-info {
		display: inline-block;
		margin-top: 6px;
		font-size: 0.7rem !important;
		line-height: 1.25;
	}

  /* button#calculate {
	color: red;
	margin: 20px;
	padding: 3px;
  } */

  #forklaringRubrik {
	position: absolute;
	left: 5%;
	/* bottom: 12px; */
	z-index: 900;
	font-size: 0.9em;
	text-decoration: underline;
	text-decoration-thickness: 1px;
  }

  #forklaring {
	position: fixed;
	bottom: -100%;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	max-width: 600px;
	background-color: #f9f8f2;
	color: black;
	opacity: 0.95;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	transition: bottom 0.4s ease-out;
	z-index: 1000;
  }

  #forklaring.show {
	bottom: 40px;
  }

  #fotnotDiv {
	position: absolute;
	right: 5%;
	/* bottom: 12px;
	z-index: 900; */
	font-style: italic;
	font-size: 0.7em;
  }

  #fet {
	font-weight: bold;
	font-size: 1.2em;
  }

  /* wrapper */
.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

/* göm native visuellt men behåll för a11y */
.chk__input {
  position: absolute;           /* tar input ut ur layouten */
  opacity: 0;
  pointer-events: all;          /* fortfarande klickbar via label */
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* visuellt ruta */
.chk__box {
  display: inline-block;
  width: 20px;                   /* använd px för konsekvens */
  height: 20px;
  box-sizing: border-box;        /* border räknas in i storleken */
  border: 2px solid #767676;
  border-radius: 4px;
  background: white;
  position: relative;
  transition: background .12s, border-color .12s, opacity .12s;
  vertical-align: middle;
}

/* checkmark (görs med pseudo-element i span) */
.chk__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 12px;
  border-style: solid;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .08s;
}

/* när input är checkad: */
.chk__input:checked + .chk__box {
  background: #111;
  border-color: #111;
  /* border-color: rgb(118, 118, 118); */
}
.chk__input:checked + .chk__box::after {
  opacity: 1;
  border-color: #fff;
}

/* disabled / inaktiv visuellt */
.chk__input:disabled + .chk__box {
  opacity: 0.45;
  border-color: #aaa;
  background: #f3f3f3;
  cursor: not-allowed;
}
.chk__input:disabled:checked + .chk__box::after {
  border-color: #666;
  opacity: 1;
}

/* gör etiketten klickbar */
.chk__label { cursor: pointer; }

  @keyframes slideUp {
	from {
	  bottom: -100%;
	}
	to {
	  bottom: 40px;
	}
  }

  @media only screen and (max-width: 570px) {
	.flexcontainer {
		flex-direction: column;
	}
	.flexcontainerInner {
		width: 100%;
	}
}

