@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: #FDFDFD;
  text-decoration: underline;
}

a:hover { text-decoration: underline; }

header ul { list-style: none; }

dt { font-weight: bold; }

dd, dd p, dd ul, dd ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

dd li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

:root {
  --main-bg-color: #D85B5B;
  --main-text-color: #FFFFFF;
}

body {
  background-color: var(--main-bg-color);
  font-family: 'Rubik', sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  justify-content: space-between;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5vh;
}

.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 {
  height: 2rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  color: #551c09;
  font-weight: 700;
  font-size: min(4.5vw, 3rem);
  white-space: nowrap;
  text-align: center;
  font-family: 'Bellota', cursive;
}

.box {
  background-color: white;
  color: black;
  border: 2px solid #551c09;
  border-radius: 0.6rem;
  padding: 1rem;
  margin: 1rem 0;
}

.newsletter {
  color: white;
  width: 450px;
  margin: 2rem 0;

}

.newsletter-text {
  color: white;
  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;
}

.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;
}

.game-cards {
  max-width: 1050px;
  /* game cards want to be 250x250, so this caps at 3x3. Needs something else when we hit 10 games. */
}

.non-games {
  max-width: 1500px;
}


@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;
    }
}

.archive {
  padding: 0 .5rem;
}

.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;
}

.nobr { white-space: nowrap; }

/* media queries for responsive design */

.container {width: 95vw;}

@media (min-width: 1250px) {
  .container { width: 1200px; }
}

@media (max-width: 1000px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  
  .social li {
    margin: 0 .25rem;
  }
}

@media (max-width: 700px) {
  .bottom {
    flex-direction: column;
    align-items: center;
  }

  .archive {
    margin-top: 1rem;
    text-align: right;
  }

}

@media (max-width: 500px) {
  .newsletter {
    width: 85vw;
  }

  .newsletter-text,
  .submit {
    font-size: clamp(2vw, 4vw, 20px);
  }
}
