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

html {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 300;
    color: #333;
    font-family: "Nunito Sans", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    height: 95vh;
    background-image: url("assets/img/bg-dark.jpg");
    background-attachment: fixed;
    font-size: 16px;
    background-size: cover;
    background-repeat: no-repeat;
}

.content {
    display: flex;
    margin: 30px auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
}

.copyright {
    background: #20404E;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    color: #fff;
    font-size: 14px;
    margin: 10px;
}

.heading {
    width: 100%;
    font-weight: 700;
    font-size: 52px;
    line-height: 1;
    margin: 10px 0 25px 0;
    position: relative;
    color: #ffffff;
}

.description {
    width: 100%;
    margin-top: 0;
    margin-bottom: .5rem;
    color: #ffffff;
}

.card {
    color: inherit;
    cursor: pointer;
    width: calc(33% - 2rem);
    min-width: calc(33% - 2rem);
    height: 200px;
    min-height: 250px;
    perspective: 1000px;
    margin: 1rem 1rem;
    position: relative;
    border: none;
}

@media screen and (max-width: 800px) {
    .card {
        width: calc(50% - 2rem);
    }
}

@media screen and (max-width: 500px) {
    .card {
        width: 100%;
    }
}

.front,
.back {
    display: flex;
    border-radius: 6px;
    background-position: center;
    background-size: cover;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: ease-in-out 600ms;
    color: #20404E;
}

.front {
    background-size: cover;
    padding: 2rem;
    font-size: 1.618rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    font-family: Poppins, sans-serif;
}

.front img {
    width: 200px;
}

.card:hover .front {
    transform: rotateY(180deg);
}

.card:nth-child(even):hover .front {
    transform: rotateY(-180deg);
}

.back {
    background: #fff;
    transform: rotateY(-180deg);
    padding: 0 2em;
}

.card:hover .back {
    transform: rotateY(0deg);
}

.card:nth-child(even) .back {
    transform: rotateY(180deg);
}

.card:nth-child(even):hover .back {
    transform: rotateY(0deg);
}

.button {
    transform: translateZ(40px);
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    color: #fff;
    padding: 5px 30px;
    border-radius: 100px;
    border: none;
    position: relative;
    transform-style: preserve-3d;
    transition: 300ms ease;
    background: #f15e75;
}

.button:before {
    transition: 300ms ease;
    position: absolute;
    display: block;
    content: '';
    transform: translateZ(-40px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    border-radius: 100px;
    left: 10px;
    top: 15px;
}

.button:hover {
    transform: translateZ(55px);
}

.button:hover:before {
    transform: translateZ(-55px);
}

.button:active {
    transform: translateZ(20px);
}

.button:active:before {
    transform: translateZ(-20px);
    top: 12px;
}
}