* {
  box-sizing: border-box;
}
html {
  font-family: "Bungee";
  user-select: none;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100vh;
  background-image: url(../images/day.png);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  color: var(--text-color);
}

.day {
  transition: background-image 2s ease-in-out;
  background-image: url(../images/day.png);
}

.night {
  transition: background-image 2s ease-in-out;
  background-image: url(../images/night.png);
}


header {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.2rem;
  height: 100%;
}

#logo {
  width: 18rem;
}

h1 {
  font-family: "ZillaSLab", "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 2.8rem;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

#typewriter {
  display: inline-block;
  border-right: 5px solid var(--text-color);
  padding-inline: 0.1rem;
  animation: blink 1s step-end infinite;
}

#social-links {
  display: flex;

  li {
    padding-inline: 1.9rem;
  }
}

.icon {
  filter: invert(91%) sepia(94%) saturate(28%) hue-rotate(250deg)
    brightness(106%) contrast(100%);
    &:hover{
        filter: invert(82%) sepia(54%) saturate(443%) hue-rotate(56deg) brightness(103%) contrast(101%);
    }
}

footer {
  justify-content: flex-end;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#ip-copied{
  text-align: center;
  font-size: 1em;
  display: none;
  transition: opacity 1s ease-in-out;
}

#ip-copied:target {
  display: block;
  opacity: 1;
  animation: hideNotification 1s forwards;
}

@keyframes hideNotification {
  0%, 80% {
      opacity: 1;
  }
  100% {
      opacity: 0;
      display: none;
  }
}

#ip {
  text-transform: uppercase;
  font-size: 2.2rem;
  line-height: 2.2rem;
  margin-bottom: 2.5rem;
  &:hover a{
    color: var(--text-hover-color);
  }
}

/* Commentaire du 20/06/2024 pour résoudre l'énigme de la date d'ouverture d'Altasis */
/* Bien joué ! Pour trouver le prochain indice, retourne dans le canal #general et remonte dans les messages, cette fois tu devras peut-être chercher dans d'anciens messages ... */

@media (max-width: 1024px) {
  body {
    justify-content: space-between;
    background-position: top;
  }
  header {
    margin-top: 5.5rem;
    height: auto;
    padding: 0;
  }
  h1 {
    font-size: 1.6rem;
    margin: 0;
  }
  .no-wrap {
    text-wrap: nowrap;
  }
  nav {
    margin-bottom: 4.5rem;
  }
  #social-links > li {
    padding-inline: 2.5rem;
  }
  footer {
    display: none;
  }
}

@media (max-width: 1024px) {
  body {
    justify-content: space-between;
  }
  header {
    margin-top: 5.5rem;
    height: auto;
    padding: 0;
  }
  h1 {
    font-size: 1.6rem;
    margin: 0;
    padding-inline: 1rem;
  }
  .no-wrap {
    text-wrap: nowrap;
  }
  nav {
    margin-bottom: 4.5rem;
  }
  #social-links > li {
    padding-inline: 1.5rem;
  }
  footer {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    background-image: url("../images/mobile-night.png");
    background-position: top;
  }
  .day{
    background-image: url(../images/mobile-day.png);
  }
  .night{
    background-image: url(../images/mobile-night.png);
  }
  #logo {
    width: 15rem;
  }
  .icon {
    width: 2.5rem;
  }
}

@media (max-width: 320px) {
    #logo {
        width: 12rem;
    }
    h1{
        font-size: 1.1rem;
    }
}