@property --color {
    syntax: "<color>";
    initial-value: crimson;
    inherits: false;
}

:root {
    --size: 60vh;
    --color: crimson;
    --color-dark: color-mix(in srgb, var(--color), black 50%);
    --color-light: color-mix(in srgb, var(--color), white 50%);
}

@media screen and (orientation: portrait) {
    :root {
        --size: 60vw;
    }
}

@keyframes colorSwitch {
    10% {
        --color: seagreen;
    }
    20% {
        --color: indigo;
    }
    30% {
        --color: cornflowerblue;
    }
    40% {
        --color: chartreuse;
    }
    50% {
        --color: blueviolet;
    }
    60% {
        --color: honeydew;
    }
    70% {
        --color: lime;
    }
    80% {
        --color: darkcyan;
    }
    90% {
        --color: seagreen;
    }
    100% {
        --color: crimson;
    }
}

body {
    display: grid;
    place-items: center;
    height: 100vh;
    margin: 0;
    background: #f8f8f8;
}

.infinity {
    display: grid;
    place-items: center;
    width: calc(1.5 * var(--size));
    height: var(--size);
    perspective: 1000px;
    transform-style: preserve-3d;
}

.infinity:before, .infinity:after {
    grid-row: 1;
    grid-column: 1;
    content: "";
    display: block;
    width: var(--size);
    height: var(--size);
    border-radius: var(--size);
    animation: colorSwitch 10s infinite ease-in-out;
}

.infinity:before {
    background: conic-gradient(from 89deg at 50% 50%, var(--color), var(--color-dark));
    transform: translateX(-25%);
}

.infinity:after {
    background: conic-gradient(from -91deg at 50% 50%, var(--color), var(--color-light));
    transform: translateX(25%) rotateX(-1deg);
}

.infinity:hover:before, .infinity:hover:after {
    animation-play-state: paused;
}

.infinity:active:before, .infinity:active:after {
    animation: none;
}


/* footer */
.footBox {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 178px;
    width: 100%;
    margin-top: 100px;
}

.footBox,
.footBox a {
    color: #000000;
    font-size: 18px;
    line-height: 38px;
}

.footBox .text {
    font-size: 18px;
    line-height: 38px;
    text-align: center;
}


.linkBody {
    width: calc(1.5 * var(--size));
    height: 10vh;
    /*border-style: solid;*/
    margin: 200px 80px 80px 80px;
    padding: 25px;
}

.link {
    margin: 10px;
    float: left;
    width: 250px;
}

.link > a{
    text-decoration:none;
    color: black;
    font-size: 20px;

}


.link > a:hover{
    font-size: 30px;
}
