/*
COLOR PALETTE
https://coolors.co/f7fff7-343434-2f3061-ffe66d-a1c6d7
#F7FFF7 - almost white
#343434 - dark gray - almost black
#2F3061 - blue dark
#565656 - lighter gray
#A1C6D7 - blue light
*/

/*
Font list:
Merriweather boldface 700 - AEON GENESIS
Teko boldface 400 - News headers
Source sans pro - main text

font-family: 'Merriweather', serif;
font-family: 'Source Sans Pro', sans-serif;
font-family: 'Teko', sans-serif;
*/

/* Global styles
------------------------------------*/

html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
  color: #F7FFF7;
  background: #343434;
  margin: 0;
  padding: 0;
  font-family: 'Source sans pro', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: #00FF00;
  text-decoration: none;
}


/* Header stuff
------------------------------------*/
header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /*background-image: url(../../media/header/cavestory.jpg);*/
  position: relative;
  height: 168px;
}

header a {
  color: #F7FFF7;
  /*padding: 5px;*/
  /*margin: 0;*/
  /*display: inline-block;*/
  /*text-decoration: none;*/
  /*margin-left: -3.5px;*/
  z-index: 9999;
}

/*header a:hover {
  background-color: #3e8e41;
}*/

.projects-dropdown-button {
  font-family: 'Source sans pro', sans-serif;
  /*color: #F7FFF7;*/
  /*background: #454E61D0;*/
  /*padding: 5px;*/
  border: none;
  margin-left: -3px;
  margin-right: 0px;
}

.lhs {
    font-family: 'Merriweather', serif;
  	font-weight: 900;
    font-size: 40px;
	  margin: 10px;
    text-align: left;
    min-width: 325px;
/*    -webkit-text-stroke-width: 2.2px;
    -webkit-text-stroke-color: black;*/
    position: absolute;
}

@media screen and (max-width: 420px) {
  .lhs {
    /*font-size: 31px; */
    min-width: 400px;
    zoom: 0.75;
    -moz-transform: scale(0.75);
  }
}

.lhs a {
  background-color: #00000000;
  -webkit-text-stroke-width: 2.2px;
  -webkit-text-stroke-color: black;
  text-shadow: #202020 3px 3px 1px, black 0 0 2px;
}

.lhs a:hover {
  background-color: #00000000;
/*  -webkit-text-stroke-width: 2.2px;
  -webkit-text-stroke-color: black;*/
}

.rhs {
    font-family: 'Source Sans Pro', sans-serif;
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    background: #454E61F0;
    padding-left: 3px;
}

@media screen and (max-width: 420px) {
  .rhs {
    /*font-size: 31px; */
    zoom: 0.80;
    -moz-transform: scale(0.8);
  }
}

/* The container <div> - needed to position the dropdown content */
.projects-dropdown {
  position: relative;
  display: inline-block;
}

.projects-dropdown-button {
  padding-right: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 2px;
}

