:root {
    --bg: #151515;
    --primary: white;
    --container: rgba(26, 25, 26, 0.9);
    --container-border: rgb(42, 41, 42);
    --width: 400px;
    --height: 250px;
    --border: 2px;
    --gradient-1-size: 25%;
    --gradient-2-size: 50%;
}

body {
    margin: 0;
    padding-top: 40px;
    background-color: var(--bg);
    color: var(--primary);
    font-size: 30px;
    min-height: 100vh;
    font-family: "Work Sans", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  position: relative;
}

img {
    width: 42px;
    border-radius: 8px;
    margin-right: 8px;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-buttons {
    gap: 10px;
}

.social-btn {
    color: rgb(161, 156, 160);
    text-decoration: none;
    transition: color 0.2s;
}

.social-btn:hover {
    color: white;
}

.containers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.card {
    display: flex;
    align-items: center;
    width: var(--width);
    height: var(--height);
}

.card:hover > .container-border::after {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    padding-left: 40px;
    z-index: 3;
}

.card-content > a {
    white-space: nowrap;
}

.container-border {
    --x-px: calc(var(--x) * 1px);
    --y-px: calc(var(--y) * 1px);
    background: var(--container-border);
    border-radius: 20px;
    position: absolute;
    width: 100%;
    height: 100%;
  
    &:before,
    &:after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        border-radius: inherit;
        background: radial-gradient(
            800px circle at var(--x-px) var(--y-px),
            rgba(255, 139, 164, 0.347) 0%, rgba(255, 110, 221, 0.084) var(--gradient-1-size), rgba(216, 87, 255, 0) var(--gradient-2-size),
            transparent 40%
        );
    }
  
    &:before {
        z-index: 0;
    }
  
    &:after {
        opacity: 0;
        z-index: 1;
        transition: opacity 0.4s ease;
    }
}

.container {
    background: var(--container);
    border-radius: 18px;
    z-index: 1;
    position: absolute;
    padding: 0 1rem 0 2rem;
    inset: var(--border);
}

.container-hsmp {
    background: linear-gradient(90deg, rgba(26, 25, 26, 1) 0%, rgba(26, 25, 26, 0.2) 100%);
}

.hsmp-bg {
    background-image: url("/resources/hsmp.png");
    background-size: cover;
    border-radius: 18px;
    z-index: 1;
    position: absolute;
    padding: 0 1rem 0 2rem;
    inset: var(--border);
    opacity: 0.5;
}

h1 {
    font-size: 25px;
    margin: 0px;
}

.link {
    display: flex;
    align-items: center;
    margin: 2px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.678);
    transition: 0.2s;
    gap: 5px;
    text-decoration: none;
}

.link:hover {
    color: #ff848c;
}

.link p {
    margin: 0px;
    text-decoration: underline;
}

.version-badge {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 246, 246, 0.41);
    background-color: rgba(143, 137, 137, 0.101);
    padding: 3px 6px 3px 6px;
    border-radius: 30px;
    margin-left: 2px;
}

@media (pointer:none), (pointer:coarse) {
    :root {
        --bg: #151515;
        --primary: white;
        --container: rgb(26, 25, 26);
        --border: rgb(42, 41, 42);
        --width: 700px;
        --height: 400px;
        --border: 4px;
        --gradient-1-size: 50%;
        --gradient-2-size: 100%;
    }

    body {
        font-size: 50px;
        padding-top: 80px;
    }

    .social-buttons {
        gap: 20px;
    }

    .social-btn {
        font-size: 60px;
    }

    img {
        width: 80px;
        border-radius: 15px;
        margin-right: 20px;
    }

    .containers {
        flex-direction: column;
    }

    .container-border {
        border-radius: 44px;
    }

    .hsmp-bg {
        border-radius: 44px;
    }

    .container, .hsmp-bg {
        border-radius: 40px;
    }

    h1 {
        font-size: 50px;
    }

    .link {
        font-size: 40px;
    }

    .card-content {
        padding-left: 70px;
    }

    .version-badge {
        font-size: 25px;
        padding: 5px 10px 5px 10px;
    }
}