/*
	jamieglmemes.css
	Main page styles
	JamieGL Memes
	Jamie Lievesley (jamie@jamiegl.co.uk)
	12 January 2017 19:30


/*
	COLOUR PALETTE {

	https://www.materialpalette.com/yellow/brown

	Primary: 		#FFEB3B;
	Dark primary: 	#FBC02D;
	Light Primary: 	#FFF9C4;
	Accent: 		#795548;

	Primary text: 	#212121;
	Secondary text: #727272;
	Divider: 		#B6B6B6;
	Text/Icons: 	#FFFFFF;
	}
*/

/* Links. */

button.a {
  display: inline;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
}
a:not(.nostyle):not(.min),
.a :not(.min) {
  color: #795548;
  text-decoration: none;
  font-weight: 300;
}
a:not(.nostyle):not(.min):not(:hover):link,
a:link .a:not(.min):not(:hover) {
  color: #795548;
}
a:not(.nostyle):not(.min):visited,
a:visited .a:not(.min):not(:hover) {
  color: #795548;
}
a:not(.nostyle):active,
a:active .a:not(:hover) {
  color: #795548;
}
a:not(.nostyle):hover,
.a:hover {
  color: #fbc02d !important;
  /*text-shadow: -1px -1px 1px #FFFFFF, 1px 1px 1px #FFFFFF;*/
}
/*
a:not(.nostyle):hover,
.a:hover {
	color: #FFFFFF !important;
	padding: 5px 10px;
	margin-left: -10px;
	margin-right: -10px;
	background-color: #795548;
	z-index: 20;
	border-radius: 5px;
}
*/
a:not(.nostyle).withIcon,
.a.withIcon {
  background-position: left center;
  background-size: auto 100%;
  background-clip: border-box;
  padding-left: 26px;
}

/* Main content. */

body,
h1 {
  font-family: Roboto, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 300;
}
body {
  background-color: #ffe0b2;
  padding: 30px;
  min-height: calc(100vh - 60px);
  position: relative;
}
h1 {
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.1;
  color: #212121;
  font-size: 36px;
}

header,
article.textbox {
  display: block;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  width: auto;
  max-width: 900px;
  background-color: #ffffff;
}
header {
  background-image: url("./../img/header310x150.png");
  background-repeat: no-repeat;
  background-size: 310px 150px;
  background-position: right center;
}
article.textbox {
  font-size: 1em;
  line-height: 1.4em;
}
article.textbox:first-of-type {
  margin-top: 30px;
}
article.textbox:not(:last-of-type) {
  margin-bottom: 30px;
}
.backButton {
  display: inline-block;
  width: 36px;
  height: 36px;
  padding: 0px !important;
  margin-right: 20px;
  margin-left: -4px;
  background-position: center center;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiBzdHlsZT0id2lkdGg6MjRweDtoZWlnaHQ6MjRweCIgdmlld0JveD0iMCAwIDI0IDI0Ij4NCjxwYXRoIGZpbGw9IiM3OTU1NDgiIGQ9Ik0yMCwxMVYxM0g4TDEzLjUsMTguNUwxMi4wOCwxOS45Mkw0LjE2LDEyTDEyLjA4LDQuMDhMMTMuNSw1LjVMOCwxMUgyMFoiIC8+DQo8L3N2Zz4=");
}
.backButton:hover {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiBzdHlsZT0id2lkdGg6MjRweDtoZWlnaHQ6MjRweCIgdmlld0JveD0iMCAwIDI0IDI0Ij4NCjxwYXRoIGZpbGw9IiNGQkMwMkQiIGQ9Ik0yMCwxMVYxM0g4TDEzLjUsMTguNUwxMi4wOCwxOS45Mkw0LjE2LDEyTDEyLjA4LDQuMDhMMTMuNSw1LjVMOCwxMUgyMFoiIC8+DQo8L3N2Zz4=");
}
.backButton + h1 {
  display: inline-block;
  height: 36px;
  line-height: 36px;
  vertical-align: super;
}
.textbox .vl::before {
  content: "\2002\007C\2002";
  color: #b6b6b6;
}
@media screen and (max-width: 715px) {
  header {
    background-image: url("./../img/header124x124.png");
    background-size: 124px 124px;
    padding-right: 124px;
  }
  .textbox .vl {
    display: block;
  }
  .textbox .vl::before {
    display: none;
  }
}

