*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: #783700;
}
.game{
    width: 100%;
    height: 80vh;
    border-bottom: 100px solid #E8E08B;
    margin: 0 auto;
    position: relative;
    overflow: hidden; /*esconder o que passar da tela*/
    background: linear-gradient(#86DBF0, #96E2D8);
}
.nav{
    display: flex;
    justify-content: space-between;
    background-color: #86DBF0;
    align-items: center;
    padding: 30px;
    height: 20vh;
}
.score{
    color: #783700;
    text-transform: capitalize;
    font-size: 20px;
    text-align: center;
}

.count{
    border: 2px solid #783700;    
    border-radius: 8px;
    color: #783700;
    width: 100px;
    height: 70px;    
    text-align: center;
    padding: 5px;
    font-size: 50px;
}

.inicio-flag, .continue-flag{
    display: none;
}
.container-botoes{
    width: 50vw;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    top: 25vh;
    left: 25vw;
}
.inicio, .continue {
    width: 120px;
    height: 60px;
    color: #783700;
    background-color: #d3ba4b;
    border: 4px outset #d3ba4b;
    border-radius: 8px;
    text-align: center;    
    font-size: 14px;
    font-weight: bold;    
    margin: 5px;
    padding: 5px;
}

.inicio:hover, .continue:hover, .botao-audio:hover{
    border: 2px inset #d3ba4b;
    color: #783700;
}

#player{
    display: none;
}
.container-audio{
    display: flex;
    justify-content: center;
    width: 80px;
    height: 50px;
    border-radius: 8px;
    padding: 2px;
    background-color: #d3ba4b;
    border: 4px outset #d3ba4b;
    z-index: 2;
}
.botao-audio{
    color: #783700;
    background-color: transparent;
    border: 2px solid #d3ba4b;
    font-size: 30px;
}
.botao-audio:hover{
    border: 2px inset #bea326;
    color: #783700;
}

.candy{
    position: absolute;
    bottom: 0;
    width: 80px;
    animation: candy-animation 3s infinite linear;
}

.cookie{
    width: 150px;
    position: absolute;
    bottom: 0;
}

.jump-cookie{
    animation: cookie-animation 500ms ease-out; /*pulo do cookie*/
}

.clouds{
    position: absolute;
    width: 600px;
    animation: clouds-animation 20s infinite linear;
}



@keyframes candy-animation {
    from {
        right: -80px; /* Para ele começar de fora da tela*/
    }
    to{
        right: 100%;
    }
}
@keyframes clouds-animation {
    from{
        right: -600px;
    }
    to{
        right: 100%;
    }
}

@keyframes cookie-animation {
    0%{
        bottom: 0;
    }
    40%{
        bottom: 180px;
    }
    50%{
        bottom: 180px;
    }
    60%{
        bottom: 180px;
    }
    70%{
        bottom: 180px;
    }
    100%{
        bottom: 0px;
    }
}
