@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Press Start 2P", sans-serif;
}
.link{
    text-decoration: none;
}

canvas {
    background-color: #121212;
}

.screen {
    width: 100%;
    height: 100dvh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    inset: 0;
}

.screen h1 {
    font-size: 2rem;
}

.screen span {
    font-size: 0.6rem;
    color: #aaa;
    margin-top: auto;
    margin-bottom: 20px;
    text-decoration: underline;
}

.start-screen > div {
    margin-top: auto;
}

.button-play,
.button-restart {
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    background-color: #ddd;
    display: block;
    margin: 20px auto 0;
    font-size: 1rem;
    cursor: pointer;
}

.button-play:hover,
.button-restart:hover {
    background-color: #fff;
}

.game-over {
    scale: 0;
    animation: zoom 2s ease-in-out forwards;
}

.score-ui {
    position: fixed;
    top: 0;
    left: 0;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 40px;
    text-transform: uppercase;
    font-size: 1rem;
    display: none;
}

.score-ui > div {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes zoom {
    from {
        scale: 0;
    }

    to {
        scale: 1;
    }
}
