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

body {
display: block;
margin: 0;
background: #c8d7e0;
}
h3 {
    font-weight: 600;
}

#parentWrapper {
font-family: "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: 900px;
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 {
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);
z-index: 10;
}
#progressContainer {
height: 6px;
background: rgba(0,0,0, 0.2);
width: 100%;

}

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

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

#parentWrapper .button {
font-size: 0.65em;
margin: 10px 0;
text-align: center;
background: #fffa75;
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;
}

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


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

#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;
}
#parentWrapper #text #kilometriCountdown{
padding: 10px 10px 10px 10px;
color: white;
position: relative;
}
#parentWrapper #text #kilometriCountdown .energiaprogress{
    min-height: 0.8em;
    }

#parentWrapper #text #kilometriCountdownWrapper{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
font-size: 0.7em;
text-align: center;
}
#parentWrapper #text #energia{
width: 120px;
height: calc(100% - 4px);
border-radius: 4px;
overflow: hidden;
background: rgba(0,0,0,0.2);
border: 2px solid rgba(0,0,0,0);
}
#parentWrapper #text #energia .energiaprogress{
width: 100%;
height: 100%;
background: rgb(156, 231, 42);
transition: width 1s;

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


#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 #text #kilometriWrapper{
display: flex;
flex-direction: row;
justify-content: space-between;
}
#parentWrapper #levelText {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);

}
#parentWrapper #text .km{
font-size: 0.6em;
margin-left: 4px;
}
#parentWrapper #etsiKaupunki{
font-family: "Saira Semi Condensed","Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 600;
text-transform: uppercase;
font-size: 0.75em;
line-height: 1;
display: flex;
flex-direction: column;
justify-content: center;
letter-spacing: 0px;
padding: 10px 10px 10px 0;

}
#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;
}
#results {
position: absolute;
width: 100%;
height: 100%;
z-index: 200;
top: 0;
line-height: 1;
background: rgba(188, 232, 249, 0.95);
color: rgb(8, 48, 65);
display: flex;
flex-direction: column;
justify-content: center;

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

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

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

#parentWrapper .highlight {
    color: #20637e;
    color: #003f5f;
    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;
    }


    #cta_linkki {
        text-align: center;
        font-size: 0.6em;
        margin: 0px 3% 10px;
        padding-bottom: 10vh;
        padding-top: 3vh;
    }
    #cta_linkki a.button {
        color: #fff;
        text-decoration: none;
    }

    #cta_linkki .button{
        background-color: #3b5998;
    }
    .mapboxgl-ctrl-logo {
        pointer-events: none;
    }
    .mapboxgl-ctrl-attrib-button {
        display: none;
    }

/* 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: 500px) {
    .l-region, .l-region--header, .yle-header {
        display: none!important;
        }
#parentWrapper {
height: calc(100vh - 75px);
}

#parentWrapper #text {
font-size: 1.6em;
}
#results .level h2 {
font-size: 1.2em;
}
#parentWrapper #text #energia {
width: 80px;
}
#parentWrapper #text #etsiKaupunki{
font-size: 0.5em;
}
#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;
        }

} 