@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,600,700&display=swap');

@font-face {
	font-family: "FontAwesome";
	font-weight: normal;
	font-style: normal;
	src:
		url("../fonts/fa-solid-900.woff2") format("woff2"),
		url("../fonts/fa-solid-900.woff") format("woff");
}

@font-face {
	font-family: "FontAwesomeBrands";
	font-weight: normal;
	font-style: normal;
	src:
  url("../fonts/fa-brands-400.woff2") format("woff2"),
  url("../fonts/fa-brands-400.woff") format("woff");
}

body {
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  font-family: Raleway, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  background: #fff;
  color: #425e88;
  font-size: 10.5pt;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: .2pt;
}

::selection {
  color: #fff;
  background: #6461f6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}

a:active,
a:hover {
  outline-width: 0
}

button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
  margin: 0
}

h3 {
  color: #a7bed1;
  font-size: 2.0rem;
  letter-spacing: .5pt;
  margin: 0;
  padding: 1.5rem 0 1.25rem;
}

h4 {
  color: #39547a;
  font-size: 1.3rem;
  font-weight: 300;
  padding: 0.5rem 0;
  margin: 0;
}

a {
  color: #3266b4;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: #264574;
}

h3 a {
  color: #39547a;
  font-weight: 700;
}

h3 a:hover {
  color: #5974ca;
}

.main {
  margin: 0 auto;
  max-width: 1160px;
  display: flex;
  padding: 12px;
}

.content {
  flex: 1 1 auto;
}

.preview {
  flex: 0 0 auto;
}

.robots {
  background: url('../img/robots.png') no-repeat center center;
  background-size: contain;
  height: 260px;
  width: 311px;
}

.codenames {
  background: url('../img/codenames.png') no-repeat center center;
  background-size: contain;
  height: 260px;
  width: 311px;
}

.mainsail {
  background: url('../img/mainsail-dark.png') no-repeat center center;
  background-size: contain;
  height: 260px;
  width: 311px;
}

.plant-calendar {
  background: url('../img/plant-calendar.png') no-repeat center center;
  background-size: contain;
  height: 260px;
  width: 311px;
}

.fiadb-demo {
  background: url('../img/fiadb-demo.png') no-repeat center center;
  background-size: contain;
  height: 260px;
  width: 311px;
}

.thesis-img {
  background: url('../img/bloch.png') no-repeat center center;
  background-size: contain;
  height: 260px;
  width: 311px;
}

.container {
  margin: 0;
}

.header {
  background-image: linear-gradient(69.9deg, rgba(76, 79, 106, 1) 3.2%, rgba(118, 124, 163, 1) 97.6%);
  box-shadow: 0 5px 15px 2px rgba(0, 0, 0, .1), 0 -2px 1px inset rgba(255, 255, 255, .7);
}

.flex {
  display: flex;
  align-items: center;
  padding-top: 2.0rem;
  padding-bottom: 2.0rem;
}

.header__main {
  flex: 1 1 auto;
  padding: 0 1.0rem 0 0;
}

.header__links {
  flex: 0 0 auto;
  align-self: flex-end;
  display: flex;
  align-items: center;
}

.header__links > a {
  margin-right: 0.75rem;
}

.header h1,
.header h2 {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  font-weight: 300;
}

h1 {
  margin: 0;
  padding: 0.25rem 0 0.75rem;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
  padding: 0.5rem 0 0 0;
  opacity: .75;
}

.header a {
  margin-left: 0.5rem;
  font-weight: unset;
}

.section {
  padding: 2.0rem 2.0rem 3.0rem 2.0rem;
}

.section:nth-of-type(even) {
  background: #f6f8fb;
}

.icon::after {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-size: 32px;
  color: #fff;
  font-family: "FontAwesome";
  transition: .2s ease-in-out color;
}

.icon--github::after {
  font-family: "FontAwesomeBrands";
  content: '\f09b';
}

.icon--envelope::after {
  content: '\f0e0';
}

.icon--cv::after {
  content: '\f2bb';
}

