:root {
    --color-crust: rgb(17, 17, 27);
    --color-base: rgb(30, 30, 46);
    --color-surface-0: rgb(49, 50, 68);
    --color-surface-1: rgb(69, 71, 90);
    --color-peach: rgb(245, 169, 127);
    --color-link: #89dceb;
    --color-link-hover: #f5e0dc;
    --color-text: #cdd6f4;

    --ball-width: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 100vw;
    background: var(--color-base);
}

main {
    flex: 1;
}

footer {
    color: var(--color-text);
    font-size: 1rem;
    inset: auto 0px 0px;
    padding: 1rem 1.5rem;
    position: fixed;
    text-align: center;
    width: 100%;
    font-family: sans-serif;
}

a {
    color: var(--color-link);
}

a:hover {
    color: var(--color-link-hover);
}

.ball {
    width: var(--ball-width);
    aspect-ratio: 1;
    border-radius: 50%;
    position: absolute;
    top: calc(50vh - var(--ball-width)/2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;

    font-family: sans-serif;
    font-size: x-large;
}

.ball:nth-of-type(1) {
    background: rgba(243, 139, 168, 0.4);
    color: rgb(243, 139, 168);
    border: 1px solid rgb(243, 139, 168);
    left: calc(50vw - var(--ball-width));
    offset: path("M -50,50 a 50 50 0 1 1 300 0");
    offset-rotate: 0deg;    
    offset-distance: 0%;
    animation: pUp 10s ease-in-out 0s infinite forwards;
}

.ball:nth-of-type(2) {
    background: rgba(137, 180, 250, 0.4);
    color: rgb(137, 180, 250);
    border: 1px solid rgb(137, 180, 250);
    left: calc(50vw + var(--ball-width));
    offset: path("M 50,50 a 50 50 0 1 1 -300 0");
    offset-rotate: 0deg;    
    offset-distance: 0%;
    animation: pUp 10s ease-in-out 0s infinite forwards;
}

@keyframes pUp {
    0% {
        offset-distance: 0%;
    }
    30% {
        offset-distance: 0%;
    }
    50% {
        offset-distance: 100%;
    }
    80% {
        offset-distance: 100%;
    }
    100% {
        offset-distance: 0%;
    }
}
