:root {
    --blue: rgb(74, 177, 208);
    --transition: .15s;
}

html {
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    margin: unset !important;
    background-color: rgb(5, 5, 5);
}

/* Main boxes */

.link-box {
    position: relative;
    overflow: hidden;

    width: 30rem;

    font-size: 4rem;
    line-height: 6rem;
    font-family: "Poppins", sans-serif;

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    color: var(--blue);
    background-color: var(--gray10);
}

/* Change every second color for variation */

.link-box:nth-child(even) {
    filter: hue-rotate(120deg);
}

/* Edges of the buttons */

.link-box::before {
    top: 0;
    left: 0;

    border-top: .2rem solid var(--blue);
    border-left: .2rem solid var(--blue);
}

.link-box::after {
    bottom: 0;
    right: 0;

    border-bottom: .2rem solid var(--blue);
    border-right: .2rem solid var(--blue);
}

.link-box::before,
.link-box::after {
    content: "";

    width: 1rem;
    height: 1rem;
    position: absolute;

    transition: var(--transition);
}

/* Hover effect */

.link-box:hover {
    color: var(--gray10);
    background-color: var(--blue);
    box-shadow: 0 0 5rem rgba(74, 177, 208, .3);

    transform: scale(1.05);
    transition-duration: var(--transition);
    transition-timing-function: cubic-bezier(.785, .135, .15, .86);
    transition-delay: .1s;
}

/* Stretch edges on hover over its entire side */

.link-box:hover::before,
.link-box:hover::after {
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    body {
        padding: 4vw !important;
        gap: 4vw;
    }

    .link-box {
        width: 60vw;

        font-size: 10vw;
        line-height: 42vw;
    }

    .link-box::before,
    .link-box::after {
        width: 2vw;
        height: 2vw;
    }
}