html {
  height: 100%;
}

html, body {
  display: flex;
  flex-direction: column;
  flex: 1;

  margin: 0;
  padding: 0;

  background-color: #efecec;

  font-family: 'Nunito', sans-serif;
  font-weight: 200;
  color: #0009;
}

body.dark {
  background: #000005e0;
  color: #fff9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 400;
}

#title-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #0000000a;
}

.dark #title-wrapper {
  background: #000;
  color: white;
}

.flex-center {
  align-items: center;
  display: flex;
  justify-content: center;
}

.links {
  margin: 0 auto 20px;
}

span.wip::before {
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  vertical-align: middle;

  content: 'WIP';
  font-size: 12pt;
  font-weight: bold;
  color: black;

  background: #e90;
}

.links > a,
.links > a:link,
.links > a:visited {
  margin: 0 10px 0 0;
  padding: 5px 10px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1rem;
  text-decoration: none;
  text-transform: uppercase;

  color: #0009;

  text-decoration: none;
  background-image: linear-gradient(#000a, #000a);
  background-size: 0 100%;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.3s ease;
}

.links > a:last-of-type,
.links > a:link:last-of-type,
.links > a:visited:last-of-type {
  margin: 0;
}

.links > a:hover {
  background-position: 0 100%;
  background-size: 100% 100%;
  color: white;
}

.dark .links > a {
  background-image: linear-gradient(#fff, #fff);
}

.dark .links > a:hover {
  color: black;
}

.m-b-md {
  margin-bottom: 30px;
}

#me {
  border-radius: 50%;
}

.wrapper {
  display: flex;
  flex-direction: column;
}

#contact {
  display: block;
  margin: 20px 0 0;
}

.dark .links > a {
  color: white;
}

#title {
  display: flex;
  flex-direction: column;

  margin: 0 auto 30px;

  width: fit-content;

  text-align: center;
}

#title img {
  display: block;
  flex: 0;
  align-self: center;
}

#title.row {
  margin-top: 50px;
  text-align: left;
}

#title.row > div {
  margin: auto 0 auto 30px;
}

#title.row .links {
  position: relative;
  left: -6px;
}

#title.row h1 {
  margin: 0;
}

#title.row img {
  height: 180px;
}

.row {
  flex-direction: row !important;
}

#title h1 {
  margin: 30px 0 0;

  font-size: 60pt;
  font-weight: 400;
  font-family: 'Sansita Swashed', sans-serif;
  line-height: 1.3;

  background-clip: text;
  -webkit-background-clip: text;
  animation: rainbow 6s linear forwards infinite;

  background-image: linear-gradient(124deg, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3, #e81d1d, #e81d1d);
  background-size: 1800% 1200%;

  color: transparent;
}

#title h2 {
  margin: 0;

  font-size: 29pt;
  font-weight: 400;
}

#portfolio {
  display: flex;
  flex-direction: row;
  flex: 1;

  margin: 30px;
}

#images {
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: space-between;
  margin: 0 0 0 10px;
}

#portfolio a {
  display: flex;
  align-self: flex-start;
  width: calc(50% - 10px);
}

#portfolio img {
  width: 100%;
}

#title-card {
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 1px 1px 5px 1px #0003;

  min-width: 345px;
  width: 345px;

  background: #000e;
  
  color: white;
}

@keyframes rainbow {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@media screen and (max-width: 1080px) {
  #title.row {
    flex-direction: column !important;

    text-align: center;
  }

  #title.row > div {
    margin: auto 0 auto;
  }

  #images.row {
    margin: 10px 0;
  }

  #title h1 {
    font-size: 30pt;
  }

  #title h2 {
    font-size: 18pt;
  }

  #portfolio {
    flex-direction: column;
  }

  #title-card {
    margin: 10px 0;

    min-width: unset;
    width: unset;
  }

  .links {
    text-align: center;
  }

  .links a {
    display: block;
    margin: 0 !important;
  }

  #me {
    width: 200px;
  }
}
