@import url( 'https://fonts.googleapis.com/css2?family=Rubik&display=swap');
@import url( 'https://fonts.googleapis.com/css2?family=Bellota&display=swap');

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

:root {
  --main-bg-color: #D85B5B;
  --main-text-color: #FFFFFF;
}

body {
  background-color: var(--main-bg-color);
  font-family: 'Rubik', sans-serif;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5vh auto 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 22rem;
}

.social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
}

.social li {
  margin: 0 .5rem;
  display: flex;
}

.social a {
  padding: .2rem;
  transition: all .2s ease-in-out;
}

.social a:hover {
  transform: scale(1.3);
}

.social img {
  width: 2.5rem;
}

main {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.second-section {
  margin: 2rem auto;
  border: 5px solid var(--main-text-color);
  border-radius: 14px;
  background-color: #36454C;
  padding: 2vh 0 5vh;
  width: auto;
}

.first-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.second-section {
  border: 5px solid #36454C;
  background-color: var(--main-text-color);
  color: #36454C;
  padding: 2vh 1vh;
}

.first-section h1 {
  color: #551c09;
  font-weight: 700;
  font-size: min(4.5vw, 2rem);
  white-space: nowrap;
  text-align: center;
  font-family: 'Bellota', cursive;
}

.highlighted-games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.game {
  flex-basis: 29%;
  width: 300px;
  margin: .5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: .8rem;
  border-radius: 14px;
  transition: all .2s ease-in-out;
  flex-grow: 1;
  height: 25vh;
  min-height: 200px;
}

/*.bonfire,
.monster {
  height: 35vh;
  min-height: 300px;
}*/

.game:hover {
  transform: scale(1.05);
}

.game-logo {
  height: 40%;
  object-fit: contain;
}

.game-gif {
  object-fit: cover;
  /*margin-top: 1rem;*/
  border-radius: 14px;
  overflow: auto;
  width: 100%;
  height: 55%;
}

.bonfire {
  background-color: #2A2A2A;
}

.monster {
  background-color: #0F728D;
}

.sokobond-express {
  background-color: #fefefe;
}

.parabox {
  background-color: #2A2A2A;
  color: white;
}
.parabox .game-logo {
  height: 30%;
}

.ame-earlier-adventures {
  background-color: #c6e8f3;
  background: radial-gradient(circle, #c6e8f3 0%, #1e94c1 100%)
}
.ame-earlier-adventures .game-logo {
  height: 30%;
}
.ame-earlier-adventures .game-gif {
  object-fit: contain;
  height: auto;
}

.cosmic {
  background-color: #36395B;
}

.snowman {
  /*background-color: #F0F0E7;*/
  background-color: #FFFFFF;
}
.snowman .game-gif {
  object-fit: contain;
  height: auto;
}

.sokobond {
  background-color: #FBFBFB;
}
.sokobond .game-logo {
  width: 70%;
}
.sokobond .game-gif {
  object-fit: contain;
  height: auto;
}

.cerebral-puzzle-showcase {
  background-color: white;
  background-image: url("assets/games/cerebral-puzzle-showcase.jpg");
  background-position: center;
  background-size: cover;
  padding: 0;
}

.cerebral-puzzle-showcase img { display: none; }

.new-voices-grant {
  background-color: #9AD3D6;
  justify-content: center;
}

.game .full-size {
  max-width: 100%;
  max-height: 100%;
  object-position: center;
}

.new-voices-grant .full-size {
  max-width: 120%;
  max-height: 120%;
}

.newsletter {
  color: white;
  width: 450px;
  font-family: 'Rubik', sans-serif;
  margin: 2rem 0;

}

.newsletter-text {
  font-size: 20px;
  text-align: center;
  width: 100%;
}

input[type=text], input[type=button], input[type=submit] {
  -webkit-appearance: none; /* make these stylable in safari */
  margin: 0;
}

.submit {
  border: none;
  color: inherit;
  font: inherit;
  padding: 0 30px;
  font-size: 16px;
  background-color: #551c09;
  cursor: pointer;
  border-radius: 5px;
  height: 38px;
  /*border-top-left-radius: 0;
  border-bottom-left-radius: 0;*/
}

.submit:hover {
  background-color: #66220b;
}

.email {
  width: 100%;
  font: inherit;
  color: black;
  border-radius: 5px;
  height: 38px;
  padding: 6px 10px;
  background-color: #fff;
  border: 1px solid #D1D1D1;
}

.email::placeholder {
  font-family: 'Rubik', sans-serif;
}


@media (max-width: 549px)
{
    .squeeze
    {
        text-align: right;
    }

    .squeeze>*:first-child
    {
        width: 100%;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
    }

    .squeeze>*:last-child
    {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

@media (min-width: 550px)
{
    .squeeze
    {
        display: flex;
        flex-direction: row;
    }

    .squeeze>*:not(:first-child)
    {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .squeeze>*:not(:last-child)
    {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}


/*
input.email {
    height: 38px;
    padding: 6px 10px;
    border-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Rubik', sans-serif;
    display: inline-block;
}

input {border:1px solid #999; -webkit-appearance:none;}
input:focus {border-color:#333;}
.button-primary {background-color: #aaa; border: 0 none; border-radius:4px; color: #FFFFFF; cursor: pointer; display: inline-block; font-size:15px; font-weight: bold; height: 32px; line-height: 32px; padding:0 10px; text-align: center; text-decoration: none; vertical-align: top; white-space: nowrap; width: auto;}
.button-primary:hover {background-color:#777;}

input.email {padding:8px 0; text-indent:5px;  min-width:130px;}
input.button-primary {
    min-width:200px;
    height: 38px;
    line-height:38px;
    border-radius: 14px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;

    
}*/

.second-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.smaller-games-title {
  min-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #36454C;
  margin-bottom: 2rem;
}

.smaller-games-title h2 {
  margin-bottom: .8rem;
}

.smaller-games-title p {
  margin-top: 0;
}

.smaller-games-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.game-thumb {
  height: 60px;
  border-radius: 10px;
  margin-right: 1rem;
}

.smaller-game {
  background: #36454C;
  color: white;
  flex-basis: 45%;
  min-width: 250px;
  margin: .5rem;
  display: flex;
  align-items: center;
  padding: .8rem;
  border-radius: 14px;
  font-size: 18px;
}

.smaller-game:hover {
  filter: brightness(90%);
}

.all {
  flex-basis: auto;
  justify-content: center;
  text-align: center;
}

.archive {
  color: #FDFDFD;
  padding: 0 .5rem;
}

.archive:hover {
  text-decoration: underline;
}

.other-games a {
  margin: .5rem 0;
}

.other-games a:hover {
  font-style: italic;
}

.bottom {
  margin: 2rem auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom > * {flex-basis: 25%;}
.bottom > .legal {flex-basis: 45%}
.archive { text-align: right; }
.archive span { white-space: nowrap; }

.bottom img {
  width: 150px;
}

.legal {
  font-size: 0.6rem;
  margin: 0.5rem;
  text-align: center;
}

.legal p {
  margin: 0;
}

/* media queries for responsive design */

.game {
  flex-basis: auto;
  width: 21%;
  height: 25vh;
  min-height: 200px;
  min-width: 200px;
  max-width: 21%;
  box-sizing: border-box;
  text-align: center;
  margin: .5rem;
}

.non-games .game {
  max-width: none;
}

header,main {width: auto;}
.first-section,.second-section { width: 95vw; }

@media (min-width: 1200px) {
  .first-section,.second-section { width: auto; }
  header,
  main {
    width: 75vw;
  }
}
@media (min-width: 1600px) {
  header,
  main {
    width: 70vw;
  }
}
@media (min-width: 1820px) {
  header,
  main {
    width: 60vw;
  }
}

@media (max-width: 800px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  
  .social li {
    margin: 0 .25rem;
  }
}


@media (max-width: 700px) {
  .smaller-game {
    flex-basis: 100%;
  }

  .bottom {
    flex-direction: column;
    align-items: center;
  }

  .archive {
    margin-top: 1rem;
    text-align: right;
  }

}

@media (max-width: 1000px) {
  .game {
    /*flex-basis: 30%;*/
    max-width: 30%;
  }
  
  .before-bonfire,.after-cosmic {
    width: 100%;
    height: 0;
  }
}

@media (max-width: 800px) {
  .game {
    margin: 0.3rem;
    width: 45%;
    max-width: 45%;
    width: calc(50% - .6rem);
    min-width: calc(50% - .6rem);
    min-height: 0;
    font-size: .9rem;
  }
  
  .before-bonfire,.after-cosmic {
    width: auto;
    height: 0;
  }
  
  .non-games .game {
    width: 30%;
    max-width: 45%;
  }
}

/*@media (max-width: 600px) {
  .highlighted-games {
    flex-direction: column;
    align-items: center;
  }
}*/

@media (min-width: 320px) and (max-width: 500px) {
  .newsletter {
    width: 85vw;
  }

  .newsletter-text,
  .submit {
    font-size: clamp(2vw, 4vw, 20px);
  }
}

/*.game width/height
.first-section h1 font-size
.newsletter width
.newsletter-text, .submit font-size
header,main width
.first-section, .second-section width
.first-section h1, .highlighted-games width
.game margin


@media (max-width: 374px) {
  .game {
    width: 250px;
    height: 250px;
  }

  .first-section h1 {
    font-size: .8rem;
  }
}

@media (min-width: 320px) and (max-width: 500px) {
  .newsletter {
    width: 85vw;
  }

  .newsletter-text,
  .submit {
    font-size: clamp(2vw, 4vw, 20px);
  }
}
@media (min-width: 375px) and (max-width: 700px) {
  .game {
    width: 300px;
    height: 300px;
  }
}
@media (max-width: 600px) {
  .highlighted-games {
    flex-direction: column;
    align-items: center;
  }

  .first-section,
  .second-section {
    margin-top: 1rem;
  }
}

@media (min-width: 375px) and (max-width: 700px) {
  .first-section h1 {
    font-size: 1rem;
  }
  
}

@media (min-width: 800px) {
  .first-section h1,
  .highlighted-games {
    width: 90%;
  }
}
@media (min-width: 880px) {
  .first-section h1,
  .highlighted-games {
    width: 80%;
  }
}
@media (min-width: 1024px) {
  header,
  main {
    width: 80vw;
  }

  .game {
    margin: .7rem .5rem;
  }
}
@media (min-width: 1024px) and (orientation: portrait) {
  header,
  main {
    width: 95vw;
  }

  .first-section h1,
  .highlighted-games {
    width: 100%;
  }
}
@media (min-width: 1200px) {
  header,
  main {
    width: 75vw;
  }

  .first-section h1,
  .highlighted-games {
    width: 70%;
  }
}
@media (min-width: 1600px) {
  header,
  main {
    width: 70vw;
  }

  .game {
    min-height: 250px;
  }
}
@media (min-width: 1820px) {
  header,
  main {
    width: 60vw;
  }
}
*/