:root {
  --primary-padding-and-margin: 0.3em;
  --button-shape: 1em 2em 1em 2em;
  --oppiminen-green: #8efea6;
  --oppiminen-yellow: #ffb53d;
  --oppiminen-lilac: #b569e2;
  --oppiminen-red: #fa6a60;
  --primary-font: Yle Next, Arial, sans-serif;
}

#parentWrapper .lilac {
  color: var(--oppiminen-lilac);
}

#parentWrapper .bold {
    font-weight: bold;
  }

#parentWrapper .kuvaaja {
  font-size: 0.4em;
  text-align: end;
  margin-top: 0.1em;
  margin-right: 0.5em;
}
body {
  display: block;
  margin: 0;
  background: rgb(246, 245, 241);
  background: linear-gradient(
    0deg,
    rgba(246, 245, 241, 1) 0%,
    rgba(156, 222, 231, 1) 100%
  );
  min-height: 100vh;
}
#parentWrapper .contrast {
  filter: contrast(50%);
}
#parentWrapper .brightness40 {
  filter: brightness(0%);
}
#parentWrapper .mapcontainer {
    position: absolute;
        width: 100%;
        height: 100%;
  /* flex: 1 1 auto;  */
 
  overflow: hidden; /* Estää sisällön ylivuodon */

}

#parentWrapper .mapcontainer .kuvapop {
  position: absolute;
  width: 80%;
}

#parentWrapper .mapcontainer .kuvapop img {
  width: 100%;
}

#parentWrapper h3 {
  text-transform: uppercase;
  font-size: 1.8em;
  line-height: 1;
  font-weight: 800;
}

#parentWrapper .resultparagraf {
  max-width: 800px;
  margin: 3vh auto 1vh;
  position: relative;
  z-index: 1000;
}

.brightness0 {
  filter: brightness(0) blur(2px);
}

#tipButton img {
  height: 1em;
  filter: invert(100%);
  padding-left: 6px;
}

#parentWrapper {
  /* font-family: 'Nunito Sans', sans-serif; */
  font-family: var(--primary-font);
  font-weight: 300;
  position: relative;
  line-height: 1;
  font-size: 1.6em;
  /* height: calc(100vh - 50px); */
  height: calc(100dvh - 72px);
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: initial;
  color: #210439;
  display: flex;
  flex-direction: column; /* Aseta lapset pystyyn */
}

#parentWrapper p {
  margin-block-end: 0.6em;
  margin-block-start: 0.6em;
  line-height: 1.2;
}

#parentWrapper h3,
#parentWrapper h2 {
  margin-block-start: 0em;
  margin-block-end: 0.5em;
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
}
#parentWrapper #results .level h3 {
  margin-block-end: 1em;
  font-size: larger;
}
#parentWrapper #infoContainer {
  position: absolute;
  width: 100%;
  z-index: 600;
  background: rgb(255 255 255 / 90%);
  z-index: 10;
  box-shadow: 0 0 6px rgb(0 0 0 / 20%);
  flex: 0 0 auto; /* Vie vain tarvitsemansa korkeus */
}
#parentWrapper #infoContainer::after {
  background-image: url("../images/taustavari.png");
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: -1;
}

#parentWrapper #infoWrapper {
  display: flex;
}

#parentWrapper #infoContainer #wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
}

#progressContainer {
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  overflow: hidden;
}

#progressContainer .progress {
  height: 100%;
  width: 0%;
  background: var(--oppiminen-yellow);
}
#heartContainer img {
  height: 30px;
  padding: 10px 6px;
  stroke: white;
  stroke-width: 2px;
  box-sizing: content-box;
}

#heartContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* #text #pointsHearts {
    display: flex;
    flex-flow: nowrap;
    align-items: flex-start;
    align-items: center;
    justify-content: center;
    order: -1;
} */
#parentWrapper #pointsWrapper {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  background: rgb(221, 177, 250);
  background: linear-gradient(
    90deg,
    rgba(221, 177, 250, 1) 0%,
    rgba(250, 245, 236, 1) 100%
  );
  min-width: 1.2em;
  overflow: hidden;
}

#text #pointsHearts {
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: center;
  justify-content: center;
  grid-template-columns: 1fr 1fr;
  column-gap: 3vh;
  row-gap: 0.7vh;
}

/* #text #pointsHearts > div {
  margin: 0 10px;
} */

#kaupunkimap {
  width: 100%;
  height: 100%;
  /* min-height: 90dvh; */
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
}

#parentWrapper .mirror {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

