@import url('https://fonts.googleapis.com/css2?family=Arimo&display=swap');

*{
    cursor: pointer;
}

body{
    padding: 0;
    margin: 0;
    font-family: 'Arimo', sans-serif;
    overflow: hidden;
}


#block{
    display: none;
}

#container{
    position: relative;
    width: 100%;
    height: 100vh;
}

#counter{
    margin: 0;
    padding: 0;
    user-select: none;
    position: absolute;
    left: 50%;
    padding: 33px 8px 8px 8px;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid rgb(140, 140, 140);
    box-shadow: 0px 10px 21px -12px rgba(0,0,0,0.11);
}

#background{
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: url(./assets/bg-gif.gif) center no-repeat;
    background-size:cover;
    opacity: 0;
}

#win{
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: url(./assets/win-gif.gif) center no-repeat;
    background-size:cover;
    opacity: 0;
}

.win_toggle{
    animation: appear 2.75s ease-out;
}

@keyframes appear {
    0% { opacity: 1; }
    100%   { opacity: 0; }
}

#cache_over{
    z-index: 0;
    width: 92px;
    height: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0.25rem;
}

#click_me{
    z-index: 1;
    width: 78px;
    height: 34px;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

footer{
    margin: 0;
    padding: 5px 8px 8px 8px;
    position: absolute;
    top: 97%;
    left: 50%;
    transform: translate(-50%);
    user-select: none;
    background: #fff;
    border: 1px solid rgb(140, 140, 140);
    box-shadow: 0px 10px 21px -12px rgba(0,0,0,0.11);
}

#gh-logo{
    position: absolute;
    z-index: -2;
    top: 50%;
    left: 50%;
    transform: translate(-84%, 50%);
    opacity: 0;
    transition: opacity .7s, transform .7s;
}

footer a{
    background: #fff;
    padding: 0.33rem;
    text-decoration: none;
    transition: all .7s;
    color: #000;
}

footer a:hover{
    color: #fff;
    background: #000;
}

footer a:hover ~ #gh-logo{
    opacity: 1;
    transform: translate(-84%, -145%);
}

/* Not allowed if not desktop ! (caveman language) */

@media only screen and (max-width : 1224px) {
    #block{
        z-index: 9999;
        display: block;
        position: fixed;
        width: 100vw;
        height: 100%;
        background: #fff;
    }
    #block p{
        user-select: none;
        position: absolute;
        text-align: center;
        font-size: 1.5rem;
        width: 66%;
        top: 37%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: floating 3s infinite ease-in-out;
    }

    @keyframes floating {
        0% { transform: translate(-50%,  0px); }
        50%  { transform: translate(-50%, 15px); }
        100%   { transform: translate(-50%, -0px); }
    }
}