@font-face {
    font-family: 'Saira';
    src: url('../css/webfonts/Saira-VariableFont_wdth\,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Saira Semi Condensed';
    src: url('../css/webfonts/SairaSemiCondensed-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Saira Semi Condensed';
    src: url('../css/webfonts/SairaSemiCondensed-Medium.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Cute Font';
    src: url('../css/webfonts/CuteFont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* gluten-regular - latin */
@font-face {
    font-family: 'Gluten';
    font-style: normal;
    font-weight: 400;
    src: url('../css/webfonts/gluten-v9-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../css/webfonts/gluten-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../css/webfonts/gluten-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../css/webfonts/gluten-v9-latin-regular.svg#Gluten') format('svg'); /* Legacy iOS */
  }
  /* gluten-500 - latin */
  @font-face {
    font-family: 'Gluten';
    font-style: normal;
    font-weight: 500;
    src: url('../css/webfonts/gluten-v9-latin-500.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../css/webfonts/gluten-v9-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../css/webfonts/gluten-v9-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-500.woff') format('woff'), /* Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../css/webfonts/gluten-v9-latin-500.svg#Gluten') format('svg'); /* Legacy iOS */
  }
  /* gluten-600 - latin */
  @font-face {
    font-family: 'Gluten';
    font-style: normal;
    font-weight: 600;
    src: url('../css/webfonts/gluten-v9-latin-600.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../css/webfonts/gluten-v9-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../css/webfonts/gluten-v9-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-600.woff') format('woff'), /* Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../css/webfonts/gluten-v9-latin-600.svg#Gluten') format('svg'); /* Legacy iOS */
  }
  /* gluten-700 - latin */
  @font-face {
    font-family: 'Gluten';
    font-style: normal;
    font-weight: 700;
    src: url('../css/webfonts/gluten-v9-latin-700.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../css/webfonts/gluten-v9-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../css/webfonts/gluten-v9-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-700.woff') format('woff'), /* Modern Browsers */
         url('../css/webfonts/gluten-v9-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../css/webfonts/gluten-v9-latin-700.svg#Gluten') format('svg'); /* Legacy iOS */
  }

body {
    display: block;
    margin: 0;
    background: #c8d7e0;
}


#parentWrapper h3 {
    font-weight: 500;
    font-size: 2.8em;
    line-height: 1;
}

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

.muteControl {
    content: "";
    background-image: url("../images/volume.png");
    background-size: contain;
    font-size: 20px;
    color: #d4f1fa;
    cursor: pointer;
    display: flex;
    justify-content: center;
    flex-direction: column;
    filter: invert(1);
    height: 40px;
    width: 50px;
    background-repeat: no-repeat;
    margin: 4px;
}

.muteControl.muted {
    content: "";
    background-image: url("../images/muted.png");
    padding-left: 2px;
    padding-right: 2px;
    margin-right: 2px;
    margin-left: 2px;
    width: 50px;
}

#tipButton {
    /* font-family: "Saira", "Helvetica Neue", Helvetica, Arial, sans-serif; */
    position: relative;
    margin: 6px;
    z-index: 200;
    font-size: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    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
}

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

}

#parentWrapper {
    font-family: "Gluten", "Saira", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    position: relative;
    line-height: 1.2;
    font-size: 36px;
    height: calc(100vh - 50px);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: initial;
}

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

#parentWrapper h3,
#parentWrapper h2 {
    margin-block-start: 0em;
    margin-block-end: 0.1em;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    color: rgba(21, 89, 107, 1);
}

#parentWrapper #infoContainer {
    display: flex;
    position: absolute;
    width: 100%;
    z-index: 600;
    /* background: rgba(30, 92, 117, 0.74);
    background: rgba(51, 169, 199, 0.705);
    background: rgba(82, 167, 189, 0.749); */
    background: rgb(64 130 163 / 80%);
    z-index: 10;
    box-shadow: 0 0 6px rgb(0 0 0);
    /* background-image: url("../images/rasteri2.png");  */
}
#parentWrapper #infoContainer::after {
    background-image: url("../images/rasteri.png"); 
    content: " ";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;  
  opacity: 0.3; 
  z-index: -1;
}

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

#progressContainer {
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;

}

#heartContainer img {
    height: 40px;
    padding: 4px;
    stroke: white;
    stroke-width: 2px;
    /* filter: saturate(7); */
}

#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;
}

