

@import "https://fonts.googleapis.com/css?family=Open+Sans:300,400";

body,
.badgescard,
.firstinfo {
    display: flex;
    justify-content: center;
    align-items: center;
}

html {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    min-height: 100%;
    background: #00bcd4;
    font-size: 16px;
    overflow: hidden;
    margin:0;
}

canvas {
  display: block;
}


#dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #00bcd4;
  background: -webkit-linear-gradient(top, #0fb8ad, #00bcd4);
  z-index: 1;
}


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

.content {
    position: relative;
    animation: animatop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;
}

.card {
    width: 500px;
    min-height: 100px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card:after {
    content: '';
    display: block;
    width: 190px;
    height: 300px;
    background: cadetblue;
    /* background: #00bcd4; */
    position: absolute;
    animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) 1s both;
}

.badgescard {
    padding: 20px 20px 10px;
    border-radius: 3px;
    background-color: #00bcd4;
    color:#fff;
    width: 480px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: -1;
    left: 10px;
    bottom: 10px;
    animation: animainfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}

.badgescard span {
    font-size: 1.6em;
    margin: 0px 6px;
    opacity: 0.6;
}

.badgescard i {
    font-size: 2.0em;
    margin: 0px 6px;
    opacity: 0.6;
}

.firstinfo {
    flex-direction: row;
    z-index: 2;
    position: relative;
}

.firstinfo img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

.firstinfo .profileinfo {
    padding: 0px 50px 0 36px;
}

.firstinfo .profileinfo h1 {
  
    font-size: 1.8em;
}

.firstinfo .profileinfo h3 {
    font-size: 1.2em;
    color: #00bcd4;
    font-style: italic;
}

.firstinfo .profileinfo p.bio {
    padding: 10px 0px;
    color: #5A5A5A;
    line-height: 1.2;
    font-style: initial;
}

@keyframes animatop {
    0% {
        opacity: 0;
        bottom: -500px;
    }
    100% {
        opacity: 1;
        bottom: 0px;
    }
}

@keyframes animainfos {
    0% {
        bottom: 10px;
    }
    100% {
        bottom: -52px;
    }
}

@keyframes rotatemagic {
    0% {
        opacity: 0;
        transform: rotate(0deg);
        top: -24px;
        left: -253px;
    }
    100% {
        transform: rotate(-30deg);
        top: -24px;
        left: -78px;
    }
}

.icons{
  text-align: center;
  display: flex;
  flex-direction: column;
}
.icons span{
  padding: 7px;
  font-size: 2.2em;
  color: #333333;
  transition: .7s ease;
}
.icons span:hover { 
    filter: drop-shadow(0px 0px 3px black);
  color: rgb(230,230,230);
  transition: .2s ease;
}

.container{
  position: absolute;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: inherit;
    font-weight: inherit;
}

@media (max-width: 502px) {
    .firstinfo{
        flex-direction: column;
    }
    .icons {
        flex-direction: row;
    }
    .card{
        width: 340px;
    }
    .card:after{
        height: 400px;
        width: 140px;
        animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) .5s both;
    }
    @keyframes rotatemagic {
        0% {
            opacity: 0;
            transform: rotate(0deg);
            top: -24px;
            left: -253px;
        }
        100% {
            transform: rotate(-90deg);
            top: -140px;
            left: 80px;
        }
    }
    .badgescard{
        width: 320px;
    }
}