@import url('https://fonts.googleapis.com/css2?family=Handjet:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --startgame-text-color: #90ee90;
    --gameover-text-color: #af0000;
    --gameborder-color: #999999;
}

.max-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
}

.game {
    font-family: "Handjet", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin: 20px 0 70px;
}

.game h1 {
    font-weight: 400;
    font-style: normal;
    font-size: 38px;
    margin: 5px;
}

.game h3 {
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    margin: 2px;
}

.game-container {
    position: relative;
    width: 600px;
    height: 200px;
    border: 1px solid var(--gameborder-color);
    background: lightgray url('assets/img_triangles.png') repeat-x;
    background-size: contain;
    animation: moveBackground 10s linear infinite;
    overflow: hidden;
    margin: auto;
    border-radius: 8px;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -100px 0;
    }
}


.ant {
    width: 40px;
    height: 40px;
    background-image: url('assets/img_ant.png');
    background-size: cover;
    position: absolute;
    bottom: 0;
    left: 50px;
}
.obstacle {
    width: 40px;
    height: 28px;
    background-size: cover;
    position: absolute;
    bottom: 0;
    right: 0;
}

.textureObstacle1 {
    background-image: url('assets/img_rock.png');
}

.textureObstacle2 {
    background-image: url('assets/img_rock2.png');
}

.textureObstacle3 {
    background-image: url('assets/img_rock3.png');
}


.message-start, .message-endgame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 26px;
    line-height: 32px;
    text-align: center;
    z-index: 99999999;
}

.message-start, .message-endgame {
    color: var(--startgame-text-color);
}

.message-endgame {
    color: var(--gameover-text-color);
}