/*  ======================================================================
    GENERAL TAGS
    ====================================================================== */
html {
  position: relative;
  min-height: 100%;
}

body {
  background: url('../images/global/background-main-tile-alt.jpg');
  color: #111;
  font-family: 'Roboto', sans-serif;
}

h1, h2 {
  font-family: 'Dosis', sans-serif;
  font-weight: normal;
  text-transform: uppercase;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #111;
}

a:hover {
  text-decoration: none;
}

.lowercase {
  text-transform: lowercase;
}

body #main {
  margin-bottom: 58px; /* For stopping overlap when clamping footer to bottom of screen */
}





/* ----------------------------------------------------------- 
   GLOBAL NAV LIST STYLING
   ----------------------------------------------------------- */

nav ul li {
  display: inline-block;
  margin: 0px 6px;
  font-weight: bold;
}

nav ul li a,
.content-title-text a,
#main.item .item-header a,
#main.item #item-meta a {
  text-decoration: none;
}

nav ul li a:hover,
.content-title-text a:hover,
#main.item .item-header a:hover,
#main.item #item-meta a:hover {
  text-decoration: underline;
}






/* ----------------------------------------------------------- 
   SECTIONAL COLOURS
   ----------------------------------------------------------- */

body .link-home {
  color: #CCC;
}

body .home .content-title {
  color: black;
  background-color: #999;
}




body .link-projects,
body #content-listing .projects .content-listing-text .content-listing-text-meta,
body #main.item.projects #item-updates li header .update-meta {
  color: red !important;
}

body .projects .content-title {
  background-color: red;
}






body .link-works,
body #content-listing .works .content-listing-text .content-listing-text-meta,
body #main.item.works #item-updates li header .update-meta {
  color: #00C300 !important;
}

body .works .content-title {
  background-color: #00C300;
}








body .link-code,
body #content-listing .code .content-listing-text .content-listing-text-meta,
body #main.item.code #item-updates li header .update-meta {
  color: #0096FF !important;
}

body .code .content-title {
  background-color: #0096FF;
}






body .link-other,
body #content-listing .other .content-listing-text .content-listing-text-meta,
body #main.item.other #item-updates li header .update-meta {
  color: #C0F !important;
}

body .other .content-title {
  background-color: #C0F;
}







/*  ======================================================================
    GLOBAL SHOWCASE STYLING
    ====================================================================== */
body header#showcase {
  background: url('../images/global/background-showcase-darker.jpg');
  
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
  
  color: white;
  
}

body header#showcase #showcase-inner {
	display: flex;
	
	width: 320px;
	margin: 0 auto;
	overflow: hidden;
}




body header#showcase #showcase-inner #showcase-logo-container {
  display: block;
  flex: 0 0 80px;
  height: 80px;
}

body header#showcase #showcase-inner #showcase-logo-container #showcase-logo {
  width: 100%;
  height: auto;
}




body header#showcase #showcase-inner #showcase-banner {
  padding: 15px;
  padding-left: 7px;
  padding-bottom: 4px;
  
  flex: 1 0 auto;
}

body header#showcase #showcase-inner #showcase-banner h1 {
  margin: 0;
  line-height: 20px;
  font-size: 18px;
}



body header#showcase #showcase-inner #showcase-links {
  font-size: 14px;
  
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid white;
}

body header#showcase #showcase-inner #showcase-links li:first-child {
  margin-left: 0px;
}

body header#showcase #showcase-inner #showcase-links li:last-child {
  margin-right: 0px;
}

body header#showcase #showcase-inner #showcase-links li h2 {
  font-size: 14px;
  font-weight: bold;
  
  margin: 0;
}

body header#showcase #showcase-inner #showcase-links li ul {
  display: none;
  margin-top: 6px;
}

body header#showcase #showcase-inner #showcase-links li ul li {
  display: block;
  margin: 0;
  font-weight: normal;
}

body header#showcase #showcase-inner #showcase-links li ul li .showcase-link-more {
  text-transform: lowercase;
}






/*  ======================================================================
    GLOBAL FOOTER STYLING
    ====================================================================== */

body footer {
  position: absolute;
  bottom: 0;
  
  width: 100%;
  height: 38px;
  
  background: url('../images/global/background-showcase-darker.jpg');
  color: #AAA;
  
  font-family: 'Dosis', sans-serif;
  font-size: 12px;
  
  text-transform: uppercase;
  text-align: center;
  
  padding: 9px 0px;
}