.icon:hover::after {
  color: #fdd99a;
}


/********** Tooltips ***********/
/* START TOOLTIP STYLES */
[data-tooltip] {
  position: relative;
}

/* Applies to all tooltips */
[data-tooltip]::before,
[data-tooltip]::after {
  text-transform: none;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
  mask: none;
}

[data-tooltip]::before {
  content: '';
  border: 5px solid transparent;
  z-index: 1001;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  text-align: center;
  min-width: 2.5em;
  max-width: 30em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: .5rem;
  border-radius: .2rem;
  background: #2c2d2f;
  color: #d7d7d7;
  font-size: 1.0rem;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .8);
  z-index: 1000;
  font-weight: 200;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  display: block;
}

[tooltip='']::before,
[tooltip='']::after {
  display: none !important;
}

[data-tooltip]:not([flow])::before,
[data-tooltip][flow^="up"]::before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: #333;
}

[data-tooltip]:not([flow])::after,
[data-tooltip][flow^="up"]::after {
  bottom: calc(100% + 5px);
}

[data-tooltip]:not([flow])::before,
[data-tooltip]:not([flow])::after,
[data-tooltip][flow^="up"]::before,
[data-tooltip][flow^="up"]::after {
  left: 50%;
  transform: translate(-50%, -.5em);
}

[data-tooltip][flow^="down"]::before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: #333;
}

[data-tooltip][flow^="down"]::after {
  top: calc(100% + 5px);
}

[data-tooltip][flow^="down"]::before,
[data-tooltip][flow^="down"]::after {
  left: 50%;
  transform: translate(-50%, .5em);
}

[data-tooltip][flow^="left"]::before {
  top: 50%;
  border-right-width: 0;
  border-left-color: #333;
  left: calc(0em - 5px);
  transform: translate(-.5em, -50%);
}

[data-tooltip][flow^="left"]::after {
  top: 50%;
  right: calc(100% + 5px);
  transform: translate(-.5em, -50%);
}

[data-tooltip][flow^="right"]::before {
  top: 50%;
  border-left-width: 0;
  border-right-color: #333;
  right: calc(0em - 5px);
  transform: translate(.5em, -50%);
}

[data-tooltip][flow^="right"]::after {
  top: 50%;
  left: calc(100% + 5px);
  transform: translate(.5em, -50%);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
  to {
    opacity: .9;
    transform: translate(-50%, 0);
  }
}

@keyframes tooltips-horz {
  to {
    opacity: .9;
    transform: translate(0, -50%);
  }
}

[data-tooltip]:not([flow]):hover::before,
[data-tooltip]:not([flow]):hover::after,
[data-tooltip][flow^="up"]:hover::before,
[data-tooltip][flow^="up"]:hover::after,
[data-tooltip][flow^="down"]:hover::before,
[data-tooltip][flow^="down"]:hover::after {
  animation: tooltips-vert 200ms ease-out forwards;
  animation-delay: .2s;
}

[data-tooltip][flow^="left"]:hover::before,
[data-tooltip][flow^="left"]:hover::after,
[data-tooltip][flow^="right"]:hover::before,
[data-tooltip][flow^="right"]:hover::after {
  animation: tooltips-horz 200ms ease-out forwards;
  animation-delay: .2s;
}



@media only screen and (max-width: 700px) {

  .main {
    flex-wrap: wrap;
  }

  ul {
    padding-left: 1.0rem;
  }
  
  .section {
    padding: 0;
  }

  .content {
    flex: 1 1 100%;
  }
  
  .header h1 {
    padding-bottom: 0;
  }
  
  .header h2 {
    font-size: 0.85rem;
    line-height: 1.15rem;
  }
  
  .header h2 em {
    font-style: normal;
  }

  .flex {
    padding-top: 1.5rem; 
    padding-bottom: 1.5rem;
  }
  
  .preview {
    flex: 1 1 100%;
    margin: auto;
    display: flex;
    justify-content: center;
  }
  
  .header__links {
    margin: 1.0rem auto 0;
  }

  .mobile-hide {
    display: none;
  }

}