@font-face {
  font-family: 'Inter';
  src: url('./assets/inter.ttf');
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none;
}

body {
  margin: 0;
  height: 100vh;
  background: #000;
}

/* Mobile */
.appContainer {
  height: 100%;

  display: grid;
  grid-column: minmax(0, 1fr);
  grid-template-rows: 8fr 2fr;
  grid-template-areas:
    'logo'
    'main';

  transition: all 0.5s ease-in;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/bg.jpg') no-repeat fixed 75%;
    background-size: cover;
    z-index: -1;

    transition: all 0.3s ease-in;
  }

  > .logo {
    grid-area: logo;

    display: flex;
    justify-content: center;
  }

  > .main {
    grid-area: main;
    container-name: myContainer;
    container-type: inline-size;
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  &.-postinput {
    grid-template-rows: 5fr 5fr;

    &::before {
      filter: brightness(50%);
    }
  }
}

.kayzeLogo {
  padding: 100px 25px;
  width: 100%;
  max-width: fit-content;
  user-select: none;
}

.preInput {
  color: white;
  font-size: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  animation: pulsate 2.5s ease-in-out;
  animation-iteration-count: infinite;
  user-select: none;
}

.postInput {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: row;
  justify-content: center;

  padding-bottom: 50px;
  animation: fadein 0.3s ease-in;
}

.discordEmbed {
  width: 100%;
  height: 100%;
  padding: 0 25px;
}

/* Tablets */
@media (width >= 480px) {
  .kayzeLogo {
    padding: 50px 100px;
  }

  .discordEmbed {
    padding: 0 100px;
  }
}

/* Desktop */
@media (width >= 960px) {
  .kayzeLogo {
    padding: 100px 200px;
  }

  .discordEmbed {
    width: 800px;
  }
}

@keyframes pulsate {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
