/*******************************************************************************
Fonts
*******************************************************************************/

@font-face {
  font-family: "josefinSans";
  src: url("fonts/JosefinSans-SemiBold.ttf");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "josefinSans";
  src: url("fonts/JosefinSans-Bold.ttf");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "nunito";
  src: url("fonts/Nunito-Regular.ttf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "nunito";
  src: url("fonts/Nunito-Medium.ttf");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "nunito";
  src: url("fonts/Nunito-SemiBold.ttf");
  font-weight: 600;
  font-style: normal;
}

/*******************************************************************************
CSS Reset
*******************************************************************************/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*******************************************************************************
Page Content
*******************************************************************************/

:root {
  --light-text-color: #666;
  --main-text-color: #111;
  --nav-inactive: #9c9c9c;
}

.page {
  padding: 80px;
}

.page-content {
  margin: auto;
  width: 50%;
}

.main-title {
  font-family: "josefinSans", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.main-title a {
  color: var(--main-text-color);
  text-decoration: none;
}

.navbar {
  margin-bottom: 40px;
  text-align: center;
}

.nav-item {
  color: var(--main-text-color);
  font-family: "nunito", sans-serif;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 15px;
  text-decoration: none;
}

.nav-item--inactive {
  color: var(--nav-inactive);
}

.nav-item--inactive:hover {
  color: var(--main-text-color);
}

.about {
  margin: auto;
  text-align: center;
  width: 65%;
}

.about-image {
  margin: auto;
  margin-bottom: 40px;
  width: 100%;
}

.page-title {
  font-family: "josefinSans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 40px;
  text-align: center;
}

.page-text {
  color: var(--light-text-color);
  font-family: "nunito", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 20px;
  text-align: left;
}

.portfolio {
  margin: auto;
}

.project-title {
  font-family: "josefinSans", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.portfolio-section {
  margin-bottom: 40px;
}

/*
Responsive YouTube player, based on:
https://www.h3xed.com/web-development/how-to-make-a-responsive-100-width-youtube-iframe-embed
*/
.youtube {
  height: 0;
  margin-bottom: 30px;
  padding-bottom: 56.25%;
  position: relative;
  width: 100%;
}

.youtube > iframe {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/*******************************************************************************
Media Queries
*******************************************************************************/

@media (max-width: 1600px) {
  .page-content {
    width: 75%;
  }

  .about {
    width: 75%;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 40px;
  }

  .page-content {
    width: 90%;
  }

  .about {
    width: 75%;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 30px;
  }

  .page-content {
    width: 100%;
  }

  .about {
    width: 80%;
  }
}