/*
 * robin-juengerich.com — adapted from "Personal Webpage" by Bradley
 * Engelhardt (codepen.io/SquishyAndroid/pen/XjRPVV), MIT licensed.
 */

/* general styles */

body {
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none !important;
}

h1 {
  color: #ff6363;
  font-weight: bold;
}

p {
  font-size: 20px;
  color: #484848;
}

.section {
  text-align: center;
}

.skillbar {
  cursor: pointer;
}

.hide {
  display: none;
}

.display {
  display: block;
}

/* Nav Screen (mobile slide-in) */

.nav-screen {
  height: 100%;
  z-index: 500;
  position: fixed;
  background-color: #000;
  opacity: 1;
  right: -285px; /* start off behind the scenes */
  -webkit-font-smoothing: antialiased;
  width: 285px;
}

.nav-screen .active {
  display: block;
}

/* nav header links */

.nav-brand {
  position: fixed;
  left: 0;
  z-index: 600;
  padding: 10px;
}

.nav-brand img {
  width: 50px;
}

.fa-bars {
  display: none !important;
  color: #ff6363;
  float: right;
  padding: 20px;
  position: fixed;
  right: 0;
  z-index: 500;
  cursor: pointer;
}

.fa-times {
  color: #ff6363;
  float: right;
  padding: 20px;
  right: 0;
  z-index: 600;
  cursor: pointer;
}

.header-links {
  position: fixed;
  width: 100%;
  z-index: 500;
}

.header-links li {
  color: white;
  display: inline;
  float: right;
  padding: 15px;
  font-size: 16px;
}

