@import url(scrollbar.css);
@import url(fonts.css);
@import url(common.css);


:root {
  --column-width: 900px;
  --wide-column-width: 1200px;
  --blastmode-red: #fd424f;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.preloader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background: rgb(0, 0, 0);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: opacity 0.3s linear;
  pointer-events: none;
}

.preloader::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid white;
  animation: rotate 0.5s linear;
  animation-iteration-count: infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* website */
footer {
  flex-direction: column;
  background: black;
  color: white;
  padding: 100px 0 20px;
  position: relative;
}

footer p {
  text-align: center;
}

footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -50px;
  height: 100px;
  width: 100%;
  transform: skewY(2deg);
  background: black;
}

footer>img {
  width: 150px;
}



/* topbar */
#navbar {
  background-color: black;
  height: 80px;
  position: fixed;
  z-index: 100;
  transition: all 0.7s ease;
}

#navbar.inactive {
  transform: translateY(-50px);
  opacity: 0;
}

#navigation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#navigation>a {
  display: inline-block;
  text-decoration: none;
  font-family: 'Kanit-Black';
  text-transform: uppercase;
  margin: 0 10px;
  position: relative;
  left: 10px;
  transition: all 0.2s ease;
}

#navigation>a::before {
  content: "";
  background: var(--blastmode-red);
  display: inline-block;
  height: 2px;
  width: 100%;
  position: absolute;
  top: 24px;
  opacity: 0;
  transition: all 0.3s ease;
}

#navigation>a:hover {
  transform: translateY(2px);
}

#navigation>a:hover::before {
  height: 8px;
  opacity: 1;
}

/* hero block */
#hero {
  background-color: white;
  overflow: hidden;
  position: relative;
}

#toplogo {
  height: 96px;
  position: absolute;
}

#hero-intro {
  position: relative;
  padding: 0 70px;
  flex-direction: column;
  left: 80px;
  width: 42vw;
}

#hero-switch {
  position: relative;
  left: 50px;
  z-index: 3
}

#hero-intro>h2 {
  margin-bottom: -45px;
  font-size: 2rem;
}

#hero-intro>h1 {
  font-size: 3.5rem;
}

#hero-intro>img {
  max-width: 570px;
}

#hero-intro>p {
  border-left: 43px solid black;
  padding-left: 12px;
  text-align: left;
}

.heroanim {
  transition: 1s ease all;
  transition-delay: 0.2s;
}

.inactive {
  transform: translateY(50px);
  opacity: 0;
}

#hero.inactive {
  transform: translateY(50px);
  opacity: 0;
}

/* games block */

#gooseblock {
  height: 930px;
  overflow: hidden;
  position: relative;
  transition: 0.8s ease background-color;
}

.blackbg {
  background-color: black;
}

.gooseblockbg {
  background-color: var(--blastmode-red);
}

#gooseblock::before {
  content: '';
  position: absolute;
  top: -84px;
  left: 0;
  right: 0;
  height: 175px;
  background: #ffffff;
  transform: skewY(3deg);
}

#gooseblock::after {
  content: '';
  position: absolute;
  bottom: -65px;
  left: 0;
  right: 0;
  height: 155px;
  background: #ffffff;
  transform: skewY(-2deg);
}

#hero-tank {
  position: relative;
  right: -580px;
  width: 922px;
  top: 40px;
  z-index: 5;
}

#goosecontent {
  top: 100px;
  position: relative;
  height: 675px;
}

#goosecontent>div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#mgblock>a {
  color: white !important;
  padding: 20px;
  background: black;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  outline: 0px solid white;
}


#mgblock>a:hover {
  transform: scale(1.1);
  outline: 3px solid white;
}



#mgblock {
  position: relative;
  top: 250px;
  z-index: 20;
}

.mglogo {
  width: 600px;
}

#mgblock>h1 {
  margin-bottom: -48px;
}

#mgblock>h3 {
  font-size: 2rem;
}

#explo {
  position: absolute;
  right: -1200px;
  height: 850px;
}

#aboutblock {
  padding: 200px 0 300px;
}

.button {
  color: white !important;
  padding: 20px;
  background: black;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  top: 20px;
  display: inline-block;
}

.button:hover {
  transform: scale(1.1);
  opacity: 0.7;
}


/* games */



.inactive .flamebg {
  transform: skewY(351deg) scaleY(0);
}

.games-screenshots {
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  display: flex;
  height: 100%;
}

.games-screenshots img {
  border: 8px solid black;
}

