/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #171717;
  border-bottom: 3px solid #fa0;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.7);
  z-index: 8;
}

.navbar > div {
  height: 100%;
  overflow: visible;
}

.logo {
  margin: 0 20px;
  opacity: 0;
  transform: translateX(50px);
  transition: 0.3s;
}

.logo a {
  font-size: 22px;
  line-height: 50px;
  color: #fa0;
  pointer-events: none;
}

.logo span {
  margin-left: 14px;
  padding-top: 4px;
  font: italic 14px light-less, arial;
  color: #ccc;
  cursor: default;
}

.nav-link {
  display: block;
  padding: 0 20px;
  width: 80px;
  text-align: center;
  font-size: 18px;
  line-height: 50px;
  color: #ccc;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fa0;
}

.nav-burger {
  display: none;
  position: relative;
  width: 50px;
  height: 50px;
  margin-right: 20px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  position: absolute;
  left: 5px;
  width: 40px;
  height: 3px;
  background-color: #ccc;
  z-index: -1;
  transform-origin: 0 50%;
  transition: 0.3s;
}

.nav-burger span:nth-child(1) {
  top: 12px;
}

.nav-burger span:nth-child(2) {
  top: 23px;
}

.nav-burger span:nth-child(3) {
  top: 34px;
}

.open span:nth-child(1) {
  transform: rotate(34deg);
}

.open span:nth-child(2) {
  transform: translate(-50px);
  opacity: 0;
}

.open span:nth-child(3) {
  transform: rotate(-34deg);
}

.nav-menu {
  position: absolute;
  top: 50px;
  left: 50%;
  margin-left: -60px;
  height: 0;
  overflow: hidden;
  border-top: 3px solid #fa0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: 0.5s;
}

.show {
  height: 150px;
  opacity: 1;
}

/* SOCIAL LINKS */

.sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  margin-top: -90px;
  width: 60px;
  z-index: 9;
}

.sidebar a {
  position: relative;
  left: -100px;
  width: 100px;
  height: 60px;
  color: white;
  text-align: right;
  transition: transform 0.2s ease-in-out;
}

.sidebar a:hover,
.sidebar a:focus {
  transform: translate(20px, 0);
}

.sidebar a img {
  width: 40px;
  height: 40px;
  margin: 10px;
  filter: brightness(0) invert(1);
}

.github {
  background-color: #24292e;
}

.linkedin {
  background-color: #0077b5;
}

.twitter {
  background-color: #1da1f2;
}

.message {
  background-color: #d93025;
}

.social-link-in {
  animation: slide-in 0.5s ease-out forwards;
}

@keyframes slide-in {
  0% {left: -100px}
  60% {left: -20px}
  100% {left: -40px}
}

.social-link-out {
  animation: slide-out 0.1s ease-out forwards;
}

@keyframes slide-out {
  0% {left: -40px}
  100% {left: -100px}
}


/* FOOTER */

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fa0;
  height: 40px;
  text-align: right;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.7);
  transform: translateY(40px);
  transition: 1s;
}

.footer p {
  line-height: 40px;
  color: #171717;
  margin: 0;
  margin-right: 10px;
}
