@font-face {
    font-family: sportype;
    src: url(./res/fonts/slopeopera.ttf);
}
body, html, p {
    margin: 0;
    padding: 0;
}

* {
    font-family: sportype;
    user-select: none;
}

.fullscreen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
}

.no-touch {
    touch-action: none;
}

a.back {
    display: block;
    margin: 20px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

a.back:hover {
    background: #ddd;
}

.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 75px;
    height: 75px;

    border: 12px solid transparent;
    border-radius: 50%;
    border-top-color: #558cd1;
    border-right-color: #558cd1;
    border-bottom-color: #558cd1;

    animation: spin 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
  100% { transform: rotate(1800deg); }
}

.game-container {
    position: absolute;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.game-container p {
    font-size: 25px;
    color: white;
    animation: ani 3s linear infinite;
}

@keyframes ani { 
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.2;
    }
}

.player-container {
    position: absolute;
    bottom: 25px;
    left: 25px;
    border-radius: 50%;
    background-color: rgba(47, 47, 47, 0.85);
    width: 170px;
    height: 170px;
    display: none; 
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    box-shadow:  2px 2px 3px rgba(0, 0, 0, 0.4);
    border: 10px solid rgba(0, 0, 0, 0.55);
}

.speedometer {
    color: white;
    font-size: 14px;
}

.speedometer span {
    font-size: 26px;
}

.fuelbar {
    position: absolute;
    z-index: 1;
    height: 20px;
    width: 75%;
    background-color: #ffc83c;
    border-radius: 10px;
    display: block;
    margin-left: calc(170px*0.25/2)
}


.fuelbar-back {
    height: 20px;
    width: 75%;
    background-color: #fab505;
    opacity: 0.8;
    border-radius: 10px;
    display: block;
    margin-left: calc(170px*0.25/2)
}

.playtime {
    color: #ffc83c;
    font-size: 14px;
}

.playtime span {
    font-size: 25px;
}

#score-p {
    font-size: 20px;
    color: #fff;
}
#score-p span {
    font-size: 30px;
    color: #ffc83c;
}

.fps {
    color: white;
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 14px;
}

.fps span {
    font-size: 26px;
}