.flamebg {
  width: 100%;
  height: 695px;
  position: absolute;
  z-index: 0;
  top: 207px;
  transform: skewY(351deg);
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.56, 0.18, 0, 1.0);
  transition-delay: 0.3s;
}

.oddflame {
  transform: skewY(6deg) !important;
  top: 504px;
}

.flamebg>div {
  width: 600%;
  height: 100%;
  background-image: url(../img/flame.svg);
  background-size: 1750px 100%;
  background-repeat: repeat-x;
  animation: 25s infinite linear scrollx;
}

.gamebtn {
  position: relative;
  z-index: 10;
  background-color: black;
  color: white;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  top: 44px;
  padding: 28px;
  display: table;
  font-family: 'Ubuntu';
  font-size: 1.2rem;
}


.gamesblock {
  position: relative;
  min-height: 80vh;
  transition: all 1s ease;
  transition-delay: 0.2s;
  opacity: 1;
}

.gamecontent {
  position: relative;
  z-index: 10;
}

.inactive .gamesblock {
  transform: translateY(50px);
  opacity: 0;
}

.indevelopment {
  margin-top: -100px;
}

.indevelopment>p,
.indevelopment>h2 {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hugabove {
  margin-top: -20px;
}

/* about */
#aboutcontent.inactive {
  transform: translateY(50px);
  opacity: 0;
}

#aboutcontent.inactive .fader {
  opacity: 100;
}

#aboutcontent.inactive #corevalues {
  transform: translateY(50px);
  opacity: 0;
}

#aboutcontent.inactive #theteam {
  transform: translateY(50px);
  opacity: 0;
}

#aboutblastmode {
  background-image: url(../img/aboutbanner.png);
  background-size: cover;
  color: white;
  padding: 180px 0 120px;
  text-shadow: 2px 2px 3px black;
  margin: -200px 0 70px;
  position: relative
}

.fader {
  background-color: white;
  transition: 1.8s ease;
  transition-delay: 0.5s;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

#corevalues {
  transition: all 1s ease;
  transition-delay: 0.3s;
  opacity: 100;
  transform: translateY(0);
}

#theteam {
  width: 100%;
  transition: all 1s ease;
  transition-delay: 0.6s;
  opacity: 100;
  transform: translateY(0);
  margin-top: -200px;
  margin-bottom: 200px;
}

#theteam.inactive {
  opacity: 0;
  transform: translateY(50px);
}

.theteam h3 {
  text-align: center;
  margin-bottom: -28px;
}

.theteam p {
  text-align: center;
  margin-bottom: 50px;
}

.classes {
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
}

.classes img {
  width: 100%;
}

/* halloffame */

#gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: -100px;
  margin-bottom: 100px;
}

#gallery img {
  width: 320px;
  transition: all 0.2s ease;
  transform-origin: bottom;
  position: relative;
}

#gallery img:hover {
  transform: scale(1.8) translateY(-10px);
  z-index: 20;
}



.hover {
  animation: hover 4s infinite ease-in-out;
}

.hover:nth-of-type(2) {
  animation: hover 6s infinite ease-in-out;
}

.hover:nth-of-type(3) {
  animation: hover 5s infinite ease-in-out;
}

@media only screen and (max-width: 1200px) {
  #navigation>a {
    font-size: 0.9rem;
    margin-top: 30px;
    left: 0;
  }

  .wide-center-column {
    width: 90vw;
  }
}

@media only screen and (max-width: 1000px) {

  #toplogo {
    left: 0;
    top: 0;
  }

  h1 {
    font-size: 3.8rem;
  }

  .hero-grid,
  .two-grid,
  .three-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .center-column,
  .wide-center-column {
    width: 90vw;
  }

  #hero-intro {
    left: 0;
    width: 90vw;
  }

  #hero-intro>img {
    width: 70vw;
  }

  #hero-intro>p {
    width: 90vw;
  }

  #hero-switch {
    left: 0;
  }

  #gooseblock {
    height: 1412px;
    padding-top: 245px;
  }

}

@media only screen and (max-width: 600px) {
  #toplogo {
    display: none;
  }

  #aboutblock {
    padding: 100px 0 300px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  #mgblock>h3 {
    font-size: 1.2rem;
  }

  #mgblock>h1 {
    margin-bottom: -31px;
  }

  #gooseblock {
    height: 1412px;
    padding-top: 245px;
    margin-top: -182px;
  }

  #hero {
    padding: 200px 0 100px;
  }

  .mglogo {
    width: 400px;
  }

  .indevelopment {
    margin-top: -300px;
  }
}


@keyframes scrollx {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-1750px);
  }
}

@keyframes hover {

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

  50% {
    transform: translateY(10px);
  }
}