

/* meta container  */
.vuosilukupeli-container {
    text-align: center;
    padding: 15px;
    min-height: 100vh;
    background: linear-gradient(43deg, #efd0f1 0%, #f7e4ee 12%, #fef6eb 32%, #fef6eb 64%, #e6f0e8 83%, #a8dfdf 100%);
}


#image {
    width: 100%;
    max-height: 38em;
    max-width: 1000px;
    object-fit: scale-down;
    transition: transform 0.3s;
    margin-top: 10px;
}


.image-container {
    display: inline-block;
    max-width: 1000px;
    /* border: 3px solid #ccc; */
    /* background: #eee; */
    /* padding: 15px 10px; */
    overflow: hidden;
    cursor: -moz-zoom-in; 
    cursor: -webkit-zoom-in; 
    cursor: zoom-in;
}

#oppiminen-image {
    height: 80px;
    margin: 0 10px 10px;
}

h1 {
    font-size: 40px;
    margin-top: 10%;
}

/* These need to start hidden */
.game-container,
.endgame-container,
#finishgame-button {
    display: none;
}

#nextground-button {
    margin-top: 10px;
}
#finishgame-button {
    margin-top: 10px;
}

#finishgame-button,
#nextground-button,
#startgame-button {
    text-align: center;
    /* margin: 0 auto; */
}

#startgame-button {
    margin-top: 10px;
}

#startgame, .endgame-container {
    width: 50%;
    margin: 0 auto;
}

.button-container,
.points-container,
.slider-container {
    align-content: center;
}

.slider-container {
    position: relative;
    margin-left: 25%;
    margin-right: 25%;
}


.slider {
    -webkit-appearance: none;
    /* Override default CSS styles */
    appearance: none;
    /* width: 102%; */
    margin-left: 0.7%;
    width: 100.3%;
    /* Full-width */
    background: #d3d3d3;
    /* Grey background */
    outline: none;
    /* Remove outline */
    opacity: 0.7;
    /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s;
    /* 0.2 seconds transition on hover */
    transition: opacity .2s;
    display: flex;
}

.slider:hover {
    opacity: 1;
    /* Fully visible on hover */
}
#year {
    color: #9f0478;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    /* Override default look * 25px */ 
    appearance: none;
    width: 15px;
    /* Set a specific slider handle width */
    height: 25px;
    /* Slider handle height */
    background: #9f0478;
    /* Green background */
    cursor: pointer;
    /* Cursor on hover */
}

.slider::-moz-range-thumb {
    width: 15px;
    /* Set a specific slider handle width */
    height: 25px;
    /* Slider handle height */
    background: #9f0478;
    /* Green background */
    cursor: pointer;
    /* Cursor on hover */
}

.slider::-moz-range-progress {
    background: #9f0478;
}

/* all slider ticks  */
.slider-ticks {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

/* Slider tick spans (one specific tick)  */
.slider-ticks span {
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 1px;
    background: #000;
    height: 5px;
    line-height: 30px;
    font-size: 20px;
}

/* guess line  */
.guess-line {
    position: absolute;
    height: 25px;
    width: 12px;
    background-color: #00b4c8;
    top: 0px;
}


/* Text containers  */
.score-container,
.selectedyear-container {
    font-size: 1.3em;
    margin: 5px;
}

.selectedyear-container {
    margin-top: 30px;
}

.btn {
    background-color: #9f0478;
    border: none;
    color: white;
    margin: 5px;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 24px;
    cursor:pointer;
}

p {
    font-size: 2rem;
}

/* Explanation text margin */
#explanation {
    margin: 0 20% 0 20%
}


.gameinfo-container {
    justify-content: space-between;
    display: flex;
    margin-left: 25%;
    margin-right: 25%;
    font-weight: bold;
}


output {
    font-size: 2rem;
}

.max-w-cod, .ydd-footer {
    display: none !important
}

/* Extra small devices (phones) */
@media (max-width: 576px) {

    /* .slider-ticks {
        display: none;
    } */

    h1 {
        font-size: 24px;
    }

    .selectedyear-container {
        margin-top: 20px;
    }
    #playagain-button {
        padding: 2px 3px;
    }
    .js-yle-global-header {
        display: none !important;
    }    
    
}

/* Small devices (tablets, small desktops) */
@media (max-width: 768px) {
    .slider-ticks span {
        font-size: 15px;
    }
    .slider-ticks span:nth-child(2n) {
        display: none
    }
    #explanation,
    #timestamp {
        font-size: 14px;
    }
    .image-container {
        padding: 0
    }
    .vuosilukupeli-container{
        padding: 5px;
    } 
    #value {
        font-size: 28px;
    }
    p {
        font-size: 18px;
    }
}

/* Medium devices (desktops) */
@media (max-width: 992px) {
    #explanation {
        margin: 0 0 0 0;
    }
    #startgame, .endgame-container {
        width: 80%;
    }
    .slider-container {
        margin-left: 2%;
        margin-right: 5%;
    }
    .gameinfo-container {
        margin-left: 0%;
        margin-right: 0%;
    }
    
}

/* Large devices (large desktops) */
@media (min-width: 993px) and (max-width: 1200px) {

    .slider-container {
        margin-left: 10%;
        margin-right: 10%;
    }
    .gameinfo-container {
        margin-left: 10%;
        margin-right: 10%;
    }

}


/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vuosilukupeli-container {
        background: white;
        color: black;
    }

}


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

#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 {
    text-align: center;
    margin: 10px 10% 0;
    /* font-size: 20px; */
}

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

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

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