footer {
  display: block;
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: calc(100vw - 60px);
  text-align: center;
  color: #727272;
}
.footer-fill {
  display: block;
  visibility: hidden;
  position: static;
  margin-top: 30px;
}

/* Sections. (headers and grids) */

.container-section-grid {
  display: block;
  margin-top: 15px;
}
.container-section-grid + .container-section-grid {
  margin-top: 30px;
}

.container-section-grid .subtitle {
  display: block;
  color: #727272;
  margin-bottom: 20px;
}

.section-heading {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  max-width: 750px;
  font-size: 1.1em;
  font-weight: 300;
  color: #795548;
}
.section-heading.withIcon {
  background-position: 5px center;
  padding-left: 36px;
}
.section-heading .section-heading-more {
  float: right;
}
@media screen and (max-width: 500px) {
  .section-heading {
    margin-left: 0;
    margin-right: 0;
  }
}

.container-section-grid-inner {
  display: -webkit-flex;
  display: flex;
  /*float: left;*/
  margin: 0 auto;
  margin-left: -15px;
  margin-bottom: -15px;
  width: calc(100% + 30px);
  max-width: calc(100% + 30px);
  flex-flow: row wrap;
  justify-content: center;
  align-items: stretch;
  align-content: space-between;
  -webkit-flex-flow: row wrap;
  -webkit-justify-content: center;
}

.container-section-grid-inner a.nostyle {
  text-decoration: none;
  font-weight: 300;
  padding: 0;
  margin: 0;
  color: inherit !important;
}

.container-section-grid-inner div {
  display: inline-block;
  position: relative;
  padding: 20px;
  margin: 15px;
  background-color: #ffffff;
  color: #212121;
  width: 300px;
  max-width: 345px;
  vertical-align: top;
  float: left;
  box-shadow: 0 0 10px #b6b6b6;
  border-radius: 3px;

  flex-basis: 300px;
  flex-grow: 1;
  flex-shrink: 1;
  -webkit-flex-basis: 300px;
  -webkit-flex-grow: 1;
  -webkit-flex-shrink: 1;
}
.container-section-grid-inner > div:only-child {
  max-width: 750px;
}
.container-section-grid-inner div:hover {
  box-shadow: 0 0 15px #795548;
  cursor: pointer;
}

article h3 {
  font-size: 1.5em;
  font-weight: 300;
  margin: 0;
  margin-bottom: 5px;
  color: #212121;
}

.container-section-grid-inner p {
  margin-bottom: 10px;
}

.container-section-grid-inner img {
  display: block;
  border: 0;
  width: 256px;
  height: auto;
  max-width: 100%;
  margin: auto;
  margin-bottom: 0;
  padding-top: 20px;
}
.container-section-grid-inner img:-moz-broken {
  height: auto;
}

.container-section-grid-inner h3.withIcon {
  vertical-align: bottom;
  line-height: 32px;
}

.container-section-grid-inner h3.withIcon::before {
  display: inline-block;
  content: "M";
  color: transparent;
  margin-right: 10px;
  height: 32px;
  width: 32px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 32px 32px;
}

.container-section-grid-inner span.a {
  font-weight: normal;
}

/* Rearange tiles that are very wide. */
@media screen and (min-width: 750px) {
  .container-section-grid-inner > div:only-child {
    min-height: 286px;
  }

  .container-section-grid-inner > div:only-child p,
  .container-section-grid-inner > div:only-child p ~ a,
  .container-section-grid-inner > div:only-child p ~ .a {
    max-width: calc(100% - 286px);
    float: left;
    clear: left;
  }
  .container-section-grid-inner > div:only-child img {
    float: right;
    clear: right;
    position: absolute;
    right: 15px;
    top: 15px;
  }
}

/* Expand limited tile sizes when only room for one tile per row. */
@media screen and (max-width: 865px) {
  .container-section-grid-inner > div {
    max-width: 750px;
  }
}

/* Icons on grid. */

#project-danktube h3::before {
  background-image: url("./../img/project/danktube32.png");
}
#project-tapcoms h3::before,
#project-piratehack h3::before {
  background-image: url("./../img/project/tapcoms32.png");
}
#project-kiwi h3::before {
  background-image: url("./../img/project/kiwi32.png");
}
#project-invadoggers h3::before {
  background-image: url("./../img/project/invadoggers32.png");
}
#project-reddithadoopgw h3::before {
  background-image: url("./../img/project/reddit32.png");
}
#project-redditdanktube h3::before {
  background-image: url("./../img/project/reddit32.png");
}
