* {
	box-sizing: border-box;
}

body, #map, html{
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
}

a, a:visited {
	color: #3478F7;
}

#sok {
	position: absolute;
 	right: 50px;
 	z-index: 99;
 	top: 10px;
}

#sok input {
	font-size: 16px;
  	box-shadow: 0px 0px 4px lightgray;
  	width: 230px;
}

#popup h1 {
	text-transform: uppercase;
	font-size: .9em;
	letter-spacing: .5px;
	text-align: center;
	font-weight: 900;
  	padding-bottom: .8em;
	margin: .1em 1em .3em 1em;  	
}

#popup h2, #popup h3 {
	margin-bottom: 0;
	font-size: 1.24rem;
	margin-top: .3em;
}

#popup h2+h3 {
	font-weight: normal;
	font-size: 1em;	
	margin: 0;
	margin-bottom: .1em;
}

#popup h4{
	margin: 0;
}

#popup p {
	margin: .5em 0;
	line-height: 1.2em;
}

#popup a {
	overflow-wrap: anywhere;	
}

#popup p:last-of-type {
	margin-bottom: 0;
}

#punkt_beskrivn {

}

#punkt_beskrivn_empty {
	color: gray;
}

#popup .omrade {
	color: #555;
	margin-top: 0;
	line-height: 1.1em;
	font-size: .8em;
	margin-bottom: .7em;
}

.highlight {
	width: 25px;
  	height: 25px;
  	border-radius: 30%;
  	border: 3.5px solid rgba(255,41,255,.5);
/*  	mix-blend-mode: multiply;*/
}

.idnr {
	display: none;
	font-family: monospace;
	font-size: .8em;
	color: #a4a0a0;
}

#popup {
	font-size: .9em;
  	padding: 1em;
  	height: 100%;
  	width: 300px;
  	bottom: 0;
  	position: absolute;
  	background: rgba(255,255,255,.75);
  	left: 0;
  	right: 0;
  	-webkit-backdrop-filter: blur(7px);  
  	backdrop-filter: blur(7px);
  	box-shadow: 0px 0px 2.5px rgba(0,0,0,0.2);
  	display: flex;
  	flex-direction: column;
}

#popup label {
	user-select: none;
	font-size: 1em;
	padding-left: .2em;
}

#layers {
	margin-top: auto;
	padding: 1em;
	border-radius: 3px;
}

#layers h3 {
	text-transform: uppercase;
	font-size: .8em;
	margin-left: 4px;
	margin-bottom: 4px;
	letter-spacing: .4px;
	color: #666;
	margin-top: 2em;
}

#layers h3:first-of-type {
	margin-top: 0;
}

#layers div:first-of-type {
	padding: .3em 0px;
  border-bottom: 1px solid #ccc;
  margin: .3em 0;
}

#toggleSidebar {
	position: absolute;
  right: -15px;
  top: 0;
  bottom: 0;
  height: 23px;
  width: 30px;
  margin-top: auto;
  margin-bottom: auto;
  border-radius: 2px;
  -webkit-appearance: none;
  background: white;
  border: 0;
  box-shadow: 0px 0px 1px rgba(0,0,0,0.5);  
  color: #2E7DF6;
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
}

#popup.hidden {
	left: -289px;
}

#popupContent {
	margin: 1em;
	margin-top: 0;
}

#newPointData {
	padding: .5em;
}

#newPointData input, #newPointData select, #newPointData button {
	font-size: 1em;
}

#newPointData, #newpoint_id {
	display: none;
}

#newpoint_namn input, #newpoint_typ select, #newpoint_beskrivning textarea {
	width: 100%;
	margin-bottom: 1em;
}

#newpoint_namn input {
	font-size: 1em;
	font-weight: bold;
}

#newpoint_beskrivning textarea {
	height: 200px;
    font-family: inherit;
    font-size: inherit;	
}

#newpoint_button {
	margin: 0 auto;
  margin-top: 0px;
  display: block;
  margin-top: 1em;
  width: 100px;
}

#login {
	margin: 1em;
}

.maplibregl-user-location-dot {
	z-index: 99;
}

.maplibregl-user-location-dot:before {
	animation: none !important;
}

@media (width <= 640px) {
	#map {
		height: 92%;
	}

	#popup {
		height: initial;
		width: 100%;
		background: white;
		bottom: -250px;
		position: initial;
		overflow: scroll;
		padding-bottom: 4em;
	}

	#popup.hidden {
		bottom: -280px;
		left: 0;
	}	

	#toggleSidebar {
		top: -15px;
    height: 32px;
    transform: rotate(90deg);
    bottom: 0;
    margin: 0 auto;
    right: 0;
    left: 0;
    width: 29px;
    display: none;
	}
}