#parentWrapper .button {
  font-size: 0.65em;
  margin: 10px 0;
  text-align: center;
  background: var(--oppiminen-yellow);
  /* background: linear-gradient(180deg, rgba(185,204,245,1) 0%, rgba(160,218,233,1) 100%); */
  color: black;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  /* box-shadow: 0 3px 3px rgba(0, 0, 0, 0.5); */
  text-transform: uppercase;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  line-height: 1;
  padding-top: 0.7em;
  font-weight: 600;
}

#parentWrapper #tipButton {
  /* font-family: "Saira", "Helvetica Neue", Helvetica, Arial, sans-serif; */
  position: relative;
  margin: 6px;
  z-index: 200;
  font-size: 0.3em;
  background: rgb(181, 206, 243);
  background: linear-gradient(
    90deg,
    rgba(181, 206, 243, 1) 0%,
    rgba(163, 215, 234, 1) 100%
  );
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  text-transform: uppercase;
  padding: 12px 12px 8px;
}

#parentWrapper .button.retry {
  background: rgb(248, 182, 255);
  background: linear-gradient(
    90deg,
    rgba(248, 182, 255, 1) 0%,
    rgba(246, 229, 210, 1) 100%
  );
}

#nextButton {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translate(-50%, 0);
  display: none;
  z-index: 500;
}

#parentWrapper #kreditit {
  font-size: 0.6em;
  line-height: 1.1;
  text-align: center;
}
#parentWrapper #levelButton {
  margin: 10px auto;
  z-index: 1000;
}

#parentWrapper #results.opacity #levelButton {
  margin: 10px auto 6px;
}

/* #parentWrapper #text {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    font-size: 2em;
    font-weight: 600;
    line-height: 1;
    align-items: center;
    padding: 4px 10px;
    background: #c5e8ec;
} */
#parentWrapper #text {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;
  text-align: left;
  font-size: 2em;
  font-weight: 600;
  line-height: 1;
  align-items: center;
  min-height: 60px;
}

#imageContainer {
  display: flex;
  justify-content: center; /* Keskittää kuvan vaakasuunnassa */
  /* margin: 10px;  */
}

#kuva {
  width: 100%; /* Leveys täyttää tilan */
  max-width: 100px; /* Maksimileveys, voi säätää tarpeen mukaan */
  height: auto; /* Kuvan korkeus säilyttää mittasuhteet */
  display: contents;
  cursor: pointer;
}

#kuva img {
  width: 100%; /* Täyttää sen tilan, joka on määritetty #kuva:lle */
  height: auto; /* Säilyttää kuvan alkuperäiset mittasuhteet */
  max-height: 40px;
  margin: 10px;
  object-fit: contain; /* Kuvan skaalaus säilyttäen mittasuhteet ja täyttäen tilan */
}

#parentWrapper #text #luku {
  padding: 10px;
  text-align: right;
  font-size: 0.7em;
  display: flex;
  flex-direction: row;
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}
#parentWrapper #text #luku .km {
  font-weight: 100;
  font-size: 0.5em;
  margin-left: 0.2em;
}

#parentWrapper #points {
  font-size: 3em;

  display: flex;
  flex-direction: column;
  justify-content: center;
  letter-spacing: -2px;
  padding: 20px;
  background: rgb(221, 177, 250);
  background: linear-gradient(
    90deg,
    rgba(221, 177, 250, 1) 0%,
    rgba(250, 245, 236, 1) 100%
  );
  font-weight: 900;
  min-width: 1.2em;
  text-align: center;
}

#parentWrapper #text #luku .count {
  letter-spacing: -2px;
}

#parentWrapper #text #luku div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#parentWrapper #text .otsikko {
  text-transform: uppercase;
  /* font-family: "Saira Semi Condensed", "Saira", "Helvetica Neue", Helvetica, Arial, sans-serif; */
  font-weight: 300;
  font-size: 0.25em;
  line-height: 1;
  float: left;
  margin-right: 0.2em;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}

#parentWrapper #levelText {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#parentWrapper #kohdeWrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
#parentWrapper #kohdeContainer {
  position: relative;
  z-index: 100;
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: rgba(240, 248, 255, 1);
  border-radius: 8px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.4);
}

#parentWrapper #kohdeButtonWrapper {
  /* display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: stretch */
  display: grid;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

#parentWrapper #kohdeButtonWrapper #vihjeButton {
  font-size: 0.7rem;
  margin-top: 0;
  margin-bottom: 0.3rem;
  background: var(--oppiminen-green);
  color: black;
}

