@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,600,700,800,900';
@import 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
@import url(../css/popup.css);

body,
.content,
.card,
.badgescard,
.firstinfo {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}



*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}
html {
    height: 100%
}

body {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    min-height: 100%;
    background: #009688;
    font-size: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
}

a {
    color: #012;
    text-decoration: none;
    transition: all 0.5s ease 0s;
}

a:hover {
    color: #29c
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
}

.card_wrapper {
    -webkit-animation: animatop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;
    animation: animatop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;
}

.card {
    width: 500px;
    height: 250px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    -webkit-box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card:after {
    content: '';
    display: block;
    width: 270px;
    min-height: 250px;
    background: #255;
    position: absolute;
    border-right: 3px solid #921;
    -webkit-animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) 1s both;
    animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) 1s both;
}

.badgescard {
    padding: 10px 20px;
    border-radius: 3px;
    background-color: #ECECEC;
    width: calc(100% - 20px);
    -webkit-box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: -1;
    left: 10px;
    -webkit-animation: animainfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
    animation: animainfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards
}

.badgescard span {
    font-size: 1.6rem;
    line-height: 1.6rem;
    margin: 0px 10px;
    opacity: 0.6
}

.firstinfo {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    z-index: 2;
    position: relative
}

.firstinfo .img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    -o-object-fit: cover;
    object-fit: cover;
    background: url(../img/photo.png) no-repeat center center/cover;
    border-bottom: 2px solid;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    -webkit-transition-delay: 0.2s;
    -o-transition-delay: 0.2s;
    transition-delay: 0.2s
}

.firstinfo .profileinfo {
    padding-left: 60px
}

.firstinfo .profileinfo h1 {
    font-size: 1.8rem;
    color: #333;
}

.firstinfo .profileinfo h3 {
    font-size: 1rem;
    color: #935;
    white-space: nowrap;
    margin-bottom: 20px
}

.firstinfo .profileinfo p.bio {
    color: #333;
    font-weight: 400
}

p.bio a{
    cursor: pointer;
}

.firstinfo .profileinfo p i {
    line-height: 1.3rem
}

.firstinfo .profileinfo p span {
    padding-left: 12px
}

@-webkit-keyframes animatop {
    0% {
        opacity: 0;
        bottom: -500px
    }

    100% {
        opacity: 1;
        bottom: 0px
    }
}

@keyframes animatop {
    0% {
        opacity: 0;
        bottom: -500px
    }

    100% {
        opacity: 1;
        bottom: 0px
    }
}

@-webkit-keyframes animainfos {
    0% {
        bottom: 10px
    }

    100% {
        bottom: -42px
    }
}

@keyframes animainfos {
    0% {
        bottom: 10px
    }

    100% {
        bottom: -42px
    }
}

@-webkit-keyframes rotatemagic {
    0% {
        opacity: 0;
        top: 0;
        left: -250px;
    }

    50% {
        opacity: 1
    }

    100% {
        top: 0;
        left: -65px;
    }
}

@keyframes rotatemagic {
    0% {
        opacity: 0;
        top: 0;
        left: -250px;
    }

    50% {
        opacity: 1
    }

    100% {
        top: 0;
        left: -65px;
    }
}




@media only screen and (max-width: 600px) {
    .card {
        width: 100%;
        height: 100%
    }

    .card:after {
        width: 100%;
        min-height: 220px;
        background: #333;
        border-bottom: 3px solid #921;
        border-right: none
    }

    .badgescard {
        width: calc(100% - 20px);
        padding: 10px 50px
    }

    .badgescard span {
        font-size: 1.25rem;
        margin: 0px 8px
    }

    .firstinfo {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        z-index: 2;
        position: relative
    }

    .firstinfo .img {
        width: 120px;
        height: 120px;
        border-bottom: 2px solid
    }

    .firstinfo .profileinfo {
        margin-top: 50px;
        padding: 0 20px
    }

    .firstinfo .profileinfo h1 {
        font-size: 1.2rem
    }

    .firstinfo .profileinfo h3 {
        font-size: 1rem;
        margin-bottom: 10px
    }

    .firstinfo .profileinfo p.bio {
        font-size: 0.8rem;
        line-height: 1.3rem
    }

    .popup_link {
        font-size: 0.8rem;
        line-height: 1.3rem
    }
    

    @-webkit-keyframes animainfos {
        0% {
            bottom: 10px
        }

        100% {
            bottom: -40px
        }
    }

    @keyframes animainfos {
        0% {
            bottom: 10px
        }

        100% {
            bottom: -40px
        }
    }

    @-webkit-keyframes rotatemagic {
        0% {
            opacity: 0;
            top: -200px;
            left: 0
        }

        50% {
            opacity: 1
        }

        100% {
            top: -50px;
            left: 0
        }
    }

    @keyframes rotatemagic {
        0% {
            opacity: 0;
            top: -200px;
            left: 0
        }

        50% {
            opacity: 1
        }

        100% {
            top: -50px;
            left: 0
        }
    }
}
