@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#banner {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 2em !important;
}

@media (min-width: 1024px) {
    #banner {
        width: 40%;
        margin: 0 auto;
    }
}

.card {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: 50% 50%;
    color: #fff;
    -webkit-box-shadow: 0 6.7px 5.3px rgba(0, 0, 0, 0.03), 0 22.3px 17.9px rgba(0, 0, 0, 0.05);
    box-shadow: 0 6.7px 5.3px rgba(0, 0, 0, 0.03), 0 22.3px 17.9px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.card img {
    width: 100%;
}

.border-control {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.rotating-border {
    width: 80%;
    box-shadow: 0 0.5rem 0.75rem #0003;
    --border-radius: 1rem;
    --border-size: 0.5rem;
    --border-bg: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    --padding: 1px;
    position: relative;
    overflow: hidden;
    padding: calc(var(--padding) + var(--border-size));

    &::before {
        content: "";
        display: block;
        background: var(--border-bg);
        width: calc(100% * 1.41421356237);
        padding-bottom: calc(100% * 1.41421356237);
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 100%;
        z-index: 0;
        animation: spin 5s linear infinite;
    }
    &--reverse::before {
        animation-direction: reverse;
    }
    &::after {
        content: "";
        position: absolute;
        inset: var(--border-size);
        background: white;
        z-index: -1;
        border-radius: calc(var(--border-radius) - var(--border-size));
    }
}

.rotating-border--builders {
    --border-radius: 1.5rem;
    --border-size: 0.3rem;
    --border-bg: conic-gradient(#e96d6d, #d52020, #d8104c, #2ef1f9);
}
