:root {
  --color-1: #fcba04;
  --color-2: #a50104;
  --color-3: #f3f3f3;
  --grey-: rgb(200, 200, 200);
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito/Nunito-VariableFont_wght.ttf") format(truetype);

  font-family: "Starjedi";
  src: url("/assets/fonts/STARWARS/Starjedi.ttf") format(truetype);
}

@keyframes contentAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  background-color: var(--color-3);
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

header {
  min-height: 50px;
}

section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 1px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  opacity: 0;
  animation: contentAnimation 0.7s ease-in-out 0.01s forwards;
  padding: 50px;
}

.title {
  text-align: center;
}

h1 {
  font-size: 40px;
  color: var(--color-2);
  text-align: center;
  text-transform: lowercase;
  font-family: "Starjedi", sans-serif;
}

h2 {
  width: 100%;
    border-bottom: 5px solid var(--color-1);
    font-family: "Starjedi", sans-serif;
    color: var(--color-2);
}

.error {
  color: red;
}

#intro-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff; /* Fond noir pendant l'animation */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introAnimation 3s ease-out forwards;
}

#logo-container {
  width: 30%; /* Ajustez la taille de votre logo */
  overflow: hidden;
}

#logo {
  width: 100%;
}

/* Animation de l'intro */
@keyframes introAnimation {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media screen and (max-width: 620px) {
  .title  {
    font-size: 28px;
  }
}