/* Vars */

:root {
    --base-font-size: 62.5%; /* 10px */
    --base-font-size-lg: 75%; /* 12px */
    --base-font-size-xl: 87.5%; /* 14px */

    --black: #202020;
    --green: #00FF75;
    --grey: #505050;
    --white: #FFFFFF;
}

/* Setar a var para o mobile */

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

/* Global */

#media {
    display: none;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
}

.flex-y {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.container {
    margin: 0 auto;
    max-width: 96%;
    position: relative;
}

h1 {
    font-size: 5rem;
}
h2 {
    font-size: 3rem;
}

.name {
    font-weight: 100;
}
.surname {
    font-weight: 400;
}
.intro {
    font-weight: 100;
}

.green {
    color: var(--green);
}

.profile {
    max-width: 15rem;
    border-radius: 50%;
}

.ee-message {
    margin-top: 1.6rem;
    padding: .25rem .5rem;
}

.ee-message .fa-heart {
    color: #d11919;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.cta {
    font-size: 4rem;
    color: var(--white);
    position: absolute;
    bottom: 0;
    margin-bottom: 2rem;
}

.ttt-cursor {
    color: var(--green);
}

section,
footer {
    padding-top: 5rem;
}

#projects {
    width: 100%;
}

#projects .card {
    margin-left: auto;
    margin-right: auto;
}

.icon {
    font-size: 2rem;
    color: var(--green);
}
.separator {
    display: block;
    margin: 0 auto;
    width: 10rem;
    border-bottom: 1px solid var(--grey);
}

.card {
    width: 90%;
    border: 1px solid var(--grey);
    border-radius: 7px;
    margin-top: 3rem;
    padding: 1rem;
    text-align: justify;
}

.card.about {
    margin-top: 3rem;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.sst-cursor {
    color: var(--green);
}

.card.about a {
    color: #00FF75;
}

.card .header,
.card .counter {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.card .counter i {
    margin-right: .75rem;
}

.card a {
    text-decoration: none;
    color: inherit;
}

.card h3,
.card p {
    font-weight: 400;
    margin: .5rem 0;
}

.card small {
    font-weight: 300;
}

.language {
    position: absolute;
    top: 2rem;
    right: 0;
    cursor: pointer;
    border: 1px solid var(--grey);
    border-radius: 5px;
    background-color: transparent;
    color: var(--white);
    padding: .2rem .5rem;
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    transition: border-color .2s;
}

.language:hover {
    border-color: var(--white);
}

.language span {
    margin-left: .5rem;
}

.card .description {
    font-weight: 100;
    margin-top: 1rem;
}

.card.about {
    position: relative;
}

.card.about .description p {
    line-height: 2.2rem;
    font-weight: 100;
}

.card.media {
    display: flex;
    align-items: center;
}

.card.media i {
    font-size: 3rem;
    margin: 0 1rem 0 3rem;
}

.callout-link {
    align-self: flex-end;
    margin-top: 2rem;
    text-decoration: none;
    color: inherit;
}

.callout-link i {
    margin-left: .5rem;
}

.social-links {
    margin: 0;
    margin-top: 3rem;
    padding: 0;
    list-style: none;
}

.social-links a {
    font-size: 2rem;
    text-decoration: none;
    color: inherit;
}

.social-links li {
    margin-top: 1rem;
}

.copyright {
    margin-top: 4rem;
    font-weight: 100;
}

/* Setar as vars para as telas maiores */
@media only screen and (min-width: 800px) {
    html {
        font-size: var(--base-font-size-lg);
    }
    .container {
        max-width: 800px;
    }
    .card.about {
        align-items: center;
        justify-content: space-between;
    }
}
@media only screen and (min-width: 1200px) {
    html {
        font-size: var(--base-font-size-xl);
    }
}

/* Animation */

.box-area {
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    z-index: -999;
}
.box-area li {
    position: absolute;
    display: block;
    list-style: none;
    width: 25px;
    height: 25px;
    animation: animate 20s linear infinite;
    bottom: -150px;
}
.box-area li img {
    max-width: 100%;
}
.box-area li:nth-child(1) {
    left: 86%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}
.box-area li:nth-child(2) {
    left: 12%;
    width: 30px;
    height: 30px;
    animation-delay: 1.5s;
    animation-duration: 10s;
}
.box-area li:nth-child(3) {
    left: 70%;
    width: 100px;
    height: 100px;
    animation-delay: 5.5s;
}
.box-area li:nth-child(4) {
    left: 42%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 15s;
}
.box-area li:nth-child(5) {
    left: 65%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}
.box-area li:nth-child(6) {
    left: 15%;
    width: 110px;
    height: 110px;
    animation-delay: 3.5s;
}

@keyframes animate {
    0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translateY(-800px) rotate(360deg);
      opacity: 0;
    }
}