* {
    margin: 0px;
    padding: 0px;
    font-family: 'Barlow', sans-serif;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-size: calc(1em + 1vw);
}


main > article {
    display: flex;
    flex-direction: row;
    padding: 2.5rem 2rem 2.5rem 2rem;
    margin: auto;
}

article img {
    width: 100%;
    border-radius: 100%;
    position: relative;
    left: 0;
    top: 0;
}

img.invisible {
    opacity: 0;
    transition: all .9s ease-in-out;
    position: absolute;
}

img.invisible:hover {
    opacity: 1;
    transition: all .9s ease-in-out;
}

.fas {
    color: #3D314A;
    display: inline;
}

a, a:visited {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

header {
    background-image: url(./img/milky_way.jpg);
    color: #fff;
    text-align: center;
    height: 100vh;
    width: 100vw;
    display: flex;
}

header p {
    color: #ddd;
    font-size: 3rem;
}

p, li{
    font-size: 1.6rem;
}

section.about {
    text-align: justify;
}

.flex-none {
    flex: none;
}

section.contacts {
    flex: none;
}

main ul {
    padding-left: 1.5rem;
}

section {
    position: relative;
    display: flex;
    flex-direction: column;
}

.social {
    margin-top: 0.7rem;
    text-align: center;
}

.fab {
    margin: 0 0.2rem 0 0.2rem;
}

.fab:hover {
    color: #3D314A;
}

section.skills {
    flex-grow: 1;
}

header section {
    margin: auto;
}

section.image-container {
    width: 18rem;
    align-self: center;
    flex-shrink: 0;
}

main > article > section {
    margin: 1.5rem;
}

main > article > section > div {
    margin: 1.5rem;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #3D314A;
    width: 100%;
    font-size: 1em;
    text-transform: uppercase;
    z-index: 1000;
}

nav a {
    margin: 2rem;
}

nav li {
    display: inline;
    width: calc(100% / 2);
}

#about {
    color: #ddd;
    background-color:  #63768D;
}

#skills {
    color: #fff;
    background-color:  #63768D;
}

#about h2 {
    color: #fff;
}

.scroll-down {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  margin: -1.6rem;
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  border: 0.2rem solid #fff;
  border-radius: 50%;
  animation: bounce 2s infinite 2s;
}

.scroll-down:before {
    position: absolute;
    top: calc(50% - 0.7rem);
    left: calc(50% - 0.7rem);
    transform: rotate(-45deg);
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    content: "";
    border: 0 solid #fff;
    border-width: 0 0 0.2rem 0.2rem;
}


@keyframes bounce {
    0%, 100%, 20%, 50%, 80% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
}


footer {
    background-color: #3D314A;
    width: 100%;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem 0 0.5rem 0;
}


.skill {
    display: flex;
    flex-flow: row wrap;
}

.skill > div {
    width: 10rem;
    margin: 0 1rem 0 0;
}

.circle-bg {
      fill: none;
      stroke: #fff;
      stroke-width: 3.8;
}

.circle {
      fill: none;
      stroke-width: 2.8;
      stroke-linecap: round;
}

.circular-chart .circle {
      stroke: #3D314A;
}

.percentage {
      font-size: 0.3rem;
      text-anchor: middle;
      fill: #ddd;
}

@media (max-width: 1000px) {
    main > article {
        flex-direction: column;
        justify-content: center;
    }

    html, body {
        font-size: 0.7em;
    }
    .skill > div {
        width: 5.1rem;
        margin: 0 1rem 0 0;
    }

    .percentage {
          font-size: 0.5rem;
    }

    nav li {
        font-size: 0.9rem;
    }

    nav a {
        margin: 0.5rem;
    }
}
