/*
CSS Reset from https://www.joshwcomeau.com/css/custom-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;
}

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

/* 
Variables
*/

:root {
  /*Colours*/
  --primary: #213c55;
  --secondary: #ffffff;
  --tertiary: #505a53;
  --quaternary: #e94a0d;
  --quinary: #1e1e1e;
}

@font-face {
  font-family: "OFF";
  src: URL("./assets/off.ttf") format("truetype");
}

html {
  font-size: 125%;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--secondary);
  background-color: var(--primary);
  background-image: url("./assets/stardust.png");
}

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

a {
  color: inherit;
}

p {
  text-align: center;
  color: var(--secondary);
}

li {
  font-size: 0.9rem;
}

header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0) 70%,
      var(--primary)
    ),
    url("./assets/hero.jpg") no-repeat center center;
  background-size: cover;
  min-height: 98vh;
}

header img {
  width: 90%;
  max-width: 600px;
  margin: 10vh;
  flex-shrink: 0;
}

section {
  padding: 80px 0 0 0;
}

/*
Platform Buttons
*/

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

#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);
}

.social-icons img:hover {
  transform: scale(0.95);
}

/*
Trailer 
*/

#trailer .wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#trailer iframe {
  max-width: 100%;
  margin-bottom: 8px;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.3);
}

/*
Screenshots 
*/

#screenshots {
  text-align: center;
  padding: 80px 0;
  margin-top: 80px;
}

#screenshots img {
  margin: 15px;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.3);
}

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

/*
Newsletter
*/

form {
  text-align: center;
  display: flex;
  justify-content: center;
}

input[type="email"] {
  width: 300px;
  margin-right: 5px;
}

input[type="submit"] {
  background: var(--quinary);
  color: var(--secondary);
  border-radius: 2px;
  font-weight: bold;
  letter-spacing: 0.8px;
  border: 1px var(--secondary) solid;
  cursor: pointer;
  padding: 0 18px;
}

input[type="submit"]:hover {
  background: var(--quaternary);
}

/* 
Quotes
*/

#quotes {
  text-align: center;
}

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

#quotes li {
  vertical-align: top;
  display: inline-block;
  width: 40%;
  margin-bottom: 65px;
}

#quotes li a {
  text-decoration: none;
}

#quotes img {
  filter: brightness(63%) sepia(1) hue-rotate(-212deg) saturate(2);
  opacity: 0.6;
  display: inline-block;
  max-height: 42px;
  margin-top: 35px;
}

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

/* 
Awards
*/

#awards {
  display: none;
}

/* 
Footer
*/

footer {
  background: var(--quinary);
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.3);
  margin-top: 80px;
  padding-top: 40px;
}

footer > div {
  padding: 20px;
}

footer .social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer p {
  font-size: 0.7rem;
}

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

.social-icons {
  display: flex;
  justify-content: space-around;
  padding-top: 5px;
}

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

.disclaimer {
  color: var(--secondary);
  font-size: 0.6rem;
}

.terms-privacy-policy .wrapper {
  text-align: center;
}

.terms-privacy-policy li {
  padding: 5px 0;
}

.terms-privacy-policy .more-info {
  font-weight: bold;
  font-size: 1.2rem;
}

.terms-privacy-policy li a {
  display: inline-block;
  text-decoration: none;
  transition: color 0.1s;
}

.terms-privacy-policy li a:hover {
  color: rgb(218, 218, 218);
  transform: translate(0, 1px);
}

/*
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);
  }
}

/*
Media Queries 
*/

@media (max-width: 800px) {
  #quotes li {
    display: block;
    width: 80%;
    margin: 0 auto 50px;
  }

  #quotes img {
    margin-top: 22px;
  }
}

@media (max-width: 400px) {
  form {
    flex-wrap: wrap;
  }

  input[type="email"],
  input[type="submit"] {
    width: 100%;
    margin-bottom: 4px;
    margin-right: 0;
  }

  ::placeholder {
    text-align: center;
  }
}
