/* fredoka-one-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fredoka-one-v13-latin-regular.eot');
  /* IE9 Compat Modes */
  src: url('../fonts/fredoka-one-v13-latin-regular.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('../fonts/fredoka-one-v13-latin-regular.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('../fonts/fredoka-one-v13-latin-regular.woff') format('woff'),
    /* Modern Browsers */
    url('../fonts/fredoka-one-v13-latin-regular.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('../fonts/fredoka-one-v13-latin-regular.svg#FredokaOne') format('svg');
  /* Legacy iOS */
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

a {
  text-decoration: none;
}

/* Core Styles */

html {
  color: white;
  font-size: 1em;
  line-height: 1.5;
  scroll-behavior: smooth;
  font-family: "Fredoka One", sans-serif;
  /* Colour Variables */
  --onpoint-blue: #0A4EF5;
  --onpoint-blue-dark: #18405C;
  --onpoint-blue-light: #6ADEFF;
  --onpoint-orange: #FBBB2F;
  --onpoint-orange-dark: #8F3200;
  --onpoint-orange-light: #FFEA4C;
  --steam-brand: #171a21;
  --steam-brand-dark: #0b0c0f;
  --discord-brand: #5865F2;
  --discord-brand-dark: #3841a1;
  --meta-brand: #ffffff;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url(../images/background-dark.jpg);
  background-color: #171a21;
  background-size: cover;
  z-index: -1;
}

main {
  min-height: 100vh;
}

summary {
  background-image: url("../images/wood.jpg");
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
  margin: 0px 0px;
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 2vh;
  transform: rotate(-1deg);
  text-align: center;
}

footer {
  margin-top: 40px;
  margin-bottom: 20px;
}

footer :not(:last-child) {
  margin-bottom: 20px;
}

.footer-text {
  text-align: center;
}

.screen-queensland-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.screen-queensland-logo-wrapper {
  background: white;
  padding: 12px 15px 15px 15px;
  border-radius: 10px;
  margin-bottom: 70px !important;
}

.screen-queensland-attribution-span {
    display: block;
    text-align: center;
    color: black;
    margin-bottom: 7px!important;
    font-size: small;
}

.hero-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly
}

.video-wrapper {
  margin: 7vh 20px 20px 0px;
  width: clamp(0px, 80vw, 80vw);
  /* always shrinks, prefers 95vw, max 680px */
  height: clamp(200px, 70vh, 80vh);
  border-radius: 10px;
  /* Also change .'video-wrapper *' rule to match this change  */
}

.video-wrapper * {
  /* Lines up border with video wrapper by applying this specific value to child elements */
  border-radius: 8px;
}

#eula-page {
  background-image: none;
  background-color: #171a21;
}

#eula-page .actuator-icon {
  position: absolute;
}

.eula {
  padding-top: 60px;
  word-wrap: break-word;
}

.eula p {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Logo, Bomb, and Characters */

#logo {
  padding-top: 20px;
  pointer-events: none;
  filter: drop-shadow(5px 5px 10px rgba(0,0,0,.8));
}

#logo-container {
  position: relative;
  z-index: 5;
}

#target,
#bomb {
  position: absolute;
  z-index: 1;
  width: 130px;
  top: 300px;
  transform: translateY(20px);
  filter: drop-shadow(5px 5px 10px rgba(0,0,0,.8));
}

#bomb {
  left: -30px;
  animation: float 4s infinite;
  animation-timing-function: ease-in-out;
}

#target {
  right: -30px;
  animation: float 4.5s infinite;
  animation-timing-function: ease-in-out;
}

/* Helper classes */

.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0px;
  /* no spacing between containers */
  box-sizing: border-box;
}

.column {
  flex-direction: column;
  align-items: center;
}

.row {
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}

.clamped-width {
  width: clamp(0px, 76vw, 850px);
}

/* Buttons */

.button {
  width: clamp(0px, 60vw, 160px);
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s;
  position: relative;
  z-index: 5;
}

.button img {
  width: 100%;
  height: 100%;
}

a.shadow:hover {
  --shadow-offset: 7px;
  transform: translate(-5px, -5px);
  -webkit-box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px rgba(0, 0, 0, 0.33);
  -moz-box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px rgba(0, 0, 0, 0.33);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px rgba(0, 0, 0, 0.33);
}