#parentWrapper #kohdeButtonWrapper div {
  /* margin: 8px; */
  flex-grow: 1;
  text-align: center;

  width: -webkit-fill-available;
}
#parentWrapper #kohdeName {
  font-size: 0.5em;
}
#parentWrapper #kohdeName.active {
    margin: 0.3em 0.1em 0.1em;
  transition: all 0.5s ease-out;
  font-size: 0.7em;
}

#parentWrapper #kohdeImage {
  position: relative;
  /* width: 80%;
    height: 80%; */
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: flex-end;
}
/* #parentWrapper #kohdeButtonWrapper {
    border-top: solid 10px black;
    padding: 8px 20px;
    border-radius: 10px;
} */
#parentWrapper #kohdeWrapper img {
  display: block;
  max-width: 280px; 
  max-height: 45vh; /* Skaalaa kuvan korkeuden*/
  height: auto; /* Säilyttää kuvasuhteen */
  width: auto; /* Säilyttää kuvasuhteen */
  border-radius: 6px;
  margin: auto;
}


#parentWrapper #kohdeWrapper .button {
  background: var(--oppiminen-yellow);
  color: black;
}

#parentWrapper #etsiKaupunki {
  position: relative;
  text-align: center;
  /* font-family: "Saira Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif; */
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  letter-spacing: 0px;
  padding: 0px 10px;
  flex-grow: 1;
  padding: 0.3em 0.2em 0.2em 0.2em;
}

#parentWrapper #etsiKaupunki.rightanswer {
  color: #00b3c8;
}

#parentWrapper #etsiKaupunki.wronganswer {
  color: var(--oppiminen-red);
  text-shadow: 0 0 0.1em rgb(255 255 255 / 40%);
}

#parentWrapper #etsiKaupunki.topright {
  padding-right: 10px;
  font-size: 0.7em;
  text-align: right;
  -webkit-transform: translate(-100%, 0%);
  transform: translate(-100%, 0%);
  padding: 10px 10px 10px 20px;
  border-radius: 0 0 0 30px;
  transition: 0.5s;
  transition-delay: 1s;
}

#parentWrapper #controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-end;
  align-items: center;
}

#results {
  position: relative;
  background-image: url(../images/taustavari_blur.png);
  width: 100%;
  height: 100%;
  z-index: 200;
  top: 0;
  line-height: 1;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.95em;
  align-content: center;
  align-items: center;
}
#resultsContent {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: 100%;
}

#globeBackground {
  background-image: url(../images/globe.png);
  background-size: contain;
  background-repeat: no-repeat;
  /* height: 30vh; */
  background-position: bottom center;
  width: 100%;
  height: 25vh;
  position: absolute;
  transform: translateX(-50%);
  bottom: 0;
  left: 50%;
}
#globeBackground2 {
  display: none;
}
.startpage #globeBackground2 {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.startpage #globeBackground2 img {
  height: 26vh;
  width: auto;
}

#results.opacity {
  background: rgba(164, 212, 237, 0.9);
  background: linear-gradient(
    232deg,
    rgba(164, 212, 237, 0.9) 0%,
    rgba(252, 248, 241, 0.9) 34%,
    rgba(252, 248, 241, 0.9) 50%,
    rgba(252, 248, 241, 0.9) 64%,
    rgba(222, 177, 250, 0.9) 100%
  );
}

#results p img {
  height: 0.7em;
  width: auto;
  margin: 0;
}
#parentWrapper .wrongflash {
  background: rgb(206, 70, 70);
  height: 100%;
  width: 100%;
  position: absolute;
  opacity: 0.5;
  z-index: 1000;
}

#results img {
  height: auto;
  margin: 10px 10px 0.5vh;
  width: 200px;
}

#results .level {
  margin: 14px 5%;
  text-align: center;
  /* font-size: 0.8em;
    line-height: 1.1; */
}

#parentWrapper .opacity0 {
  opacity: 0 !important;
}

#results .rotate90 {
  margin: 0 4px 0 0;
  transform: rotate(90deg);
  filter: invert(1);
  height: 1em;
}
img.rotate90 {
  height: 1em;
}

#results .level.gameover {
  z-index: 100;
}

#parentWrapper .red {
  color: var(--oppiminen-red) !important;
  font-weight: 900;
}

#parentWrapper .redtausta {
  background-color: var(--oppiminen-red) !important;
}
#parentWrapper .turkoosi {
  color: rgba(21, 89, 107, 1);
}