body footer p {
  margin: 0;
  padding: 0;
  
  display: inline-block;
}

body footer p + p:before {
  content: " • "
}

body footer a {
  color: #CCC;
  text-decoration: none;
}

body footer a:hover {
  text-decoration: underline;
}

body footer #footer-links {
  margin-bottom: 6px;
}

body footer #footer-links ul li {
  margin: 0px 3px;
}

body footer #footer-text .separator {
  margin: 0px 3px;
}








/*  ======================================================================
    GLOBAL CONTENT TITLE STYLING
    ====================================================================== */
body .content-title {
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
  color: #EEE;
}

body .content-title .content-title-inner {
	width: 320px;
	margin: 0 auto;
}

body .content-title h3 {
  font-size: 18px;
  font-weight: normal;
  
  margin: 0px;
  padding: 8px;
  padding-left: 16px;
  
  display: inline-block;
  vertical-align: bottom;
}

body .content-title a {
  color: #EEE;
  font-weight: normal;
}

body .content-title nav {
  display: inline-block;
  vertical-align: bottom;
}

body .content-title .content-title-filters {
  font-size: 12px;
  padding: 9px 0px;
}

body .content-title .content-title-filters li {
  display: inline-block;
  margin: 0px 3px;
  font-weight: normal;
}






/*  ======================================================================
    GLOBAL TAG STYLING
    ====================================================================== */

body #main #content-listing .content-listing-text .content-listing-text-tag-list,
body #main.item #item-tags #item-tag-list {
  margin-top: 4px;
}

body #main #content-listing .content-listing-text .content-listing-text-tag-list li,
body #main.item #item-tags #item-tag-list li {
  display: inline-block;
  vertical-align: middle;
  
  color: #EEE;
  background-color: #666;
  background-color: rgba(0, 0, 0, 0.5);
  
  border-radius: 3px;
  padding: 0px 5px;
  padding-top: 1px;
  
  height: auto;
  
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
}







/*  ======================================================================
    GLOBAL LISTING STYLING
    ====================================================================== */

body #main #content-listing {
  margin: 2px 0px;
}

body #main #content-listing li {
  margin: 2px 0px;
  height: 100px;
  
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
}

body #main #content-listing li a {
  background-color: #CCC;
  background-color: rgba(225, 225, 225, 0.93);
  
  width: 100%;
  height: 100%;
  
  display: block;
  overflow: hidden;
  text-decoration: none;
}

body #main #content-listing li a:hover {
  background-color: black;
  background-color: rgba(215, 215, 215, 0.93);
  
  text-decoration: none;
}

body #main #content-listing .content-listing-image {
  width: 33.3%;
  height: auto;
  
  float: left;
  margin-right: 12px;
}

body #main #content-listing .content-listing-text {
  margin: 8px 16px;
  font-size: 12px;
}

body #main #content-listing .content-listing-text h4 {
  margin: 0;
  padding: 0;
  
  font-size: 15px;
  font-weight: normal;
}

body #main #content-listing .content-listing-text .content-listing-text-meta {
  font-size: 13px;
}

body #main #content-listing .content-listing-text .content-listing-text-meta-top {
  margin-bottom: 4px;
}

body #main #content-listing .content-listing-text .content-listing-text-tags {
  display: none;
}

body #main #content-listing .content-listing-text .content-listing-text-summary {
  color: #666;
  font-family: 'Roboto', sans-serif;
  text-transform: none;
}

body #main #content-listing .content-listing-text .content-listing-text-summary p {
  margin: 4px 0px;
}










/*  ======================================================================
    HOME STYLING
    ====================================================================== */

body#home #main {
  font-size: 13px;
}

body#home #main .main-section {
  margin: 0px;
}

body#home #main #updates {

}

/* Hide element 7 + 8 (displayed over 960px wide) */
body#home #main #updates #content-listing li:last-child,
body#home #main #updates #content-listing li:nth-last-child(2) {
  display: none;
}

body#home #main #about {
  background-color: #111;
  background-color: rgba(0, 0, 0, 0.75);
  color: #CCC;
  
  margin-top: 8px;
}

body#home #main #about a {
  color: #CCC;
}