.trailer-shadow,
summary {
  -webkit-box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.33);
  -moz-box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.33);
  box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.33);
}

#trailer {
  z-index: 1;
}

.meta {
  background-color: var(--meta-brand);
  border: 10px;
}

.discord {
  background-color: var(--discord-brand);
}

.steam {
  background-color: var(--steam-brand);
}

.scroll-down, .go-back {
  background-image: linear-gradient(45deg,
      hsl(194deg 100% 70%) 0%,
      hsl(197deg 100% 69%) 9%,
      hsl(199deg 99% 66%) 18%,
      hsl(202deg 99% 65%) 27%,
      hsl(204deg 98% 63%) 36%,
      hsl(207deg 98% 61%) 45%,
      hsl(210deg 97% 59%) 55%,
      hsl(213deg 97% 57%) 64%,
      hsl(215deg 97% 55%) 73%,
      hsl(218deg 96% 53%) 82%,
      hsl(220deg 96% 51%) 91%,
      hsl(223deg 95% 49%) 100%);
  display: flex;
  align-items: center;
  /* Vertical align */
  justify-content: center;
  /* Horizontal align */
  font-size: 26px;
  /*border: 5px solid var(--onpoint-blue-dark);*/
}

a,
a:visited {
  color: rgb(255, 255, 255);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.scroll-down::after {
  padding-left: 7px;
  content: "👇";
  position: relative;
  font-size: 25px;
  animation: bounce 2s ease infinite;
}

.screen-queensland-icon {
  position: fixed;
  bottom: 10px;
  left: 2vw;
  z-index: 15;
}

.actuator-icon {
  position: fixed;
  top: 2vh;
  left: 2vw;
  z-index: 15;
}

.wood-board-tilt {
    transform: rotate(1.3deg);
    margin-top: -35px;
    z-index: 3;
}

/* VR Store and Social Icons */

.social-icons-wrapper {
  position: fixed;
  bottom: 2vh;
  right: 2vw;
  z-index: 15;
}

.screen-queensland-container img {
  padding: 10px; /* Add padding if needed */
  display: inline-block;
  border-radius: 15px; /* Adjust this value for more or less rounding */
}

.vr-icons-wrapper {
  position: fixed;
  top: 2vh;
  right: 2vw;
  z-index: 15;
}

.email-icon, .facebook-icon, .x-icon, .discord-icon, .meta-icon, .vive-icon, .playstation-icon {
  height: 20px;
  width: auto;
  padding: 5px;
}

/* Animations */

@keyframes float {
  animation-timing-function: linear; /* VSCode throws an error for this line, I expect it is a bug with the css validation. Animation does not work without it. */

  0%,
  100% {
    transform: rotate(-15deg);
  }

  50% {
    transform: translateY(-20px);
    transform: rotate(15deg);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}


/* Media queries */

/* Tablets */
@media (min-width: 656px) and (max-width: 1050px) {

  #target,
  #bomb {
    width: 110px;
    top: 28vw;
  }

  .wood-board-tilt{
    margin-top: 0px;
  }

  .clamped-width {
    width: clamp(0px, 76vw, 580px);
  }

}


#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  transition: opacity .5s ease-in-out;
}

/* Phones */
@media screen and (max-width: 655px) {

  #target,
  #bomb {
    width: 70px;
    top: 35vw;
  }

  .wood-board-tilt {
    margin-top: 0px;
    position: relative;
    right: 7px;
  }
  body::before {
    background-position: left top;
    background-size: cover;
  }
  .video-wrapper {
    width: clamp(0px, 90vw, 90vw);
    height: clamp(200px, 50vh, 80vh);
    padding-top: 20px;
    margin: auto;
  }
  .clamped-width {
    width: clamp(0px, 80vw, 80vw);
  }
}

.black-band {
  width: 100%;
  height: 8vh; /* Adjust height as needed to achieve the movie-like effect */
  background-color: black;
  position: fixed;
  left: 0;
  z-index: 4; 
}

.black-band:first-of-type {
  top: 0;
}

.black-band:last-of-type {
  bottom: 0;
}
