body {
    text-align: center;
    background-color: #1d1f20;
     background: url("https://i.imgur.com/inQZ4dJ.jpg") no-repeat center center
    fixed;
  background-size: cover;
}


.wrapper {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 90%;
    font-size: 0;
    transform: translate(-50%);
}
p {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #eee;
}
.letter {
    width: 24px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    margin: 0 0;
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
    color: #eee;
}
.letter:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    word-break: break-all;
    background-color: #1d1f20;
}
.letter:nth-child(1):before {
    content: "7082431659";
    margin-top: -24px;
    animation-name: letter1;
    animation-duration: 1.44s;
    animation-delay: 0.28s;
    animation-fill-mode: forwards;
}
@keyframes letter1 {
    from {
        margin-top: -24px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(2):before {
    content: "5786240139";
    margin-top: -96px;
    animation-name: letter2;
    animation-duration: 2.944s;
    animation-delay: 0.08s;
    animation-fill-mode: forwards;
}
@keyframes letter2 {
    from {
        margin-top: -96px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(3):before {
    content: "0732954618";
    margin-top: -192px;
    animation-name: letter3;
    animation-duration: 0.5333333333s;
    animation-delay: 0.85s;
    animation-fill-mode: forwards;
}
@keyframes letter3 {
    from {
        margin-top: -192px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(4):before {
    content: "3079426158";
    margin-top: -168px;
    animation-name: letter4;
    animation-duration: 0.105s;
    animation-delay: 0.97s;
    animation-fill-mode: forwards;
}
@keyframes letter4 {
    from {
        margin-top: -168px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(5):before {
    content: "7196403258";
    margin-top: -168px;
    animation-name: letter5;
    animation-duration: 1.33s;
    animation-delay: 0.62s;
    animation-fill-mode: forwards;
}
@keyframes letter5 {
    from {
        margin-top: -168px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(6):before {
    content: "7293810456";
    margin-top: -168px;
    animation-name: letter6;
    animation-duration: 0.63s;
    animation-delay: 0.82s;
    animation-fill-mode: forwards;
}
@keyframes letter6 {
    from {
        margin-top: -168px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(7):before {
    content: "8301629475";
    margin-top: -192px;
    animation-name: letter7;
    animation-duration: 3.2s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
}
@keyframes letter7 {
    from {
        margin-top: -192px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(8):before {
    content: "4928075163";
    margin-top: -168px;
    animation-name: letter8;
    animation-duration: 0.14s;
    animation-delay: 0.96s;
    animation-fill-mode: forwards;
}
@keyframes letter8 {
    from {
        margin-top: -168px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(9):before {
    content: "7463195820";
    margin-top: -168px;
    animation-name: letter9;
    animation-duration: 2.345s;
    animation-delay: 0.33s;
    animation-fill-mode: forwards;
}
@keyframes letter9 {
    from {
        margin-top: -168px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(10):before {
    content: "6429017358";
    margin-top: -192px;
    animation-name: letter10;
    animation-duration: 3.1288888889s;
    animation-delay: 0.12s;
    animation-fill-mode: forwards;
}
@keyframes letter10 {
    from {
        margin-top: -192px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(11):before {
    content: "8041735692";
    margin-top: -216px;
    animation-name: letter11;
    animation-duration: 1.656s;
    animation-delay: 0.54s;
    animation-fill-mode: forwards;
}
@keyframes letter11 {
    from {
        margin-top: -216px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(12):before {
    content: "7084216935";
    margin-top: -96px;
    animation-name: letter12;
    animation-duration: 2.56s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
}
@keyframes letter12 {
    from {
        margin-top: -96px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(13):before {
    content: "8902743561";
    margin-top: -96px;
    animation-name: letter13;
    animation-duration: 1.44s;
    animation-delay: 0.55s;
    animation-fill-mode: forwards;
}
@keyframes letter13 {
    from {
        margin-top: -96px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(14):before {
    content: "8094136725";
    margin-top: 0px;
    animation-name: letter14;
    animation-duration: 0s;
    animation-delay: 0.94s;
    animation-fill-mode: forwards;
}
@keyframes letter14 {
    from {
        margin-top: 0px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(15):before {
    content: "4912035687";
    margin-top: -96px;
    animation-name: letter15;
    animation-duration: 1.632s;
    animation-delay: 0.49s;
    animation-fill-mode: forwards;
}
@keyframes letter15 {
    from {
        margin-top: -96px;
   }
    to {
        margin-top: 24px;
   }
}
.letter:nth-child(16):before {
    content: "1567203984";
    margin-top: -144px;
    animation-name: letter16;
    animation-duration: 0.5142857143s;
    animation-delay: 0.85s;
    animation-fill-mode: forwards;
}
@keyframes letter16 {
    from {
        margin-top: -144px;
   }
    to {
        margin-top: 24px;
   }
}

/* Card css */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
   
    display: flex;
    justify-content: center;
    align-items: center;   
    font-family: sans-serif;
    background-color: #1d1f20; 
}
.mainbody{
    width: 700px;
    height: 400px;
    border-radius: 5%;
    background-image:linear-gradient(110deg, #f93d66, #6d47d9);
}
.container {
    position: relative;
    display: flex;
    grid-template-columns: 1fr;
    grid-gap: 25px;
    justify-content: center;
    align-items: center;
}

.container .card {
    position: center;
    border-radius: 5px;
}

.container .card .icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: 0.7s;
    z-index: 1;
}

.container .card:nth-child(1) .icon {
    background: linear-gradient(135deg, #405de6, #405de6,  #833ab4, #c13584, #e1306c, #fd1d1d, #f56040, #f77737,
    #fcaf45, #ffdc80);
    border-radius: 5px;
}


.container .card:nth-child(2) .icon {
    background: #6eadd4;
    border-radius: 5px;
}

.container .card:nth-child(3) .icon {
    background: #131418;
    border-radius: 5px;
}

.container .card .icon .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    transition: 0.7s;
    color: #fff;
}

.container .card .front {
    width: 350px;
    height: 250px;
    transition: 0.5s;
    border-radius: 5px;
}

.container .card .front.front1 {
    
    position: relative;
    background: #1d1f20;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateY(100px);
}

.container .card:hover .front.front1{
    background: #ff0057;
    transform: translateY(0px);
    width: 200px;
    height: 100px;
    padding-left: 50px;
    opacity: 0;
}

.container .card .front.front1 .content {
    opacity: 1;
    transition: 0.5s;
}

.container .card:hover  .front.front1 .content{
    opacity: .8;
}

.container .card .front.front1 .content i{
    max-width: 100px;
}

.container .card .front.front2 {
    position: relative;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: translateY(-50px);
}

.container .card:hover .front.front2{
    transform: translateY(0);
}

.container .card .front.front2 .content p {
    margin: 0;
    padding: 0;
    text-align: center;
    color: #fff;
}

.container .card .front.front2 .content h3 {
    margin: 0 0 10px 0;
    padding: 0;
    color: #fff;
    font-size: 24px;
    text-align: center;
    color: #414141;
} 

.container a {
    text-decoration: none;
    color: #fff;
}

.container a:hover{
    border-bottom: 4px solid #e9cc26;
    transition: border .1s ease-out;
}

.container a:active{
    color: black;
}


@media (max-width: 768px){
    .container{
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
}

/* timer */

#demo{
    font-size: 22px;
}