/* Dropdown Content (Hidden by Default) */
.projects-dropdown-content {
  left: -3px;
  /*margin-left: 3px;*/
  /*margin-right: 3px;*/
  background: #454E61F0;
  display: none;
  position: absolute;
  min-width: 110px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.projects-dropdown-content a {
  padding-left: 3px;
  padding-right: 3px;
  text-align: left;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.projects-dropdown-content a:hover {
  background-color: #3e8e41F0;
}

.header-single-link {
  /*padding-left: 5px;*/
  position: relative;
  display: inline-block;
}

.header-single-link:hover {
  background-color: #3e8e41F0;
}

/* Show the dropdown menu on hover */
.projects-dropdown:hover .projects-dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.projects-dropdown:hover .projects-dropdown-button {background-color: #3e8e41;}



/* News page content
------------------------------------*/

.news-content {
  display: grid;
  grid-template-columns: 3fr minmax(300px, 1fr);
  position: relative;
  background: #343434;
  align-content: right;
}

@media screen and (max-width: 620px) {
  .news-content {
    grid-template-columns: 1fr;
  }
}
.news-separator {
  margin-top: -16px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 40px;
}


.news-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr 10fr 1fr 1fr;
  position: relative;
}

.news-pagination-first {
  grid-column: 1;
  text-align: left;
  font-size: 24px;
}

.news-pagination-prev {
  grid-column: 2;
  text-align: left;
  font-size: 24px;
}

.news-pagination-pages {
  grid-column: 3;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.news-pagination-next {
  grid-column: 4;
  text-align: right;
  font-size: 24px;
}

.news-pagination-last {
  grid-column: 5;
  text-align: right;
  font-size: 24px;
}

/* Spotlight stuff
------------------------------------*/
.spotlight {
  position: sticky;
  top: 0px;
  align-self:flex-start;
  grid-column: 2;
  padding: 10px;
  font-size: 14px;
  justify-self: right;
  margin-left: auto;
  width: 100%;
}

@media screen and (max-width: 620px) {
  .spotlight {
    position: relative;
    align-self:auto;
    grid-column: 1;
    grid-row: 2;
  }
}


.spotlight-title {
  align-self: center;
  justify-self: center;
  text-align: center;
  font-size: 16px;
}

.spotlight-game img {
  /*height: 80%;*/
  margin: 10px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.spotlight-info {
  line-height: 1.2;
  margin-right: auto;
  margin-left: auto;
}

.spotlight-info table {
  width: 100%;
}

.spotlight-info td {
    /*width: 90%;*/
    white-space: nowrap;
}

.spotlight-donate-button img {
  display: block;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
}

/* News stuff
------------------------------------*/
.news {
  grid-column: 1;
  margin: 15px;
  padding: 15px;
}

.news .title {
  font-family: 'Teko', sans-serif;
  font-size: 40px;
  line-height: 1;
}

@media screen and (max-width: 620px) {
.news .title {
  font-size: 32px;
}}

.news .subtitle {
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  line-height: 1;
}

.news .subtitle a {
  padding: 5px;
  margin: -5px;
}


/* Project details page content
------------------------------------*/

.project-content {
  display: grid;
  grid-template-columns: 48% 4% 48%;
  position: relative;
  background: #343434;
}

.project-name {
/*  grid-column-start: 1;
  grid-column-end: 4;*/
  grid-row: 1;
  justify-self: left;

  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 32px;
  /*position: absolute;*/
  bottom: 5px;
  /*max-width: calc(100% - 480px);*/
  /*max-width: calc(100vw * .45);*/
  line-height: 1;
  text-align: left;
  max-width: 90vw;
  min-width: 325px;
  text-shadow: #202020 3px 3px 1px, black 0 0 2px;
  -webkit-text-stroke-width: 1.0px;
  -webkit-text-stroke-color: black;
  /*background: #454E61C0;*/
}


.project-divider {
  grid-column: 2;
  grid-row: 1;
  content: "";
  background-color: #F7FFF7;
  width: 1px;
  height: 90%;
  align-items: center;
  vertical-align: center;
  justify-self: center;
  margin: auto;
}

.project-metadata {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  font-size: 14px;
  margin: auto 0;
  padding: 15px;
  justify-self: left;
  justify-content: left;
  max-height: 600px;
}

.project-metadata table {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.project-metadata td {
    width: 90%;
    white-space: nowrap;
}


.project-content-bottom {
  display: grid;
  grid-template-columns: 3fr 2fr;
  position: relative;
  background: #343434;
  align-content: right;
}

.project-info {
  grid-column: 1;
  margin-left: 25px;
  padding: 0 25px;
}

.project-news {
  grid-column: 2;
  margin-left: 25px;
  margin-right: 25px;
}
.project-news h2 {
  font-family: 'Teko', sans-serif;
  font-weight: 200;
  font-size: 30px;
  margin-top: 14px;
  margin-bottom: -5px;
}


.project-content-bottom {
  grid-template-columns: 1fr;
}

/* Carousel stuff
------------------------------------*/
.project-screenshot-carousel {
  grid-column: 1;
  grid-row: 1;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 10%;
  margin-bottom: 10%;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 600px;
  line-height: 1;
}

.project-screenshot-carousel img {
  max-height: 300px
}

.slick-dots {
    position: relative;
    bottom: 0px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.slick-dots li button:before {
    color: #00FF00;
    z-index: 9999;
}

.slick-dots li.slick-active button:before {
    color:#00FF00 !important;
    z-index: 9999;
}

.slick-dotted.slick-slider {
    /*margin-bottom: 60px;*/
    margin-bottom: 2%;
}

.slick-prev {
  left: -8%;
}

.slick-next {
  right: -8%;
}


/* the slides */
.slick-slide {
    margin: 0 5px;
}

/* the parent */
.slick-list {
    margin: 0 -5px;
}

.slick-prev, .slick-next {
  z-index: 9999;
  margin-top: 10%;
  margin-bottom: 10%;
  padding-top: 0;
  padding-bottom: 0;
  top: 22%;
}

.project-screenshot-carousel img {
  margin-left: auto;
  margin-right: auto;
}


@media screen and (max-width: 800px) {
.project-content {
  grid-template-columns: 10% 80% 10%;
}
.project-screenshot-carousel {
  grid-row: 1;
  grid-column: 2;
}
.project-metadata {
  grid-row: 2;
  grid-column: 2;
}
.project-divider {
  display: none;
}
.project-news {
  margin-left: 0 25px;
  padding: 0 25px;
  grid-column: 1;
  grid-row: 2;
}}

@media screen and (max-width: 625px) {
.project-name {
  margin-top: -25px;
}}

@media screen and (max-width: 525px) {
.project-content {
  zoom: 0.75;
  -moz-transform: scale(0.75);
}}

@media screen and (max-width: 380px) {
.project-content {
  zoom: 0.65;
  -moz-transform: scale(0.65);
}}


/* Project list filter stuff
------------------------------------*/

.project-filters-head {
  padding-bottom: 5px;
}

.genre-filter-header-text {
  padding: 2px;
}

.genre-filter-header-text:hover {
  background-color: #3e8e41;
}

.platform-filter-header-text {
  padding: 2px;
}

.platform-filter-header-text:hover {
  background-color: #3e8e41;
}

select {
  border: 2px solid #343434;
  border-radius: 4px;
  width: 75%;
  float: right;
  color: #F7FFF7;
  background: #454E61;
}

::selection {
  background: #3e8e41; /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: #3e8e41; /* Gecko Browsers */
}

.project-list-filter {
    /*background: #676767;*/
  background: #454E61;
  grid-column: 1;
}

.project-list-filter-box {
  position: sticky;
  top: 0px;
  margin-top: -10px;
  color: #F7FFF7;
  background: #454E61;
  align-self:flex-end;
  min-height: calc((100vh - 168px) * 0.9)
}

@media screen and (max-width: 635px) {
.project-list-filter-box {
  min-height: 0px;
}}

.project-list-filter-form {
  margin: 10px;
  padding: 10px 0px;
  font-size: 13px;
}

.project-list-genre-filter {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.genre-filter-header-text:after {
  color: transparent;  
  text-shadow: 0 0 0 white;
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  float: right;
  margin-left: 5px;
}

.genre-filter-header-text.active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.project-list-genre-filter label {
  display:block;
}

.project-list-genre-filter label:hover {
  background-color: #3e8e41;
}


.project-list-platform-filter {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.platform-filter-header-text:after {
  color: transparent;  
  text-shadow: 0 0 0 white;
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  float: right;
  margin-left: 5px;
}

.platform-filter-header-text.active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}


.project-list-platform-filter label {
  display:block;
}

.project-list-platform-filter label:hover {
  background-color: #3e8e41;
}


/*
.complete-toggle:checked ~ .project-list-flex-item-complete
{
   display: none;
}*/


/* Project list  stuff
------------------------------------*/

.project-list-grid {
  display: grid;
  grid-template-columns: 1fr 7fr;
}

@media screen and (max-width: 635px) {
.project-list-grid {
  display: inline;
  zoom: 0.75;
  -moz-transform: scale(0.75);
}}

.project-list-flex-container {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  /*justify-content: space-around;*/
  padding: 5px;
  /*background: #676767;*/
}

.project-list-no-results {
  zoom: 0.75;
  -moz-transform: scale(0.75);
  /*justify-content: space-around;*/
}}


@media screen and (max-width: 930px) {
.project-list-flex-container {
  zoom: 0.8;
  -moz-transform: scale(0.8);
  justify-content: space-between;
}}

@media screen and (max-width: 337px) {
.project-list-flex-container {
  zoom: 0.7;
  -moz-transform: scale(0.7);
}}

.project-list-flex-container a {
  color: #F7FFF7;
  display: contents;
  text-decoration: none;
  z-index: 9999;
}

.project-list-flex-item {
  width: 180px;
  height: 282px;
  /*flex-grow: 1;*/
  margin: 2px;
  margin-bottom: 20px;
  /*background: #454545;*/
  background: #000000;
  display: grid;
  grid-template-columns: 100%;
  position: relative;
}
/*
#2F3061 - blue dark
#565656 - lighter gray
#A1C6D7 - blue light
*/

.project-list-flex-item-image {
  grid-row: 1;
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  height: 157px;
  overflow: hidden;
}

.project-list-flex-item img {
  width: 100%;
  height: auto;
  position: cover;
}

.project-list-flex-item-image img {
  /*min-width: 100%;*/
/*  min-height: 100%;
  position: cover;
*/  /*height: 150px;*/
}


.project-list-flex-item-title {
  grid-row: 2;
  text-align: center;
  background: #676767;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-list-flex-item-status {
  grid-row: 3;
  /*float:right;*/
  background: #565656;
  align-items: center;
  justify-content: center;
  text-align: center;
  /*padding: 4px;*/
  font-size: 12px;
/*  position: absolute;
  right: 0px;*/
}

.project-list-flex-item-genre {
  grid-row: 4;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /*white-space: nowrap;*/
  line-height: 1em; /* a */
  /*max-height: 3em;  a x number of line to show (ex : 2 line)  */
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  height: 30px;
  background: #676767;
}

.project-list-flex-item-platform {
  grid-row: 5;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #565656;
  height: 30px;
}

/* Footer stuff
------------------------------------*/
footer {
  padding: 10px;
}
