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

body {
    min-height: 100vh;
    padding-bottom: 100px;
    background: linear-gradient(-45deg, rgb(92, 178, 197), rgb(204, 95, 202));
    font-family: 'Poppins', sans-serif;
}

section {
    margin: 50px auto;
    padding: 0 20px;
}

footer {
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 10px;
}

.page-header {
    text-align: center;
}

.page-header img {
    max-width: 100px;
    margin: auto auto 10px;
}

.page-header p {
    margin: 10px 0 10px;
}

.page-header button.share {
    background-color: green;
    border: none;
    padding: 10px 15px;
    margin: 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
}

h2.heading {
    text-align: center;
    margin: 20px auto;
}

div.ref {
    text-align: center;
    margin: 20px auto;
}

ul.social {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

ul.social li {
    /* margin: 0 20px; */
}

ul.social li a {
    background-color: red;
    text-decoration: none;
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    padding: 6px;
    text-align: center;
    transition: 0.5s;
    background: linear-gradient(0deg, #ddd, #fff);
}

ul.social li a:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

ul.social li a .fa {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(0deg, #fff, #ddd);
    border-radius: 50%;
    color: #262626;
    line-height: calc(60px - 12px);
    font-size: 24px;
}

ul.social li:nth-child(1) a:hover .fa {
    color: #3b5998;
}

ul.social li:nth-child(2) a:hover .fa {
    color: #00aced;
}

ul.social li:nth-child(3) a:hover .fa {
    color: #dd4b39;
}

ul.social li:nth-child(4) a:hover .fa {
    color: #007bb6;
}

ul.social li:nth-child(5) a:hover .fa {
    color: #bc2a8d;
}

ul.box-container {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 60px auto 200px;
}

ul.box-container li {
    padding: 10px;
    width: 160px;
    color: black;
    /* padding: 10px 30px; */
    background-color: red;
    transform: skewY(-15deg) translate(0);
    border: 1px solid black;
    position: relative;
    z-index: var(--i);
    /* transition: 0.5s; */
    cursor: pointer;

    animation: move 4.7s var(--d) infinite alternate ease-in-out;
    transform-origin: 0 -100px;
    /* transition: background-color 0.1s; */
}

@keyframes move {
    0% {
        transform: skewY(-15deg) translate(0);
    }

    12.5% {
        transform: skewY(-15deg) translate(-100px);
        ;
    }

    25% {
        transform: skewY(-15deg) translate(-100px, 100px);
        ;
    }

    50% {
        transform: skewY(-15deg) translate(100px, 100px);
        ;
    }

    62.5% {
        transform: skewY(-15deg) translate(100px, 200px);
        ;
    }

    75% {
        transform: skewY(-15deg) translate(0, 200px);
        ;
    }

    87.5% {
        transform: skewY(-15deg) translate(0, 100px);
        ;
    }

    100% {
        transform: skewY(-15deg) translate(0);
        ;
    }
}

ul.box-container li:hover {
    /* transform: skewY(-15deg) translate(-60px); */
    background-color: rgb(25, 25, 179);
    transition: background-color 1s;
}

ul.box-container li:hover::after {
    background-color: rgb(74, 74, 161);
    transition: background-color 1s;
}

ul.box-container li:hover::before {
    background-color: rgb(54, 54, 118);
    transition: background-color 1s;
}

ul.box-container li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40px;
    background-color: rgb(213, 24, 24);
    height: 100%;
    width: 40px;
    border: 1px solid black;
    transform-origin: right;
    transform: skewY(35deg);
    /* transition: background-color 0.1s; */
}

ul.box-container li::after {
    content: "";
    position: absolute;
    top: -28px;
    left: 0;
    background-color: rgb(225, 90, 90);
    height: 28px;
    width: 100%;
    border: 1px solid black;
    transform-origin: bottom;
    transform: skewX(55deg);
    /* transition: background-color 0.1s; */
}

ul.box-container li a {
    text-decoration: none;
    color: #fff;
}