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

body {
    background-color: #1f1f1f;
}

.container {
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rainbow {
    display: block;
    height: 30vw;
    width: 30vw;
    border-radius: 20vw;
    transform: translate(0, 0);
    box-shadow: 0 20px 35px rgba(0,0,0,3);
    overflow: hidden;
    z-index: 2;
}

.rainbow:before {
    content: "";
    height: 150%;
    width: 150%;
    position: absolute;
    left: -25%;
    top: -25%;
    background: conic-gradient(
        #fd004c,
        #fe9000,
        #fff020,
        #3edf4b,
        #3363ff,
        #b102b7,
        #fd004c
    );
    animation: spin 3.5s infinite linear;
    z-index: 1;
}

.rainbow:after {
    display: grid;
    place-items: center;
    content: "";
    position: absolute;
    background: #1f1f1f;
    height: 98%;
    width: 98%;
    top: 1%;
    left: 1%;
    color: #ffffff;
    border-radius: 20vw;
    z-index: 3;
}

.content {
    position: relative;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 5;
    transition: all 0.2s ease-in-out;
}

.content:hover {
    width: 51%;
    height: 51%;
}

.welcome {
    font-size: 2rem;
    font-family: Inconsolata;
    font-weight: 200;
    text-align: center;
    color: white;
    z-index: 5;
    margin-top: 7rem;
}

.contacts {
    font-size: 1.5rem;
    font-family: Inconsolata;
    font-weight: 200;
    text-align: center;
    color: white;
    margin-top: 2rem;
}

@media only screen and (max-width: 720px) {
    .rainbow {
        height: 70vw;
        width: 70vw;
        border-radius: 35vw;
    }

    .rainbow:after{
        border-radius: 35vw;
    }

    .welcome {
        font-size: 1.5rem;
        font-family: Inconsolata;
        color: white;
        z-index: 5;
    }
}

@keyframes spin{
    100%{
        transform: rotate(-360deg);
    }
}
