/*
  Begin CSS reset
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

/*
  End CSS reset
*/

:root {
  /*Colours*/
  --primary: #11091e;
  --secondary: #dfbba1;
  --tertiary: #5d4c5b;
  --quaternary: #a58166;
}

html {
  font-size: 125%;
  font-family: "Lato", sans-serif;
}

body {
  background-color: var(--primary);
  color: var(--secondary);
}

a {
  color: var(--secondary);
  text-decoration: none;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0) 70%,
      var(--primary)
    ),
    url("./assets/background.jpg") no-repeat top center;
  background-size: cover;
  width: 100%;
  aspect-ratio: 13/12;
  text-align: center;
  position: relative;
}

header .logo {
  margin-top: 5vw;
  width: 20vw;
}

.wrapper {
  width: 90%;
  margin: 0 auto;
  max-width: 800px;
}

.trailer {
  position: absolute;
  bottom: -550px;
}

@media (min-width: 900px) {
  .trailer {
    bottom: -225px;
  }
}

.trailer iframe {
  margin-top: 20px;
  max-width: 100%;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

main {
  margin-top: 550px;
  padding-bottom: 100px;
}

@media (min-width: 900px) {
  main {
    margin-top: 225px;
  }
}

.signup form {
  display: flex;
  width: 300px;
  margin-top: 20px;
  border: 1px solid var(--secondary);
  border-radius: 6px;
  background: var(--secondary);
  padding: 1px;
  font-size: 0.75rem;
}

.signup input[type="email"] {
  flex-grow: 2;
  border: none;
  background: var(--secondary);
  color: var(--tertiary);
  padding-left: 8px;
}

.signup input[type="email"]:focus {
  outline: none;
}

.signup input[type="email"]::placeholder {
	color: #A58166;
}

.signup form:focus-within {
  outline: 1px solid #ffff;
}

.signup input[type="submit"] {
  border: none;
  border-radius: 6px;
  background: var(--tertiary);
  color: var(--secondary);
  padding: 0 12px 0;
}

.signup input[type="submit"]:focus {
  outline: 1px solid #ffff;
}

.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
}

.snowman-logo:hover {
  animation: wiggle 2s linear;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 5px;
  padding-left: 0;
  list-style-type: none;
}

.social-icons img {
  width: 34px;
  height: 34px;
  margin: 20px 0;
  margin: 10px;
}

.presskit {
  margin-top: 40px;
  text-align: center;
  font-size: 80%;
}


.screenshots {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 400px) {
  .screenshots {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .screenshots {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.screenshots img {
  cursor: pointer;
  width: 100%;
  flex-basis: 33.33%;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.3);
}

.screenshots img:hover {
  transform: scale(1.05);
}

#platform-buttons .wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

#platform-buttons img {
  height: 61px;
  margin: 5px;
  border: 1px solid var(--tertiary);
  border-radius: 6px;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
}

/* 
Quotes
*/


#quotes {
  display: grid;
  grid-template-columns: 1fr;
  list-style-type: none;
  padding: 0;
  margin-top: 50px;
}

@media (min-width: 900px) {
  #quotes {
    grid-template-columns: 1fr 1fr;
  }
}

blockquote {
  font-style: italic;
  padding-top: 20px;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
}

#quotes li {
  vertical-align: top;
  text-align: center;
  display: inline-block;
  margin-bottom: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#quotes li a {
  text-decoration: none;
  width: 100%;
  cursor: pointer;
}

#quotes blockquote {
  max-width: 360px;
}

#quotes img {
  filter: grayscale(1) invert(60%) sepia(18%) saturate(900%) hue-rotate(316deg) brightness(92%) contrast(89%);
  opacity: 0.6;
  display: inline-block;
  max-height: 42px;
  margin-top: 35px;
}

#quotes img.larger-image {
  max-height: 70px;
}

@media (min-width: 900px) {
  .last-quote {
    grid-column: span 2;
  }
}

.awards {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.polygon-badge {
  max-width: 200px;
}

/*
Snowman Wiggle Animation
*/

@keyframes wiggle {
  0%,
  7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%,
  100% {
    transform: rotateZ(0);
  }
}

ul#quotes li img {
  -webkit-transition:opacity .2s;
  -moz-transition:opacity .2s;
  -o-transition:opacity .2s;
 transition: opacity .2s;
}

ul#quotes li img:hover {
  opacity: 0.4;
}

ul#laurels {
  list-style: none;
  margin-top: 100px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@media (min-width: 900px) {
  ul#laurels {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
  }
}

ul#laurels li {
  min-width: 39%;
  min-height: 120px;
  display: flex;
  justify-content: center;
}

ul#laurels li:first-child {
  flex-basis: 100%;
}

ul#laurels li a {
  -webkit-transition:opacity 0.2s;
  -moz-transition:opacity 0.2s;
  -o-transition:opacity 0.2s;
  transition: opacity 0.2s;
}
ul#laurels li a:hover {
  opacity: 0.5;
}

ul#laurels li p {
  display: inline-block;
  vertical-align:middle;
  font-size: 25px;
  padding: 5px;
  text-align: center;
  line-height: 1.3
}

ul#laurels li p small {
  font-size: 18px;
  display: block;
  font-weight: 300;
}

ul#laurels li:before, ul#laurels li:after {
  vertical-align:middle;
  content: "";
  display: inline-block;
  width: 44px;
  height: 103px;
  background-image: url("./assets/laurel.png");
  background-size: 88px 103px;
	background-repeat: no-repeat; 
}

ul#laurels li:after {
  background-position: -44px 0px;
}
