*,*::after, *::before {
  box-sizing: border-box;
}

:root {
    --hue: 200;
    --saturation: 50%;
    --foreground-color:hsl(var(--hue), var(--saturation), 75%);
    --background-color:hsl(var(--hue), var(--saturation), 25%);
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: var(--background-color);
    background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    overflow: hidden;
}

.restart, .pause, .play {
    position: absolute;
    top: 5vh;
    left: 5vh;
    width: 13vh;
    height: 7vh;
    border-radius: 20px;
    background-color: black;
    color: white;
    z-index: 5;
    transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.pause {
    left: 20vh;
}

.play {
    left: 35vh;
}

.restart:hover, .pause:hover, .play:hover {
    background-color: white;
    color: darkblue;
}


.paddle {
    --position: 50;

    position: absolute;
    height: 10vh;
    width: 1vh;
    background-color: #333;
    top: calc(var(--position) * 1vh);
    transform: translateY(-50%);
}

.paddle.right {
    right: 1vw;
    
}

.paddle.left {
    left: 1vw;
}

.ball {
    --x: 50;
    --y: 50;

    position: absolute;
    height: 2.5vh;
    width: 2.5vh;
    background-color: #333;
    top: calc(var(--y) * 1vh);
    left: calc(var(--x) * 1vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.score {
    display: flex;
    justify-content: center;
    font-size: 10vh;
    color: var(--foreground-color);
    opacity: .7;
    margin-top: 1vh;
}

.score > * {
    flex-grow: 1;
    flex-basis: 0;
    padding: 0 2vh;
}

.score > :first-child {
    text-align: right;
    border-right: .5vh solid var(--foreground-color);
}

