@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@500&display=swap');

body {
    background-color: black;
}

.app {
    background-color: black;
}

.snapcode {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    background-color: black;
}

.card {
    --card-height: 200px;
    --card-width: 200px;
    --card-radius: 30px;
    --border-width: 16px;
    --border-fill: 150px;
    --border-height: 482px;

    --card-color: #000000;

    position: relative;
    height: var(--card-height);
    width: var(--card-width);
    background: var(--card-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    border-radius: var(--card-radius);
}

.card::before {
    content: "";
    height: var(--border-height);
    width: var(--border-fill);
    background: linear-gradient(90deg, rgb(0, 0, 0), rgb(255, 255, 255));
    position: absolute;
    z-index: 2;
    animation: rotate 3.5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotateZ(1deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

.card::after {
    content: "";
    height: calc(var(--card-height) - var(--border-width));
    width: calc(var(--card-width) - var(--border-width));
    background: var(--card-color);
    position: absolute;
    z-index: 2;
    border-radius: var(--card-radius);
}

.card-content {
    z-index: 10;
    font-family: system-ui;
    position: absolute;
}

.card-content img {
    height: 177px;
}

.card-content img:hover {
    transform: scale(1.1);
    transition: 0.5s;
}

.snapcode-info-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.snapcode-info {
    margin-top: 20px;
    background-color: rgb(0, 0, 0);
    border-radius: 15px;
    border: 4px solid rgb(255, 255, 255);
    box-shadow: 0 0 5px rgb(255, 255, 255);
}

.snapID {
    font-family: 'Rubik', sans-serif;
    font-size: 30px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: black;
    color: white;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .card-content img {
        height: 190px;
    }
}