/* Variables */

  :root {
    /* --color-link:#099655; */
    --color-link:#098f96;
    --color-background:#fefefe;
    --color-background-gradient:#a9c6e1;
    --color-title:#b02331;
    --color-text:#000;
    --font-main:'Lato', sans-serif;
    --font-accent-1:'Times New Roman', serif;
    --font-accent-2:'Cantarell', sans-serif;
    --width-wrapper:800px;
  }


/* General */

  * {
    padding:0;
    margin:0;
    max-width:100%;
    scroll-behavior: smooth;
  }

  :target:before {
    content: "";
    display: block;
  }

  body {
    font-family: var(--font-main);
    background-blend-mode: screen; 
    background-attachment: fixed;
    color: var(--color-text);
    font-size:16px;
  }

  p {
    padding-bottom:8px;
  }

  a {
    color: var(--color-link);
    text-decoration: none;
  }

  h2, h3 {
    text-align:center;
  }

  h2 {
    font-family:var(--font-accent-2);
    font-weight: 800;
    font-size: 32px;
    text-transform: uppercase;
    padding:20px 0;
  }

  h3 {
    font-family:var(--font-accent-1);
    font-size:28px;
    margin:16px 0;
  }

  h4 {
    font-family:var(--font-accent-2);
    margin:16px 0;
    padding-bottom:10px;
    font-size:20px;
    background-image: linear-gradient(to right, rgb(117, 119, 122) 20%, rgba(117, 119, 122, 0) 0%);
    background-position:center bottom;
    background-size: 10px 2.3px;
    background-repeat: repeat-x;
  }

  h4:first-child {
    margin-top:0;
  }

  ul {
    margin-left:28px;
  }

  hr {
    border:0;
    border-top: 1px solid black;
    margin:20px auto;
    width:80%;
  }

  #wrapper {
    width:var(--width-wrapper);
    margin:0 auto;
    background-color:var(--color-background);
    box-shadow: 0 0 180px 180px var(--color-background);
  }

  .link-button {
    display:inline-flex;
    background-color: var(--color-link);
    border:1px solid var(--color-link);
    border-radius:3px; 
    font-size:15px;
    margin-bottom:4px;
    transition-duration:0.5s;
    overflow:hidden;
  }

  .link-button:hover {
    background-color: var(--color-text);
    border:1px solid var(--color-text);
    color:var(--color-text);
  }

  .link-button img {
    width:24px;
    height:24px;
    margin:4px;
  }

  .link-button span {
    background-color:var(--color-background);
    display:block;
    width:100%;
    padding:6px 8px;
  }


/* Navigation */

  #navigation {
    position: fixed;
    top: 0;
    width:var(--width-wrapper);
    margin:0 auto;
    padding-top:20px;
    z-index:1;
    background-color: var(--color-background);
    box-shadow: 0 0 30px 40px var(--color-background);
    font-size:18px;
  }

  #navigation-title a {
    font-family: var(--font-accent-1);
    font-size:36px;
    font-weight: bold;
    color:var(--color-title);
  }

  #navigation p {
    font-family:var(--font-accent-2);
    color:black;
    padding:0;
  }

  #navigation-links {
    font-family: var(--font-accent-2);
  }

  #navigation-links a {
    transition-duration:0.5s;
  }

  #navigation-links a:hover {
    color: var(--color-text);
  }


/* Content */

  #content {
    margin:110px auto 30px;
  }

  .section {
    display:block;
    padding-bottom:30px;
  }

  .section:first-child {
    padding-top:60px;
  }


/* Introduction */

  #introduction {
    display:flex;
  }

  #introduction-links {
    margin-left:16px;
    flex-grow:1;
    flex-shrink: 0;
  }

  #introduction-links .link-button {
    display:flex;
  }

  #icon {
    display:block;
    width:90px;
    margin-bottom:10px;
    border:1px solid black;
    border-radius:3px;
  }

  #introduction-text {
    text-align: justify;
  }


/* Portfolio */

  #work-gallery {
    width:100%;
    display:flex;
    flex-wrap: wrap;
    justify-content:space-between;
  }

  .work-item {
    width:calc(50% - 5px);
    height:240px;
    position:relative;
    overflow:hidden;
    margin-bottom:10px;
    background-color:rgb(228, 228, 228);
    color:white;
    cursor:pointer;
    border-radius:2px;
    outline:1px solid black;
  }

  .work-thumbnail,
  .work-thumbnail-video {
    display:block;
    height:100%;
    width:100%;
    object-fit: cover;
  }

  .work-thumbnail-video * {
    height:100%;
    width:100%;
    object-fit: cover;
  }

  .work-thumbnail {
    position:absolute;
    top:0;
    left:0;
    filter: blur(2px);
    -webkit-filter: blur(2px);
    transition-duration: 0.5s;
  }

  .work-description {
    position:absolute;
    bottom:0;
    left:0;
    background-color:rgba(0, 0, 0, 0.45);
    width:calc(100% - 48px);
    height:calc(100% - 46px);
    opacity:1;
    transition-duration: 0.5s;
    padding:24px;
    padding-top:40px;
    text-shadow: 0 0 5px black;
    text-align: right;
  }

  .work-description b {
    display:block;
    font-size:20px;
    text-align:left;
    font-family: var(--font-accent-2);
  }

  .work-description p {
    position:absolute;
    right:20px;
    bottom:46px;
    width:calc(100% - 44px);
    font-family: var(--font-accent-2);
  }

  .work-description-icons {
    position:absolute;
    bottom:14px;
    right:20px;
  }

  .work-description-icons img {
    width:24px;
    height:24px;
    -webkit-filter: drop-shadow(0px 0px 2px black);
    filter: drop-shadow(0px 0px 2px black);
    padding-left:6px;
  }

  .work-item:hover .work-description,
  .work-item:hover .work-thumbnail {
    opacity:0;
  }


/* Skills */

  .skill-category {
    margin:20px auto;
    width:100%;
    display: flex;
    flex-wrap: wrap;
    border:1px solid var(--color-text);
    border-radius:3px;
    padding:16px;
    padding-top:40px;
    box-sizing: border-box;
    position: relative;
  }

  .skill-category p {
    flex: 0 0 100%;
    font-size:15px;
    position:absolute;
    top:0;
    left:0;
  }

  .skill-category p span {
    display:inline-block;
    background-color: var(--color-text);
    color:var(--color-background);
    padding:6px;
    border-bottom-right-radius: 4px;
    min-width:200px;
    font-weight: bold;
  }

  .skill {
    width:60px;
    height:60px;
    position:relative;
    padding:8px;
    line-height: 60px;
  }

  .skill img {
    width:60px;
    opacity:1;
    transition-duration: 0.5s;
    transition-delay: 0.1s;
    /* -webkit-filter: drop-shadow(0px 0px 1px black);
    filter: drop-shadow(0px 0px 1px black); */
  }

  .skill span {
    display:inline-block;
    width:100%;
    margin:auto;
    line-height:20px;
    text-align:center;
    font-size: 14px;
    opacity:0;
    transition-duration: 0.5s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .skill:hover img {
    opacity:0.1;
    filter: blur(1px);
    -webkit-filter: blur(1px);
  }

  .skill:hover span {
    opacity:1;
  }


/* Footer */

  #footer {
    text-align:center;
  }