body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom left, rgb(29, 17, 65), rgb(222, 119, 132));
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  justify-content: center;
}

.top-arrow {
  user-select: none;
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 75px;
  cursor: pointer;
  opacity: 0.5;
}

.top-arrow:hover {
  opacity: 1;
}

.wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 1em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3em;
  text-align: center;
}

.avatar {
  user-select: none;
  width: 80%;
  max-width: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.title {
  color: rgb(255, 255, 255);
  margin: 0.5em 0;
  font-size: 3em;
}

.subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25em;
}

.languages-container {
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  margin-bottom: 0.75em;
  margin-top: 1.25em;
}

.language-item {
  color: rgb(255, 255, 255);
  margin-left: 1em;
  text-decoration: none;
}

.language-item.active {
  color: rgba(255, 255, 255, 0.6);
}

.language-item.active:after {
  content: '';
  display: block;
  height: 2px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
}

.main {
  background-color: rgb(255, 255, 255);
  color: rgb(93, 93, 93);
  border-radius: 0.5em;
}

.footer {
  margin: 3em 0;
  color: rgba(255, 255, 255, 0.6);
}

.copyright {
  text-align: center;
}

.main-section {
  padding: 3em;
  border-top: 1px solid rgb(222, 222, 222);
}

.main-section:first-child {
  border-top: unset;
}

.section-title {
  font-size: 1.5em;
  margin-bottom: 1em;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 0.75em;
  margin-bottom: 1em;
}

.about {
  display: flex;
  align-items: center;
}

.about .text {
  text-align: justify;
}

.about .photo {
  width: 80%;
  max-width: 200px;
  border-radius: 50%;
  border: 1px solid rgb(222, 222, 222);
  padding: 0.5em;
  margin: 1.5em;
  user-select: none;
}

.about .section-title {
  text-align: left;
}

.stars .on, .stars .off {
  user-select: none;
  height: 1em;
  width: 1em;
  display: inline-block;
}

.stars .on {
  background: rgb(222, 119, 132);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.stars .off {
  background: rgb(29, 17, 65);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.skills-container, .interests-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.skill-item, .interest-item {
  padding: 0.5em;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.skill-item {
  flex-basis: 25%;
}

.interest-item {
  flex-basis: 50%;
}

.skill-content, .interest-content {
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-sizing: content-box;
}

.skill-title, .interest-title {
  font-size: 1em;
  margin: 0.5em 0;
  text-align: center;
  width: 80%;
  overflow-wrap: break-word;
}

.skill-title {
  max-width: 100px;
}

.interest-title {
  max-width: 300px;
}

.skill-image {
  width: 80%;
  max-width: 100px;
  user-select: none;
}

.interest-image {
  width: 80%;
  max-width: 300px;
  user-select: none;
  cursor: pointer;
}

.stars {
  width: 80%;
  max-width: 100px;
  display: flex;
  justify-content: center;
}

.education-item {
  display: flex;
  align-items: center;
  margin-top: 0.5em;
}

.education-item:first-child {
  margin-top: unset;
}

.education-image {
  user-select: none;
  width: 100px;
  margin-right: 1em;
}

.education-title {
  font-weight: 500;
  font-size: 1.2em;
}

.education-duration {
  color: rgb(150, 150, 150);
}

.contacts-container {
  display: flex;
  border-radius: 0.5em;
  overflow: hidden;
}

.contact-item {
  flex-basis: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
  text-decoration: none;
}

.contact-title {
  color: rgb(255, 255, 255);
  margin-top: 1em;
}

.contact-image {
  user-select: none;
}

.youtube-contact {
  background-color: rgb(239, 168, 176);
}

.instagram-contact {
  background-color: rgb(199, 156, 200);
}

.github-contact {
  background-color: rgb(168, 156, 200);
}

.linkedin-contact {
  background-color: rgb(155, 178, 225);
}

@-webkit-keyframes backgroundFadeIn {
  from {
      background-color: #000;
      opacity: 0;
  }

  to {
      opacity: .75;
  }
}

@keyframes backgroundFadeIn {
  from {
      background-color: #000;
      opacity: 0;
  }

  to {
      opacity: .75;
  }
}

@-webkit-keyframes backgroundFadeOut {
  from {
      background-color: #000;
      opacity: .75;
  }

  to {
      opacity: 0;
  }
}

@keyframes backgroundFadeOut {
  from {
      background-color: #000;
      opacity: .75;
  }

  to {
      opacity: 0;
  }
}

.views-opening {
  -webkit-animation: backgroundFadeIn .2s ease-in;
          animation: backgroundFadeIn .2s ease-in;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.views-closing {
  -webkit-animation: backgroundFadeOut .2s ease-in;
          animation: backgroundFadeOut .2s ease-in;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.views-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.views-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  display: block;
}

@media screen and (max-width: 900px) {
  .main-section {
    padding: 2em;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about .section-title {
    text-align: center;
  }

  .about .text {
    text-align: center;
  }

  .contact-item {
    padding: 1em;
  }

  .contact-image {
    width: 70px;
  }
}

@media screen and (max-width: 670px) {
  .skill-item {
    flex-basis: 33%;
  }

  .contact-image {
    width: 50px;
  }
}

@media screen and (max-width: 550px) {
  .main-section {
    padding: 1em;
  }

  .skill-item {
    flex-basis: 50%;
  }

  .interest-item {
    flex-basis: 100%;
  }

  .contact-item {
    padding: 1em 0.25em;
  }

  .contact-title {
    margin-top: 0.5em;
  }
}

@media screen and (max-width: 400px) {
  .skill-item {
    flex-basis: 100%;
  }
}
