body {
    margin: 0px;
    padding: 0px;
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
}

header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.game-area {
    position: relative;
    width: 600px;
    height: 400px;
    border: 4px solid white;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paddle {
    position: absolute;
    background-color: white;
    width: 10px;
    height: 80px;
}

.left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation-name: movePaddle;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

.right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation-name: movePaddle;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}


.ball {
    position: absolute;
    background-color: white;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation-name: moveBall;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}


@keyframes movePaddle {
    0% {
        top: 20px;
    }
    100% {
        top: 300px;
    }
}


@keyframes moveBall {
    0% {
        top: 50%;
        left: 50%;
    }
    25% {
        top: 10%;
        left: 90%;
    }
    50% {
        top: 90%;
        left: 10%;
    }
    75% {
        top: 10%;
        left: 90%;
    }
    100% {
        top: 50%;
        left: 50%;
    }
}


footer {
    margin-top: 20px;
}

