@font-face {
    font-family: 'pixelfont';
    src: url('/font/pixelfont.woff2')
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(to right, rgb(0, 0, 0), rgb(0, 44, 125));
    color: white;
    font-family: sans-serif;
    overflow: hidden;
}

/* Grille animée */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(242, 242, 242, 0.458) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254, 255, 254, 0.686) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 5s linear infinite;
    z-index: -1;
    pointer-events: none;
    filter: blur(1px);
}

/* Animation de la grille */
@keyframes moveGrid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px;
    }
}

table {
    border-collapse: collapse;
    border: 1px solid #ffffff;
    position: relative;
}

td {
    width: 20px;
    height: 20px;
    background-color: black;
}

.paddle {
    background-color: white;
}

.ball {
    background-color: yellow;
}

h1 {
    font-size: clamp(2rem, 2.5vw, 6rem);
    font-family: 'pixelfont';
}

p {
    font-size: clamp(0.5rem, 2.5vw, rem);
    text-align: center;
}

.fond_texte {
    background-color: rgb(0, 0, 0);
    border-top: solid white 1px;
    border-right: solid white 1px;
    border-left: solid white 1px;
    text-align: center;
    padding: 10px;

}

#score {
    background-color: rgb(0, 0, 0);
    border: solid white 1px;
    padding: 10px;
    text-align: center;
}