/**
 * Styles for resume page.
 * By Arne Westphal
 * 2018
 */
/* Imports */
/* Colors */
/* Mixins */
/* Fonts */
@font-face {
  font-family: 'Roboto';
  src: url("../fonts//Light/Roboto-Light.woff2?v=2.137") format("woff2"), url("../fonts//Light/Roboto-Light.woff?v=2.137") format("woff"), url("../fonts//Light/Roboto-Light.ttf?v=2.137") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url("../fonts//Regular/Roboto-Regular.woff2?v=2.137") format("woff2"), url("../fonts//Regular/Roboto-Regular.woff?v=2.137") format("woff"), url("../fonts//Regular/Roboto-Regular.ttf?v=2.137") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url("../fonts//Medium/Roboto-Medium.woff2?v=2.137") format("woff2"), url("../fonts//Medium/Roboto-Medium.woff?v=2.137") format("woff"), url("../fonts//Medium/Roboto-Medium.ttf?v=2.137") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* General */
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #444;
  background-color: white;
}

h1,
h2,
h3,
a {
  color: #43b39b;
}

a:hover,
a:focus {
  color: #328371;
}

.btn {
  border: 0;
  padding: .3rem .7rem;
  color: white;
  background-color: #43b39b;
}

.btn:hover,
.btn:focus {
  outline: none;
  background-color: #328371;
}

.btn > * {
  vertical-align: middle;
}

img {
  max-width: 100%;
  -ms-interpolation-mode: bicubic;
}

section {
  background-color: white;
  padding: 3rem 0 4rem;
}

section:nth-of-type(odd) {
  background-color: #eee;
}

ul {
  padding: 0;
  list-style: none;
}

ul > li > span {
  display: inline;
  font-weight: 500;
}

ul > li > span:after {
  content: ":";
}

ul p {
  display: inline;
  margin-left: .25em;
}

code {
  color: #888;
}

.row-padding {
  padding-left: 15px;
  padding-right: 15px;
}

/* Language select */
.languages {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #888;
  font-size: 95%;
  background-color: #eee;
  padding: 2px 4px;
  border-radius: 5px;
}

/* Navbar */
.navbar {
  display: none;
  background-color: #eee;
  padding: 1rem;
}

.navbar .navbar-collapse {
  position: relative;
}

.navbar .navbar-nav .nav-item {
  font-weight: 500;
}

.navbar .navbar-nav .active > .nav-link {
  color: #43b39b;
}

.navbar .scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: #b4b4b4;
}

.navbar .scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: #43b39b;
}

.navbar .languages {
  top: auto;
  top: 0;
  right: 0;
  padding: .5rem;
}

@media (max-width: 575.98px) {
  .navbar .languages {
    background: 0;
    border-radius: 0;
  }
}

/* Header */
section.header {
  position: relative;
  padding: 3rem;
  color: white;
  background: #43b39b;
  background-color: #43b39b;
  background-image: url(../img/bg_stripes.png);
  background-size: cover;
  -webkit-background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 575.98px) {
  section.header {
    padding-top: 2rem;
    padding-left: 0;
    padding-right: 0;
  }
}

section.header.full-viewport {
  min-height: 500px;
}

@media (max-width: 991.98px) {
  section.header.full-viewport {
    min-height: 590px;
  }
}

@media (max-width: 575.98px) {
  section.header.full-viewport {
    min-height: 435px;
  }
}

@media (max-width: 991.98px) {
  .image-header {
    padding: 0 4rem;
  }
}

@media (max-width: 575.98px) {
  .image-header {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.image-header img {
  margin: 8px auto;
  width: 100%;
  max-width: 300px;
  background-color: white;
  border-radius: 50%;
}

@media (max-width: 991.98px) {
  .image-header img {
    max-width: 250px;
  }
}

@media (max-width: 575.98px) {
  .image-header img {
    max-width: 200px;
  }
}

section.header .title {
  margin: 2rem 0;
}

@media (max-width: 575.98px) {
  section.header .title {
    margin: 0.5rem 0;
  }
}

.header h1 {
  color: white;
}

@media (max-width: 575.98px) {
  .header h1 {
    font-size: 1.75rem;
  }
}

.header .subtitle {
  display: block;
  margin-bottom: .5rem;
}

.header .icons-head > * {
  margin: 0 5px;
}

.header .icons-head a:hover {
  text-decoration: none;
}

.header .icon {
  background-color: white;
  border-radius: 50%;
  max-width: 32px;
  padding: 5px;
  -webkit-transition-duration: .25s;
          transition-duration: .25s;
}

.header .icon:hover {
  background-color: #84e9d3;
  -webkit-box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2);
  -o-box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2);
}

.header .header-fill {
  height: 3rem;
}

.header .scroll-down-hint {
  cursor: pointer;
  position: relative;
  width: 3rem;
  height: 3rem;
  margin: -3rem auto 0;
  border-radius: 50%;
  background-color: white;
  -webkit-transition-duration: .25s;
          transition-duration: .25s;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .header .scroll-down-hint {
    margin-top: -1.5rem;
  }
}