#parentWrapper .funfact .highlight {
  color: black;
  font-weight: bold;
  background-color: var(--oppiminen-green);
  width: 100%;
  padding: 1em 0;
  background: -moz-linear-gradient(
    0deg,
    rgba(142, 254, 166, 1) 0%,
    rgba(237, 254, 241, 1) 100%
  );
  background: -webkit-linear-gradient(
    0deg,
    rgba(142, 254, 166, 1) 0%,
    rgba(237, 254, 241, 1) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(142, 254, 166, 1) 0%,
    rgba(237, 254, 241, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#8efea6",endColorstr="#edfef1",GradientType=1);
  position: relative;
}
#parentWrapper .highlight {
  color: var(--oppiminen-red);
  font-weight: 600;
}

#parentWrapper #results.relative {
    position: relative;
    overflow: scroll;
    padding-bottom: 0.2em;
  }


#parentWrapper .funfact .highlight::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px; /* Säädä, jotta kolmio asettuu oikein */
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--oppiminen-green); /* Kolmion väri */
}

#parentWrapper #yleLogo {
  display: block;
  float: left;
  width: 40px;
  height: 40px;
  margin: 5px 5px 5px 0px;
  background: url("../images/ylelogo.png");
  background-size: 40px 40px;
  background-repeat: no-repeat;
}

#parentWrapper .funfact {
  max-width: 580px;
  font-size: 0.8em;
  text-align: left;
  border-radius: 8px;
  /* padding: 2vh; */
  background: #fefdfb;
  position: relative;
  overflow: auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 3px 3px rgb(0 0 0 / 50%);
  font-weight: 400;
  margin-bottom: 2em;
}

#parentWrapper .funfact p {
  line-height: 1.1;
  margin-block-start: 0;
  margin-block-end: 0.2em;
  -webkit-margin-before: 0.2em;
  -webkit-margin-after: 0.2em;
  margin: 2em 1em;
}

#parentWrapper .funfact:before {
  /* font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f05a";
    display: flex;
    justify-content: center;
    font-size: 1.6em;
    padding-bottom: 1vh;
    color: var(--oppiminen-red); */
}

#parentWrapper .far {
  margin-right: 6px;
  margin-left: 0;
}

#shareWrapper {
  /*padding-bottom: 10vh;*/
}

#parentWrapper #results #shareButtons {
  display: flex;
  justify-content: center;
  flex-direction: row;
margin: 0.1em 0.2em 0.2em;
}

#shareButtons a {
  text-decoration: none;
}

#parentWrapper .button {
    font-size: 0.5em;
    /* padding-top: 0.8em; */
    font-weight: 600;
    line-height: 1.2;
  }

#shareButtons div {
  border: none;
  border-radius: 999px;
  background-color: #315b7d;
  outline: none;
  font-size: 24px;
  height: 48px;
  width: 48px;
  text-decoration: none;
  margin: 2px 10px;
  color: #fff;
  position: relative;
  cursor: pointer;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  -webkit-justify-content: center;
  flex-direction: column;
  text-align: -webkit-center;
}



#results #shareButtons img {
  height: auto;
  width: 20px;
  margin: auto;
  filter: brightness(0) invert(1);
}

#shareButtons #fbShare {
  background: #1877f2;
}

#shareButtons #waShare {
  background: #25d366;
}

#shareButtons #twShare {
  background: #000;
}

#parentWrapper .hide {
  display: none !important;
}

#parentWrapper .custom {
}

#results #cta_linkki {
  /* text-align: center;
  font-size: 14px;
  display: flex;
  margin: 0.4vh auto; */
}
#results #cta_linkki a {
  text-decoration: none;
  color: white;
}

#cta_wrapper {
  padding: 0px 1vh;
}

#cta_linkki.button {
  background-color: var(--oppiminen-lilac);
  color: white;
}

.mapboxgl-ctrl-logo {
  pointer-events: none;
}

.mapboxgl-ctrl-attrib-button {
  display: none;
}

#parentWrapper .points {
  position: absolute;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

:root {
  --animate-duration: 2s;
  --animate-delay: 1s;
  --animate-repeat: 1;
}

/* #parentWrapper .coin {
    font-family: 'Cute Font', sans-serif;
    background-color: #FFDE00;
    border-radius: 50%;
    font-size: 2em;
    height: 1em;
    width: 1em;
    border: 0.08em solid #ffde02;
    color: #eccd00;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 60%);
    box-shadow: inset 0px 0px 2px 0px rgb(0 0 0 / 70%);
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    line-height: 1;
    opacity: 0;
    z-index: 101;
    pointer-events:none;
} */

#parentWrapper #results > div {
    margin-top: 1em;
}

#shareText {
    text-align: center;
    margin: 0 10% 0;
    font-size: 0.4em;
  }
#parentWrapper #startWrapper.startpage {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: stretch;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 1000;
  position: relative;
  background-image: url("../images/taustavari.png");
  background-size: cover;
}