.header-links a {
  color: #757575;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

.header-links a:hover {
  color: #ff6363 !important;
}

/* language toggle */

.lang-toggle {
  white-space: nowrap;
}

/* the expanding-underline ::after is display:block and would break the
   EN | DE row — the toggle marks its state via .active instead */
.lang-toggle a::after {
  display: none !important;
}

.lang-toggle a {
  cursor: pointer;
  font-weight: bold;
}

.lang-toggle a.active {
  color: #ff6363 !important;
}

.lang-toggle .lang-sep {
  padding: 0 6px;
  color: #757575;
}

.nav-links .lang-toggle a {
  font-size: 20px;
}

/* slide out nav menu styles */

.nav-container {
  padding-top: 10%;
}

.nav-links {
  width: 250px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.nav-links ul {
  margin-top: 15%;
  text-align: center;
  padding-top: 10%;
}

.nav-links a {
  color: #ffffff;
  font-size: 30px;
  line-height: 2.5;
  font-weight: bold;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a:hover {
  color: #ff6363;
  transition: all 0.6s ease-in-out;
}

#fp-nav ul li .fp-tooltip {
  color: #5f5f5f !important;
}

/* Expanding border effect */

.header-links a::after {
  display: block;
  margin: 0 auto;
  margin-top: 5px;
  width: 0;
  height: 2px;
  background-color: #fff;
  content: "";
  opacity: 0;
  transition: width 0.6s, opacity 0.8s;
}

.header-links a:hover::after,
.header-links a:focus::after {
  opacity: 1;
  width: 100%;
}

/* main header section */

.opaque-bg {
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
  padding: 1px 1px 5px 5px;
}

.aboutme {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../assets/hero.jpg") center no-repeat;
  background-size: cover;
}

.aboutme p {
  color: white;
  font-weight: 100;
  font-size: 17.4px;
}

/* bouncing arrow */

.fa-chevron-down {
  color: #ff6363 !important;
  bottom: 10px;
  margin-left: -30px;
  cursor: pointer;
  position: absolute;
  opacity: 0;
  -webkit-transition: 1.2s ease;
  transition: 1.2s ease;
}

/* Scroll down indicator (bouncing) */

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

.bounce {
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

/* Skill bars */

.container-skillbar {
  width: 100%;
  padding-top: 30px;
  padding-right: 2%;
  padding-left: 2%;
  height: auto;
}

.skillbar {
  position: relative;
  display: block;
  margin-bottom: 15px;
  width: 100%;
  background: #efefef;
  height: 30px;
  border-radius: 3px;
  transition: 0.4s linear;
  transition-property: width, background-color;
}

.skillbar-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 230px;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-title span {
  display: block;
  background: rgba(0, 0, 0, 0.15);
  padding: 0 14px;
  height: 30px;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-bar {
  height: 30px;
  width: 0px;
  border-radius: 3px;
}

.skill-bar-percent {
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 11px;
  height: 30px;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.5);
}

/* portfolio section */

.content {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.content-slide {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.content-slide img {
  width: 70%;
  max-height: 42vh;
  object-fit: contain;
}

.content-slide h1 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.content-slide p {
  margin-bottom: 8px;
}

.slide-tag {
  display: inline-block;
  border: 2px solid #ff6363;
  color: #ff6363 !important;
  padding: 1px 12px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  border-radius: 2px;
  margin-bottom: 0;
}

.slide-kpi {
  color: #ff6363 !important;
  font-weight: 600;
  font-size: 16px;
}

.slide-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px;
  min-width: 200px;
  border-radius: 2px;
  border: 2px solid #ff6363;
  text-align: center;
  font-size: 1em;
  color: #ff6363;
  background-color: transparent;
  text-transform: uppercase;
  font-weight: bold;
}

.slide-cta:hover {
  background-color: #ff6363;
  color: white;
  transition: all 0.3s ease-out;
}

.fp-controlArrow.fp-next {
  border-color: transparent transparent transparent #ff6363 !important;
  right: 45px !important;
}

.fp-controlArrow.fp-prev {
  border-color: transparent #ff6363 transparent transparent !important;
  left: 45px !important;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: rgba(0, 0, 0, 0.62) !important;
}

/* writing section */

.writing-cards {
  margin-top: 30px;
  margin-bottom: 10px;
}

.writing-card {
  display: block;
  text-align: left;
  max-width: 640px;
  margin: 0 auto 18px auto;
  padding: 14px 22px;
  background: #fafafa;
  border-left: 3px solid #ff6363;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
}

.writing-card:hover {
  background: #f0f0f0;
  transform: translateX(4px);
}

.writing-card h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: bold;
  color: #484848;
}

.writing-card:hover h3 {
  color: #ff6363;
}

.writing-card .writing-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.writing-card .writing-teaser {
  font-size: 15px;
  color: #666;
  margin-bottom: 0;
}

.writing-more {
  display: inline-block;
  margin-top: 12px;
  padding: 12px;
  min-width: 200px;
  border-radius: 2px;
  border: 2px solid #ff6363;
  text-align: center;
  font-size: 1em;
  color: #ff6363;
  text-transform: uppercase;
  font-weight: bold;
}

.writing-more:hover {
  background-color: #ff6363;
  color: white;
  transition: all 0.3s ease-out;
}

/* contact styles */

.contact-form {
  padding: 0px 15px 0px 15px;
}

.form-control {
  border: 2px solid rgba(0, 0, 0, 0.27);
  width: 100%;
  max-width: 100%;
  height: 3em;
  font-size: 16px;
  padding: 1em;
  margin: 0.5em 0 1.2em 0;
  font-weight: bold;
}

textarea.form-control {
  min-height: 8em;
}

#submit {
  outline: none;
  padding: 12px;
  min-width: 200px;
  border-radius: 2px;
  border: 2px solid #ff6363;
  text-align: center;
  font-size: 1em;
  color: #ff6363;
  background-color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

#submit:hover {
  background-color: #ff6363;
  color: white;
  transition: all 0.3s ease-out;
}

/* form result messages */

.success {
  padding: 1em;
  margin-bottom: 0.75rem;
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
}

.error {
  padding: 1em;
  margin-bottom: 0.75rem;
  color: #b94a48;
  background-color: #f2dede;
  border: 1px solid rgba(185, 74, 72, 0.3);
  border-radius: 4px;
}

/* footer styles */

.footer {
  background-color: #484848;
  padding: 14px 10px 18px 10px;
}

.footer p {
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.social-links a {
  color: white;
  padding: 0px 8px 0px 8px;
}

.social-links a:hover {
  color: #ff6363;
  transition: all 0.2s ease-in-out;
}

.footer .footer-legal {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: normal;
  color: #bbb;
}

.footer .footer-legal a {
  color: #bbb;
  text-decoration: underline !important;
}

.footer .footer-legal a:hover {
  color: #ff6363;
}

/* smaller resolution styles */

@media (min-width: 100px) and (max-width: 500px) {
  .fa-bars {
    display: block !important;
  }

  .header-links {
    display: none;
  }
}

/* mobile styles */

@media (min-width: 100px) and (max-width: 400px) {
  .content {
    max-width: 300px;
  }

  .aboutme h1 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .skillbar-title {
    width: 160px;
  }

  .skillbar-title span {
    font-size: 11px;
    padding: 0 8px;
  }
}

.blinking-cursor {
  font-weight: 500;
  margin-left: 4px;
  font-size: 20px;
  color: white !important;
  animation: 1s blink step-end infinite;
}

@keyframes blink {
  from,
  to {
    color: transparent;
  }
  50% {
    color: white;
  }
}