body#home #main #about #about-banner {
  overflow: hidden;
}

body#home #main #about #about-banner .about-image {
  width: 100%;
  height: auto;
  
  display: block;
  float: left;
}

body#home #main #about #about-body {
  padding: 6px;
}

body#home #main #about #about-body p {
  margin: 0;
  padding: 6px;
}









/*  ======================================================================
    LISTING STYLING
    ====================================================================== */
body #main.listing .content-title .content-title-filters li:hover {
  text-decoration: underline;
  cursor: pointer;
}









/*  ======================================================================
    ITEM STYLING
    ====================================================================== */

body #main.item .item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	
	margin: 16px;
	margin-bottom: 0px;
	border-bottom: 1px solid #111;
}

body #main.item .item-header h3 {
  margin: 0;
  color: #111;
  
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
  
  padding-bottom: 4px;
}

body #main.item .item-header h3 .title-small {
  font-size: 15px;
}

body #main.item .item-section {
  margin-bottom: 4px;
}



body #main.item #item-meta {
  margin: 8px 16px;
  
  font-size: 13px;
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
}

body #main.item #item-meta .item-meta-details-tools {
  color: #AAA;
}

body #main.item .item-header #item-header-links li,
body #main.item #item-meta #item-meta-links li {
  display: inline-block;
}

body #main.item #item-gallery {
  overflow: hidden;
  
  text-align: center;
  margin: 16px;
  margin-bottom: 0px;
}

body #main.item #item-content {
  margin-bottom: 8px;
  padding: 8px;
  font-size: 14px;
}

body #main.item #item-content p {
  margin: 0;
  padding: 8px;
}

body #main.item #item-content ul {
  list-style: disc;
  margin: 0px 32px;
}

body #main.item #item-content blockquote {
  margin: 0px 16px;
}




body #main.item #item-media {
  margin: 0px 16px;
  padding-bottom: 16px;
  
  text-align: center;
}

body #main.item #item-media iframe {
  width: 100%;
  border: 1px solid #CCC;
}

body #main.item #item-media.item-media-video {
  position: relative;
  height: 0;
  
  margin-top: 18px;
	padding-bottom: 56.25%; /* 16:9 */
}

body #main.item #item-media.item-media-video iframe {
  position: absolute;
  border: none;
  
	top: 0;
	left: 0;
	
	height: 100%;
}


body #main.item #item-tags {
  display: none;
}

body #main.item #item-tags #item-tag-list {
  margin: 0px 16px;
  padding-bottom: 16px;
  
  font-size: 12px;
  
  
}

body #main.item #item-tags #item-tag-list li {
  margin: 2px 0px;
}



body #main.item #item-special {
  margin: 0px 16px;
}

body #main.item #item-special h4 {
  font-family: 'Dosis', sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  
  margin: 0;
  padding: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #888;
}

body #main.item #item-special ul,
body #main.item #item-special li {
  margin-top: 0px;
}

body #main.item #item-special li {
  margin-bottom: 3px;
  overflow: hidden;
  
  background-color: #CCC;
  background-color: rgba(225, 225, 225, 0.93);
}

body #main.item #item-special li h4 {
  border-bottom: none;
  padding: 0;
  
  font-style: italic;
}

body #main.item #item-special li a {
  display: inline;
  color: #F00;
}

body #main.item #item-special li a:hover {
  text-decoration: underline;
}

body #main.item #item-special .content-listing-image {
  width: 35%;
}







body #main.item #item-nav-section {
  position: relative;
  
  color: #888;
  background-color: #DDD;
  background-color: rgba(220, 220, 220, 0.85);
  
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  
  padding: 0 16px;
  
  overflow: hidden;
  text-align: center;
}

body #main.item #item-nav-section .nav-title {
  padding: 8px;
}

body #main.item #item-nav-section a {
  position: absolute;
  padding: 0 16px;
  padding-top: 8px;
  overflow: hidden;
  
  top: 0;
  background-color: #DDD;
  background-color: rgba(225, 225, 225, 0.85);
  
  text-decoration: none;
}

body #main.item #item-nav-section a:hover {
  text-decoration: underline;
}

body #main.item #item-nav-section a.item-nav-prev {
  right: 0;
  text-align: right;
}

body #main.item #item-nav-section a.item-nav-next {
  left: 0;
  text-align: left;
}
