@font-face {
    font-family: "game";
    src: url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;800&display=swap");
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

button:focus {
    outline: 0;
}

html,
body {
    height: 100%;
    font-family: "Poppins", sans-serif;
    color: #6e7888;
}

body {
    background-color: #222738;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6e7888;
}

canvas {
    background-color: #181825;
    width: 500px;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

#score-card {
    display: flex;
    align-items: center;
    font-size: 10px;
    flex-flow: column;
}

h2 {
    font-weight: 900;
    font-size: .7rem;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    transform: rotate(270deg);
}

#score {
    margin-top: 1rem;
    font-size: 2.2rem;
    font-weight: 900;
    transform: rotate(-90deg);
}

.noselect {
    user-select: none;
}

#replay {
    font-size: 1rem;
    padding: 10px 20px;
    background: #6e7888;
    border: none;
    color: #222738;
    border-radius: 40px;
    font-weight: 800;
    transform: rotate(270deg);
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

#replay:hover {
    background: #a6aab5;
    background: #4cffd7;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

#replay svg {
    margin-right: 8px;
}

@media (max-width: 705px) {
    .container {
        flex-flow: column wrap;
    }

    .wrapper {
        height: 87vh;
    }

    canvas {
        position: relative;
        width: 390px;
    }


    #replay {
        position: absolute;
        bottom: -1.5rem;
        margin: 5rem;
        transform: rotate(0deg);
    }

    #score-card {
        position: absolute;
        width: 15rem;
        height: 1rem;
        align-items: center;
        justify-content: center;
        top: -2.2rem;
        flex-flow: row wrap;
        margin: 1rem;
    }

    h2,
    #score {
        transform: rotate(0deg);
    }

    h2 {
        font-size: .9rem;
        margin-top: 2rem;
    }

    #score {
        margin-top: 0;
        margin-left: 20px;
    }
}

#author {
    width: 100%;
    bottom: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: inherit;
    text-transform: uppercase;
    padding-left: 35px;
}

#author span {
    font-size: 10px;
    margin-left: 20px;
    color: inherit;
    letter-spacing: 4px;
}

#author h1 {
    font-size: 25px;
}

.wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}