#progressContainer .progress {
    height: 100%;
    width: 0%;
    background: #fffa75;
}

#kaupunkimap {
    width: 100%;
    height: 100%;
    position: absolute;
}

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

#parentWrapper .button {
    font-size: 0.65em;
    margin: 10px 0;
    text-align: center;
    background: #FFDE00;
    color: black;
    padding: 10px 28px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 0 10px 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;
}

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


#parentWrapper #levelButton {
    margin: 10px auto;
}

#parentWrapper #text {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #f1f6f8;
    text-align: left;
    /* font-family: 'Cute Font', sans-serif; */
    font-size: 2em;
    line-height: 0.5;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
}


#parentWrapper #text #luku {
    padding: 10px;
    color: white;
    text-align: right;
    font-size: 1.45em;
    display: flex;
    flex-direction: row;
}

#parentWrapper #points {
    font-size: 3em;
    line-height: 0.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    letter-spacing: 0px;
    color: #FFDE00;
    font-family: 'Cute Font', sans-serif;
    padding: 20px;
    background: rgba(0 0 0 / 20%);
}

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

#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;
    font-size: 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 #etsiKaupunki {
    position: relative;
    color: #FFDE00;
    text-align: center;
    /* font-family: "Saira Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif; */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.5em;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    letter-spacing: 0px;
    padding: 0px 10px;
    flex-grow: 1;
    padding-top: 0.2em;
}

#parentWrapper #etsiKaupunki.rightanswer {
    color: #50dd30

}

#parentWrapper #etsiKaupunki.wronganswer {
    color: #d14545;
    color: #f24a00;
}

#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: absolute;
    width: 100%;
    height: 100%;
    z-index: 200;
    top: 0;
    line-height: 1;
    background: rgba(188, 232, 249, 0.95);
    background: rgba(98, 189, 222, 0.95);
    background-color: rgba(255, 255, 255, 0.7);
    background-color: white;
    color: rgb(8, 48, 65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* background-image: url("../images/rasteri.png");  */
}
#results::after {
    background-image: url("../images/rasteri.png"); 
    content: " ";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;  
  opacity: 0.8; 
  z-index: -1;
}

#results.opacity {
    background-color: rgba(255,255,255,0.3);
}

#parentWrapper .wrongflash {
    background: rgb(206, 70, 70);
    height: 100%;
    width: 100%;
    position: absolute;
    opacity: 0.5;
    z-index: 1000;
}

#results img {
    height: 100px;
    margin: 10px;
}

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

#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: #f24a00 !important;
}

#parentWrapper .energiaprogress.red {
    background: #f24a00 !important;
}

#parentWrapper .highlight {
    color: #FFDE00;
    font-weight: 600;
}


#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 {
    font-size: 0.95em;
    color: #25435b;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    margin-top: 1.2em;

    position: relative;
    overflow: auto;
    display: flex;
    justify-content: flex-start;
}

#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;
}

#parentWrapper .funfact:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f05a";
    display: flex;
    justify-content: center;
    font-size: 2em;
    padding-right: 10px;
    color: rgba(82, 167, 189, 0.949);
    flex-direction: column;
}

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

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

#shareButtons {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin-top: 6px;
    margin-bottom: 20px;
}

#shareButtons a {
    text-decoration: none;
}

#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;

}

#shareText {
    font-size: 18px;
    text-align: center;
    margin: 10px 10% 0;
}

#shareButtons #fbShare {
    background: #3b5998;
}

#shareButtons #waShare {
    background: #4dc247;
}

#shareButtons #twShare {
    background: #00aced;
}


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


#results #cta_linkki {
    text-align: center;
    font-size: 0.5em;
    background-color: #f24a00;
    color: white;
    display: flex;
    margin: 2vh auto;
}
#results #cta_linkki a {
    text-decoration: none;
    color: white;
}

#cta_wrapper{
    padding: 0px 1vh;
}

#cta_linkki .button {
    background: none;
    box-shadow: none;
    padding: 0;
}

.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 #e2c500;
    color: #e2c500;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    box-shadow: inset 0px 0px 4px 0px rgba(0 0 0 / 50%);
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    line-height: 1;
    opacity: 0;
    z-index: 101;
}

/* .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;
} */



/* 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 {
        height: calc(100vh - 75px);
    }

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

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

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

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

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

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

    #results img {
        height: 80px;
        margin: 0 10px 10px;
    }

    #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;
    }

}