@media (max-width: 575.98px) {
  .header .scroll-down-hint {
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1rem;
  }
}

.header .scroll-down-hint:hover {
  background-color: #84e9d3;
}

.header .scroll-down-arrow {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../img/arrow_down.svg");
  background-size: 60% 60%;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-animation: scroll-down-arrow-blink 3s infinite 1s;
  animation: scroll-down-arrow-blink 3s infinite 1s;
}

@-webkit-keyframes scroll-down-arrow-blink {
  0% {
    margin-top: 0;
  }
  40% {
    margin-top: 0;
    opacity: 1;
  }
  49% {
    margin-top: 50%;
    opacity: 0;
  }
  50% {
    margin-top: -60%;
    opacity: 0;
  }
  60% {
    margin-top: 0;
    opacity: 1;
  }
  100% {
    margin-top: 0;
  }
}

@keyframes scroll-down-arrow-blink {
  0% {
    margin-top: 0;
  }
  40% {
    margin-top: 0;
    opacity: 1;
  }
  49% {
    margin-top: 50%;
    opacity: 0;
  }
  50% {
    margin-top: -60%;
    opacity: 0;
  }
  60% {
    margin-top: 0;
    opacity: 1;
  }
  100% {
    margin-top: 0;
  }
}

/* Info */
.info ul {
  line-height: 200%;
}

/* Resume Timeline */
.resume {
  position: relative;
  overflow: hidden;
}

.resume h3,
.resume h4 {
  font-size: 1.5rem;
}

.resume:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -1px;
  width: 2px;
  height: 100%;
  background-color: #bcbcbc;
}

@media (max-width: 767.98px) {
  .resume:before {
    left: 24px;
    /* Half the separator dot size */
  }
}

.resume .tl-block-left {
  float: left;
  direction: rtl;
  text-align: right;
}

@media (max-width: 767.98px) {
  .resume .tl-block-left {
    float: none;
    direction: ltr;
    text-align: left;
    /* Half the separator dot size */
  }
}

.resume .tl-block-right {
  float: right;
}

@media (max-width: 767.98px) {
  .resume .tl-block-right {
    float: none;
  }
}

.resume .tl-block {
  position: relative;
  width: 50%;
  margin-bottom: 2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
      justify-content: space-between;
  clear: both;
}

@media (max-width: 767.98px) {
  .resume .tl-block {
    width: auto;
    margin-left: 24px;
    /* Half the separator dot size */
  }
}

.resume .tl-block:last-of-type {
  margin-bottom: 0;
}

.resume .tl-block:before {
  content: '';
  position: absolute;
  margin: 54px -8px 0;
  width: 16px;
  height: 16px;
  border: 3px solid #eee;
  background-color: #888;
  background-clip: padding-box;
  border-radius: 50%;
  z-index: 1;
  -webkit-transition-duration: .25s;
          transition-duration: .25s;
}

.resume .tl-block:hover:before {
  background-color: #43b39b;
  margin: 52px -10px 0;
  width: 20px;
  height: 20px;
}

.resume .tl-block-content {
  cursor: default;
  direction: ltr;
  margin: 0 0.75rem;
  padding: 0.75rem;
  -webkit-transition-duration: .25s;
          transition-duration: .25s;
}

@media (max-width: 767.98px) {
  .resume .tl-block-content {
    margin-right: 0;
  }
}

.resume .tl-block-content p {
  margin: 0;
}

.resume .tl-block:hover .tl-block-content {
  background-color: #ddd;
  border-radius: 10px;
}

.resume .tl-block-separator {
  width: 50%;
}

@media (max-width: 767.98px) {
  .resume .tl-block-separator {
    width: auto;
    margin-left: 24px;
    /* Half the separator dot size */
  }
}

.resume .tl-block-separator:before {
  margin: 0 -24px;
  width: 48px;
  height: 48px;
  border-width: 5px;
  background-color: #43b39b;
}

.resume .tl-block-separator:hover:before {
  background-color: #43b39b;
  margin: 0 -24px;
  width: 48px;
  height: 48px;
}

.resume .tl-block-separator span {
  width: 100%;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 48px;
  margin: 0 28px;
}

@media (max-width: 767.98px) {
  .resume .tl-block-separator span {
    margin-right: 0;
  }
}

/* Skills */
.progress {
  margin-bottom: 1rem;
  border-radius: .5rem;
}

.progress-bar {
  background-color: #43b39b;
}

/* Portfolio */
.gallery .row > div {
  padding: 0;
}

.gallery .item {
  cursor: pointer;
  -webkit-transition-duration: .5s;
          transition-duration: .5s;
  margin: 1rem;
  background-color: white;
  -webkit-box-shadow: 1px 1px 6px #dbdbdb;
  -o-box-shadow: 1px 1px 6px #dbdbdb;
  box-shadow: 1px 1px 6px #dbdbdb;
  border-radius: .3rem;
  overflow: hidden;
}

