/* Ensure kartdiv is a positioned ancestor for absolute children */
#kartdiv {
  position: relative;
}

body {
  background-color: #faf9f7;
  /* height: 850px; */
  /* width: 1000px; */
  -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 {
  position: relative;
  /* height: 600px; */
}

#vinjett {
  position: absolute;
  top: 20%;
  left: 10%;

  /* float: left; */
  width: 200px;
  pointer-events: none;
  left: 10%;
  z-index: 10;
}

#vinjettbild {
  width: 200px;
  pointer-events: none;
}




/* #content {
  max-width: 500px;
  margin: auto;
} */

#radiobuttons {

  position: static;
  bottom: -200px;
  margin-left: 10px;
  /* display: none; */
  /* float: left; */
  /* width: 140px; */
  /* top: 250px; */
  /* left: 30px; */
  /* border-radius: 10px;
  border: 1px solid black; */
  /* background-color: #fcfaf5; */
  /* background-color: rgba(252, 250, 245, 0.5); */
  
  /* padding: 10px; */
  z-index: 10;
  line-height: 5%;
  display: none;
}

form.kategori {
  display: flex;
  flex-wrap: wrap;
  /* margin: -5px; */
  padding: 0px;
}

input[type=radio] {
  /* opacity: 0; */
  width: 0px;
  /* margin-left: 20px; */
}

label {
  display: inline-block;
  border-radius: 5px;
  padding: 10px;
  /* padding-top: 15px;
  padding-bottom: 15px; */
  margin-right: 2px;
  margin-bottom: 3px;
  color: white;
  font-size: medium;
  font-weight: 500;
  line-height: 90%;
  /* background-color: #ddebeb; */
  /* box-shadow:#7e7f7f 3px 3px 0,
              #7e7f7f 1px 1px 0,
              #7e7f7f 2px 2px 0; */
}

label:hover {
  background-color: gray;
}

/* g.label-group text.label-ort {
  font-size: small;
}
  g.label-group text.label-citat {
  font-size: medium;
} */

foreignObject .label-citat {
  font-size: 16px;
  font-weight: normal;
  color: black;
  line-height: 0.9;
    background-color:rgba(255,255,255,0.7);


  /* background-color: white;
  opacity: 0.7; */
  padding: 2px 4px 4px 4px;
  }

foreignObject .label-ort {
  font-size: 12px;
  font-weight: bold;
  color: black;
  line-height: 1;
  }

  foreignObject .litenofet {
    font-weight: 700;
    font-size: small;
    color: #ee492e;
    opacity: 1;
  }




.inactive {
  opacity: 0.2;
  pointer-events: none;
}



svg {
  position: absolute;
  width: 800px;
  /* right: 3px; */
  /* filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 1));
  -webkit-filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 1)); */
}

.shadow{

  filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 1));
  -webkit-filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 1));
}

svg text.sverige {
  font-size: 12px;
  font-weight: bold;
  fill: black;
  /* font-stretch: ultra-condensed; */
  transform: scaleX(0.5);
}

#kartpopup {
  display: none;
  width: 300px;
  /* min-width: 250px; */
  max-width: 350px;
  padding: 5px;
  background-color: white;
  border: 1px solid gray;
  position: absolute;
  /* position: fixed;
  left: 50%;
  transform: translate(-50%, 50%); */
  z-index: 30;
  box-shadow: 3px 3px 3px   #707070;
}
#kartpopup .fet {
  font-weight: bold;
  font-size: 18px;
  line-height: 1.2em;
  color: #111;
}

#kartpopup .link {
  color: #e00f00;
  font-weight: bold;
  line-height: 1em;
  text-transform: uppercase;
}

circle.cirkel {
    fill: #ee492e;
    stroke: white;
    stroke-width: 1px;
    cursor: pointer;
    /* transition: fill 0.3s; */
}

circle.cirkel:hover {
    /* fill: white; */
    fill: #CBC3E3;

}

.pulse {
  fill: white;
  fill-opacity: 1;
  transform-origin: 50% 50%;
  animation-duration: 2s;
  animation-name: pulse;
  animation-iteration-count: infinite;
}

@keyframes pulse {
  from {
    stroke-width: 3px;
    stroke-opacity: 1;
    transform: scale(0.3);
  }
  to {
    stroke-width: 0;
    stroke-opacity: 0;
    transform: scale(2);
  }
}



