body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.background {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-image: url("img/background/background.jpg");
}

.background-img {

    width: 100%;
    height: 100%;
    display: flex;
    background-size: cover;
    margin: 0px 0px 0;
}

.card {
    width: 300px;
    height: 400px;
    background-color: #afffff;
    border-radius: 10px;
    padding: 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0px 64px rgba(0, 0, 0, 0.3);
    position: relative;
    transform-style: preserve-3d;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.back {
    transform: rotateY(180deg);
}

.scrollable {
    overflow: auto;
    width: 100%;
    height: 100%;
    padding: 0px;
    color: #000;
    font-size: 12px;
}

.flipped {
    transform: rotateY(180deg);
}

h1 {
    margin-top: 5%;
}

.social-icons {
    padding-left: 20%;
    padding-right: 20%;
    padding-top: 5%;
    padding: auto;
    width: 60%;
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    justify-items: center;
    align-items: center;
    grid-gap: 10px;

}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 1);
    color-scheme: rgba(255, 255, 255, 1);

    transition: .3s;
}

.social-icons a {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 5px;
    transition: .3s;

}

.social-icons a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transition: .3s;
}

.social-icons a img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: .3s;
    width: 30px;
    height: 30px;
}

.copyright {
    padding-bottom: 1%;
    font-size: 12px;
    position: sticky;
    bottom: 0;
    top: 100vh;
    color: #404040;
    text-align: center;
}

.profile {
    padding-top: 5%;
    display: flex;
    justify-content: center;
}

.myicon {
    border-radius: 50%;
    border-color: red;
    border: 4px solid #40ffff;
    width: 64px;
    height: 64px;
}

.profile-name {
    padding-left: 10px;
}

.myname {
    line-height: 15px;
    font-size: 15px;
}

.altname {
    color: #404040;
    line-height: 0px;
    font-size: 13px;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .card {
        width: 70%;
        height: 500px;
        padding: 10%;
        box-shadow: 0 0px 32px rgba(0, 0, 0, 0.3);
    }

    .profile {
        padding-top: 10px;
        display: flex;
        justify-content: center;
    }

    .myicon {
        width: 128px;
        height: 128px;
    }

    .myname {
        line-height: 15px;
        font-size: 10px;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        padding: 30px;
        z-index: 1;
    }

    .social-icons a img {
        width: 50px;
        height: 50px;
    }

    h1 {
        font-size: 1.5em;
    }

    .myicon {
        width: 48px;
        height: 48px;
    }

    .myname {
        font-size: 13px;
    }

    .altname {
        font-size: 11px;
    }

    .copyright {
        padding-bottom: 1%;
        font-size: 12px;
        position: sticky;
        bottom: 0;
        top: 70vh;
        color: #404040;
        text-align: center;
    }
}