html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}

header, header > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    font-family: 'Cera Pro';
}

#navTitle {
    font-weight: bold;
}

#mobileNavPfp {
    display: none;
}

.navbar-scrolled {
    backdrop-filter: blur(20px) brightness(50%);
}

.navbar-scrolled > div {
    color: black;
}

.navbar-scrolled #languageSwitcher img {
    width: 0;
    height: 0;
}

.navbar-scrolled #navbarPfp {
    width: 50px;
    height: 50px;
}

header {
    position: fixed;
    top: 0;
    height: 75px;
    margin: 0;
    width: 100%;
    justify-content: space-between;
    z-index: 2;
}

#navLinks > a > img {
    display: none;
}

@media screen and (max-width: 520px) {
    #navLinks > a {
        font-size: 0;
    }
    #navLinks > a > img {
        display: unset;
    }
}

@media screen and (max-width: 1000px) {
  header {
      position: sticky;
  }
}
header a {
    text-decoration: none;
    color: white;
    transition: color 0.15s, transform 0.15s;
}

header > div {
    gap: 20px;
    margin: 0 20px;
}

header img {
    border-radius: 25px;
    transition: width 0.25s, height 0.25s;
}

#languageSwitcher {
    margin-left: -20px;
    display: flex;
}

#languageSwitcher img {
    width: 50px;
    height: 50px;
}

#navbarPfp {
    width: 0;
    height: 0;
}

#navbar a:hover {
    color: rgb(196, 196, 196);
    transform: scale(1.1);
}

#navLinks a:active {
    color: white;
    transform: scale(1) rotate(3deg);
}

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

  header {
    bottom: 0;
    top: auto;
    backdrop-filter: blur(20px) brightness(50%);
  }

  #navTitle {
    display: none;
  }

  #navbar {
    justify-content: center;
  }

  #mobileNavPfp {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 45px;
  }

  #mobileNavPfp > a {
    display: flex;
    justify-content: center;
  }

  .navbar-scrolled #mobileLogo img, #mobileLangSwitcher img {
    width: 80px;
    height: 80px;
  }

  #mobileLogo img, #mobileLangSwitcher img {
    border-radius: 40px;
  }

#mobileLogo img, .navbar-scrolled #mobileLangSwitcher img {
    width: 0;
    height: 0;
}

  header > div > a {
    flex: 1;
    text-align: center;
  }

  #navLinks {
    width: 100%;
  }

}