.pulse {
  fill: red;          /* Fill color when the circle pulses */
  fill-opacity: 1;    /* Adjust the opacity if needed */
  transform-origin: 50% 50%;
  animation-duration: 2s;
  animation-name: pulseAnimation;   /* Changed from 'pulse' to 'pulseAnimation' */
  animation-iteration-count: infinite;
}

/* @keyframes pulseAnimation {  
  0% {
    r: 5;                    
    fill-opacity: 1;
  }
  50% {
    r: 10;                     
    fill-opacity: 0.7;        
  }
  100% {
    r: 5;                     
    fill-opacity: 1;
  }
} */


img.closex:hover {
  background-color: #ddebeb;
}

img.closex {
  width: 20px;
  position: absolute;
  right: 2px;
  top: 2px;
}

#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(245,247,247,0.8); /* Black background with opacity */
    background-color: #fcfaf5;
    opacity: 0.5;
    z-index: 20; /* Specify a stack order in case you're using a different order for other elements */
    /* cursor: not-allowed; */
    /* pointer-events: none; */
}



div.tooltip {
  position: absolute;
  background-color: white;
  border: 1px solid black;
  color: black;
  font-weight: bold;
  padding: 4px 8px;
  display: none;
  font-weight: normal;
}

#loadercontainer{
  position: absolute;
  /* top: 370px;
  left: 350px; */
  width: 150px;
  z-index: 10;
  top: 270px;
  right: -30px;
}


.loader { 
  box-sizing: border-box;

  border: 40px solid #f3f3f3;
  border-top: 40px solid #3D82C4;
  border-right: 40px solid #D81B61;
  border-bottom: 40px solid #014D41;
  border-left: 40px solid #fec111;

  border-radius: 50px;
  width: 40px;
  height: 40px;
}

.wheel {
  /* position: absolute; */
  /* top: 50%;
  left: 50%;  */
}

#hjulimg {
  width: 120px;
}

#hjultext {
  width: 110px;
  text-align: center;
  padding-left: 5px;
}

.spin {
  /* transform: translate(-50%, -50%); */
  animation: spin 4s cubic-bezier(0.4, 0, 0.2, 1) 1;
  transform-origin: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); } /* Start position */
  50% { transform: rotate(1080deg); } /* 3 rotations at an even pace */
  100% { transform: rotate(1080deg); } /* End position */
}

.noclick {
  pointer-events: none;
}

@media only screen and (max-width: 760px) {
  svg {
    width: 600px;   
  }
  #vinjett {
    width: 150px;
    /* left: 10%; */
  }
  
  #vinjettbild {
    width: 150px;
    pointer-events: none;
  }

}

@media only screen and (max-width: 600px) {
  svg {
    width: 500px;   
  }

  #vinjett {
    width: 120px;
    /* left: 10%; */
  }
  
  #vinjettbild {
    width: 120px;
    pointer-events: none;
  }


}

@media only screen and (max-width: 500px) {

  svg {
    width: 375px;   
  }
/* 
  #vinjett {
    left: 10%;
  } */
  
  /* #vinjettbild {
    pointer-events: none;
  } */

  img#vinjettbild {
    content: url("vinjett_liten.png")
  }

  /* select image in div id kartpopuptext */
  #artikelbild {
    width: 300px !important;
    height: auto;
    object-fit: contain;
  }

  #radiobuttons {

    top: 250px;
    /* width: 110px; */
    /* width: 40px; */
    /* padding: 10px; */
    z-index: 10;
    line-height: 5%;
  }

  #loadercontainer h3 {
    font-size: medium;
  }

  
  input[type=radio] {
    opacity: 0;
    width: 0px;
    /* margin-left: -20px; */
  }
  
  label {
    display: inline-block;
    padding: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 5px;
    font-size:medium;
    font-weight: 500;
    line-height: 80%;
    /* color: white;
    background-color: #ddebeb;
    box-shadow:#7e7f7f 3px 3px 0,
                #7e7f7f 1px 1px 0,
                #7e7f7f 2px 2px 0; */
  }

  /* Specific selector of a text classed label-ort inside a g classed label-group */
  g.label-group text.label-ort {
    font-size: 6px;
    fill: red;
  }

@media only screen and (max-width: 400px) {

  svg {
    width: 300px;   
  }
}

@media only screen and (max-width: 320px) {

  svg {
    width: 280px;   
  }
}

@media only screen and (max-width: 280px) {

  svg {
    width: 240px;   
  }
}

  /* Changing animation name to "none" disables animation  */
  .pulse {
     animation-name: none;
  }
  
 


}
