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, div {
	display: block;
}
body {
	line-height: 1.4rem;
  font-size: 1.1rem;
  font-family: Ubuntu;
  background-color: #EEE;
}
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;
}

pre {
  white-space: pre-line;
}

b {
  font-weight: bold;
}

.sidebar a {
  text-decoration: underline;
  color: #ffd88f;
}

.content a {
  text-decoration: underline;
  color: rgb(1, 102, 190);
}

/* ubuntu-regular - latin */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: local('Ubuntu Regular'), local('Ubuntu-Regular'),
       url('/ubuntu-v13-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('/ubuntu-v13-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* ubuntu-700 - latin */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  src: local('Ubuntu Bold'), local('Ubuntu-Bold'),
       url('/ubuntu-v13-latin-ext_latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('/ubuntu-v13-latin-ext_latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

h1 {
  font-size: 2.5rem;
  line-height: 2.5rem;
  display: inline;
  font-weight: bold;
}

h2 {
  font-size: 2rem;
  line-height: 2rem;
  display: inline;
  font-weight: bold;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.5rem;
  display: inline;
  font-weight: bold;
}

sub {
  font-size: 1rem;
  display: inline;
  opacity: 0.7;
}

justify {
  display: block;
  text-align: justify;
}

.bg-blue {
  background-color: #003D74;
}
.darken-10 {
  background-color: rgba(0, 0, 0, 0.1);
}
.darken-20 {
  background-color: rgba(0, 0, 0, 0.2);
}
.blocky {
  padding: 0.5rem 2rem;
}

.text-black {
  color: #000;
}

.text-white {
  color: #FFF;
}

.padding-top-1 {
  padding-top: 1rem;
}

.padding-bottom-2 {
  padding-bottom: 2rem;
}

.main-container {
  display: grid;
  width: 80rem;
  min-height: 100vh;
  margin: auto;
  grid-template-columns: 20rem 1fr;
  grid-template-rows: 16rem repeat(auto);
  grid-auto-columns: 20rem 1fr;
  grid-auto-flow: row;
  grid-template-areas:
    "header headertext"
    "sidebar content"
    "footer footer";
  grid-column-gap: 0rem;
  grid-row-gap: 0rem;
  padding-top: 2rem;
  box-sizing: border-box;
  padding-left: 2rem;
  justify-items: stretch;
  margin-bottom: 2rem;
}

.grid-header {
  background: #003D74;
  color: #FFF;
  grid-area: header;
  padding-left:2rem;
}

.grid-headertext {
  background: #FFF;
  grid-area: headertext;
  padding: 2rem;
}

.header-image {
  border: 0.25rem solid #FFF;
  position: relative;
  width: 15.5rem;
  top: -1rem;
}

.experience-container {
  margin-top: 2rem;
  padding: 1rem;
  position: relative;
  background-color: #FFF;
  display: block;
  margin-left: 1rem;
  margin-right: 2rem;
  border-style: solid;
  border-color: #EEE;
  border-width: 0.125rem 0 0 0 ;
}

.experience-container-text {
  padding-right: 3rem;
  line-height: 150%;
}

.experience-image {
  background-color: #FFF;
  border: 0.25rem solid transparent;
  width: 10rem;
  position: relative; 
  top: -2rem;
  display: block;
  margin-bottom: -1rem;
}

.sidebar {
  background: #003D74;
  color: #FFF;
  grid-area: sidebar;
}

.content {
  background: #FFF;
  color: #000;
  grid-area: content;
  padding-bottom: 2rem;
}

.tech-container {
  position: absolute;
  width: 6px;
  top: 0.5rem;
  right: 3rem;
  display: block;
}

.tech {
  background-color: #FAFAFA;
  border: 0.25rem solid transparent;
  width: 3rem;
  padding: 0.5rem;  
  margin-bottom: 0.25rem;
  position: relative;
}

.tech > div {
  width: 3rem;
  height: 3rem;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;  
}

.float-right {
  float: right;
}

.tech.react > div {
  background-image: url("react.png");
}

.tech.jira > div {
  background-image: url("jira.png");
}

.tech.bitbucket > div {
  background-image: url("bitbucket.png");
}

.tech.svn > div {
  background-image: url("svn-square.jpg");
}

.tech.php > div {
  background-image: url("php.png");
}

.tech.csharp > div {
  background-image: url("Csharp.png");
}

.tech.unity > div {
  background-image: url("unity.png");
}

.tech.mysql > div {
  background-image: url("mysql.png");
}

.tech.java > div {
  background-image: url("java.png");
}

.tech.kafka > div {
  background-image: url("kafka.png");
}

.tech.javascript > div {
  background-image: url("js.svg");
}

.tech.github > div {
  background-image: url("github.svg");
}

.tech.redux > div {
  background-image: url("redux.png");
}

.tech.debian > div {
  background-image: url("debian.svg");
}

.tech.node {
  background-color: #333;
}

.tech.node > div {
  background-image: url("nodejs.svg");
}

.tech .popup {
  display: none;
  border-width: 0.25rem 0 0.25rem 0.25rem;
  border-style: solid;
  border-color: transparent;
  background: #FFF;
  color: #000;
  position: absolute;
  right: 4rem;
  top: -0.25rem;
  width: 8rem;
  height: 4rem;
  z-index: 10;
  text-align: center;
  vertical-align: middle;
  justify-content: center;
  align-self: center;
  flex-direction: column;
}

.tech:hover .popup {
  display: flex;
}

.large {
  font-size: 1.3rem;
  line-height: 1.6rem;
}

@media (max-width: 1200px) and (min-width: 900px) { 
  .main-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .header-image {
    top: 0;
  }
  
}

@media (max-width: 900px) { 
  .main-container {
    padding: 2rem  0 0 0;
    width: 100%;
    margin: 0;
    grid-template-columns: 100%;
    grid-template-rows: repeat(auto);
    grid-auto-columns: 100%;
    grid-auto-flow: row;
    grid-template-areas:
      "header"
      "headertext"
      "sidebar"
      "content"
      "footer";
  }
  
}

@media (max-width: 500px) { 
  .tech {
    display:none;
  }

  .experience-container {
    padding: 1rem;
    margin-right: 0;
    margin-left: 0;
    border-width: 0.25rem 0 0.25rem 0;
  }
}

@page {
  size: A4 portait;
}

.print-show {
  display: none;
}

@media print {
  .main-container {
    width: 100%;
    min-height: inherit;
    padding-left:0;
  }

  .print-show {
    display: inherit;
  }

  .grid-header {
    background-color: #FFF;
    color: #000;
  }

  .sidebar {
    background-color: #FFF;
    color: #000;
    width: 100%;
    padding-bottom: 2rem;
    display: block;
  }

  .sidebar div > span {
    display: inline-block;
    width: 24.9%;
    float: left;
  }

  .sidebar a {
    color: inherit;
  }

  body, html {
    background-color: #FFF;
    padding: 0;
    margin: 0;
    font-size: 1rem;
  }

  .print-hidden {
    position: absolute; 
    width: 0px; 
    height: 0px; 
    border: 0px;
    opacity: 0;
  }

  .main-container {
    display: inline;
  }

  .grid-header {
    display: none;
  }

  .grid-headertext {
    display: block;
  }

  .content {
    display: block;
    width: 100%;
  }

  .darken-10 {
    background-color: transparent;
  }
  .darken-20 {
    background-color: transparent;
  }

  .experience-container-text {
    padding-right: 0;
    line-height: 150%;
  }

  h2 {
    font-size: 1.5rem;
  }

  .experience-container {
    padding-top: 2rem;
    page-break-inside: avoid;
  }


  .keep-together {
    page-break-inside: avoid;
  }
}