#parentWrapper .startpage #results {
  /* justify-content: flex-start; */
  position: relative;
  background: none;
}

#results .level.eka {
  /* padding-top: 6vh; */
}
/* .animate__animated {
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-duration: var(--animate-duration);
    animation-duration: var(--animate-duration);
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
} */

#parentWrapper #kilometriWrapper {
  display: flex;
}

#parentWrapper #heartContainer div {
  display: flex;
}

#parentWrapper #text #kilometriCountdown {
  padding: 10px 10px 10px 10px;
  color: white;
  position: relative;
}
#parentWrapper #text #energia {
  width: 120px;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

#parentWrapper #text #energia .energiaprogress {
  width: 100%;
  height: 100%;
  background: var(--oppiminen-green);
  transition: width 1s;
  min-height: 0.8em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}
#parentWrapper #text #energia .energiaprogress .kmswrapper {
  display: flex;
}
#parentWrapper #text #energia .energiaprogress .kms,
#parentWrapper #text #energia .energiaprogress .kmstext {
  font-size: 0.3em;
  margin: 0 1px;
  color: black;
}
/* YDDRASILIN PALKIT PIILOON */

.unpublished,
.max-w-cod,
.node__status,
ul.tabs,
ul.tabs--primary,
.element-invisible,
#navbar-administration,
#ylefifooter,
.yle-header-ad,
.l-region.l-region--header {
  display: none !important;
}

@media only screen and (max-width: 600px) {
  .l-region,
  .l-region--header,
  .yle-header {
    display: none !important;
  }

  #parentWrapper {
    font-size: 2em;
    height: calc(100dvh - 56px);
    /* height: calc(100vh - 75px); */
  }

  #parentWrapper #results > div {
    margin-top: 0.4em;
}
  #parentWrapper #kohdeWrapper {
font-size: 0.8em;  
}
  #parentWrapper #text #luku {
    font-size: 0.6em;
}
  #parentWrapper #text #kilometriCountdown {
    padding: 10px 10px 4px 10px;
    color: white;
    position: relative;
}
  #parentWrapper #kohdeWrapper img {
    max-width: 100%; 
  }

  #parentWrapper .button {
    font-size: 0.4em;
    /* padding-top: 0.8em; */
    font-weight: 600;
  }

  #parentWrapper #text {
    font-size: 1.6em;
  }

  #parentWrapper #kreditit {
    font-size: 0.4em;
  }

  .startpage #globeBackground2 img {
    width: 65%;
    height: auto;
  }

  #parentWrapper .startpage #results {
    font-size: 0.9em;
  }

  #parentWrapper #progressContainer {
    height: 6px;
  }

  #results .level h2 {
    font-size: 1.2em;
  }

  #parentWrapper h3 {
    font-size: 1.5em;
  }

  #parentWrapper #results .level h3 {
    font-size: 0.8em;
}
#parentWrapper .funfact {
    font-size: 0.5em;
}

  #parentWrapper #text #energia {
    width: 80px;
  }

  #parentWrapper #etsiKaupunki {
    font-size: 0.8em;
  }

  #results .level {
    font-size: 1em;
    margin: 10px 3%;
    line-height: 1.1;
    padding-top: 1em;
  }

  #results .level.eka {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 0.6em;
  }

  #results img {
    width: 40%;
    height: auto;
  }

  #results .level.loppu {
    font-size: 0.55em;
}
}

#results .level.loppu {
  margin-bottom: 0;
}

#results .level.loppu img {
  /* height: 50px;
        margin-bottom: 5px; */
}

#parentWrapper #text #kilometriCountdown .energiaprogress {
  min-height: 0.6em;
}

.mapboxgl-ctrl-group {
  /* display: none; */
}

#parentWrapper #points {
  font-size: 2em;
  padding: 10px;
}
#heartContainer img {
  height: 30px;
}

#shareButtons div {
  font-size: 20px;
  height: 40px;
  width: 40px;
}



#heartContainer img {
  height: 22px;
  padding: 3px;
}

#heartContainer #progressContainer {
  padding: 3px;
}
#text #pointsHearts {
  grid-template-columns: 1fr;
}

@media only screen and (max-width: 400px) {
  #parentWrapper #tipButton {
    padding: 10px 12px 8px;
    font-size: 0.25em;
  }

  #results .level.loppu img {
    margin-bottom: 5px;
    width: 30%;
    height: auto;
  }

  .mapboxgl-ctrl-group {
    display: none;
  }

  #parentWrapper #points {
    font-size: 1.5em;
    padding: 8px;
  }
}
