@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&display=swap');


* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body{

    background-image: url(./assets/cenário.gif);
    background-repeat: no-repeat;
    width: 100vr;

}

.game-board{

    width: 100%;
    height: 100vh;
    margin: 0;
    border: 200px solid #080C20; 
    position: relative;
    overflow: hidden;
    
}

.title {

    width: 100%;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    position: absolute;
    z-index: 9999;
    top: 80px;
    
}
.title span{
    font-size: 40px;
}



.house{
    position: absolute;
    bottom: 0;
    width: 110px;
    right: 0px;
    animation: house-animation 1.5s infinite linear;
}
.house.inverter{
    opacity: 0.5;
}


.catbus{
    width: 200px;
    position: absolute;
    bottom: 0px;
    transform: scaleX(-1);
}
.catbus.inverter{
    opacity: 0.5;
    transform: scaleX(1);
}

.jump {
    animation: catbus-animation 1000ms ease-out;
}

@keyframes house-animation {
    from {
        right: 0;
    }

    to {
        right: 100%;
    }
}

@keyframes catbus-animation{
    0% {
        bottom: 0;
    }

    40%{
        bottom:200px;
    }

    50% {
        bottom: 200px;
    } 

    60% {
        bottom: 200px;
    }

    100% {
        bottom: 0;
    }
}



.game-over{

    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    display: none;
    
}
.game-over.over{
    display: flex;
    gap: 25px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-over p , svg{
    position: relative;   
}

.game-over p{
    color: #F1CE0E;
    font-family: 'Bona Nova' , serif;
    font-weight: 400;
    font-size: 70px;
}
.game-over svg{
    fill: #F1CE0E;
    cursor: grab;
    width: 56px;
}

.game-board.over{
    backdrop-filter: blur(10px);
}


.game-over button{

    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    background-color: transparent;
    border: none;
    
}


.circle{
    background-color: transparent;
    padding: 0;
    border-radius: 50px;
    height: 5px;
    width: 5px;
    position: absolute;
    transition:  0.4s all;

}
.game-over button:hover .circle{
    background-color: #2336935d;
    padding: 35px;
    transition: 0.3s all;   
}



.byname {
    width: 100%;
    text-align: center;
    position: absolute;
    z-index: 9999;
    bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 80px;
}

.byname a{
    display: inline-block;
    color: #ffffff;
    text-decoration: none;  
    font-family: 'Inter' , sans-serif;
    font-size: 17px;
    transition: 0.4s all;
    box-shadow: 0px 0px 0px 0px #42569ffa;
}

.byname a:hover{
    transition: 0.3s all;
    box-shadow: 0px 3px 0px 0px #42569ffa;
    
}