*{margin:0;padding:0;box-sizing:border-box;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}

:root{
    --bgcol:#37474F;
    --mcol0:#29B6F6;
    --mcol1:#2196F3;
    --mcol2:#1976D2;
    --txtcol0:#90A4AE;
    --txtcol1:#607D8B;
    --whitecol:#ECEFF1;
    --darkcol:#263238;
}
h1{
    color:var(--whitecol);
    padding: 10px;;
}
body{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding-top:5vh;
    background-image: url(gamebg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    background-position: right;
}

#puzzle_container{
    position: relative;
    width: 50vh;
    height:50vh;
    border-radius:8px;
    border:1px solid var(--mcol0);
    box-shadow:0px 8px 0px var(--mcol0);
    margin-top: 20px;
}

.puzzle_block{
    position:absolute;
    left:0;
    top:0;
    width:33.4%;
    height:33.4%;
    background-size: cover;
    color:var(--whitecol);
    font-size:10vh;
    font-weight:bold;
    text-align:center;
    padding-top:3%;
    cursor: pointer;
    user-select:none;
    transition:left 0.3s,top 0.3s;
}

/*difficulty container*/
#difficulty_container{
    display:flex;
    flex-direction:row;
    width: auto;
    height: auto;
    border-radius:8px;
    margin-top:22px;
    justify-content: center;
}
.difficulty_button{
    flex-grow:1;
    text-align:center;
    font-size:3vh;
    padding:15% 40%;
    cursor: pointer;
    transition:font-size 0.3s;
}
.difficulty_button:hover{
    opacity:0.8;
    font-size:3.5vh;
}
.difficulty_button.active{
    color:rgba(255, 255, 255, 0.836);
}