.gallery .item img {
  width: 100%;
}

.gallery .item .card-body {
  border-top: 1px solid #dbdbdb;
  -webkit-transition-duration: .5s;
          transition-duration: .5s;
}

.gallery .item:hover .card-body {
  background-color: #43b39b;
  color: white;
}

.gallery .item h6 {
  margin: 0;
}

.card-body {
  padding: 0.75rem;
}

.gallery .modal-header h4 {
  margin: 0;
}

.gallery .modal-body {
  text-align: center;
}

.gallery .modal-body .row > div {
  padding: 2rem;
}

@media (max-width: 767.98px) {
  .gallery .modal-body .row > div {
    padding: 1rem;
  }
}

.gallery .modal-footer {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  text-align: left;
}

.gallery .modal-footer p {
  margin: 0;
}

.modal-dialog.modal-600 {
  max-width: 600px;
}

.modal-body.img {
  padding: 0;
}

/* Contact */
.contact .row {
  margin-left: -.25rem;
  margin-right: -.25rem;
}

.contact .row > [class*="col-"] {
  padding-left: .25rem;
  padding-right: .25rem;
}

.contact input[type="text"],
.contact textarea {
  width: 100%;
  border: 1px solid #43b39b;
  border-radius: .25rem;
  padding: .3rem .5rem;
  background-color: #effaf7;
  outline: none;
}

.contact input[type="text"] {
  margin-bottom: .5rem;
}

.contact .highlight {
  border-color: #b34343 !important;
  background-color: #faf0f0 !important;
}

.contact textarea {
  display: block;
  resize: none;
  min-height: 10em;
  margin-bottom: .5rem;
}

.contact .error {
  display: none;
  color: #b34343;
  margin-left: .5rem;
}

.contact .error.active {
  display: inline;
}

.contact .submit-row {
  color: #43b39b;
}

.contact .submit-row > * {
  vertical-align: middle;
  margin-left: .5rem;
}

.contact .submit-row > *:first-child {
  margin-left: 0;
}

/* Footer */
section[name="footer"] {
  padding: 1.5rem 0;
}

.footer {
  color: #888;
  background-color: #eee;
  font-size: 90%;
  text-align: center;
}

/* Helpers */
.full-viewport {
  height: 100vh;
}

.fade-in-active {
  opacity: 1;
  -webkit-animation: fade-in 1s 1 ease-out;
  animation: fade-in 1s 1 ease-out;
}

.shake {
  -webkit-animation: shake 1s 1 ease-out;
  animation: shake 1s 1 ease-out;
}

.loading-con {
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
  color: inherit;
  -webkit-animation: rotate 1s infinite linear;
  animation: rotate 1s infinite linear;
}

.loading-con:before,
.loading-con:after {
  content: " ";
  position: absolute;
  margin: auto;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: inline-block;
  background: center center no-repeat;
  background-size: cover;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  border-radius: 50%;
  border-style: solid;
  border-width: 0.1em;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.loading-con:after {
  border-color: currentColor currentColor currentColor transparent;
}

.loading-con:before {
  border-color: transparent transparent transparent currentColor;
  opacity: .25;
}

.expand-loading .loading-con {
  display: block;
  margin-left: 0.5em;
  float: right;
}

.expand-loading {
  display: inline-block;
  opacity: 0;
  width: 0;
  -webkit-transition: .5s ease-out;
  transition: .5s ease-out;
  overflow: hidden;
}

.loading .expand-loading {
  opacity: 1;
  width: 1.5em;
}

@-webkit-keyframes fade-in {
  0% {
    margin-top: 3rem;
    margin-bottom: -3rem;
    opacity: 0;
  }
  100% {
    margin-top: 0;
    margin-bottom: 0;
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    margin-top: 3rem;
    margin-bottom: -3rem;
    opacity: 0;
  }
  100% {
    margin-top: 0;
    margin-bottom: 0;
    opacity: 1;
  }
}

@-webkit-keyframes rotate {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes rotate {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@-webkit-keyframes shake {
  10%,
  90% {
    -webkit-transform: translate3d(-1px, 0, 0);
            transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    -webkit-transform: translate3d(2px, 0, 0);
            transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    -webkit-transform: translate3d(-4px, 0, 0);
            transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    -webkit-transform: translate3d(4px, 0, 0);
            transform: translate3d(4px, 0, 0);
  }
}

@keyframes shake {
  10%,
  90% {
    -webkit-transform: translate3d(-1px, 0, 0);
            transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    -webkit-transform: translate3d(2px, 0, 0);
            transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    -webkit-transform: translate3d(-4px, 0, 0);
            transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    -webkit-transform: translate3d(4px, 0, 0);
            transform: translate3d(4px, 0, 0);
  }
}
