/* ========== THEME ========== */
body {
  --text-color: #111;
  --brand-color: #231765;
  --bkg-color: #fff;
  --bkg-color2: #ccc;
  --bkg-color3: #aaa;
}

@media (prefers-color-scheme: dark) {
  /* defaults to dark theme */
  body {
    --text-color: #eee;
    --brand-color: #654dea;
    --bkg-color: #121212;
    --bkg-color2: #202020;
    --bkg-color3: #353435;
  }
}

@font-face { font-family: Avenir; src: url('/static/fonts/Avenir.ttf'); }

* {
  font-family: Avenir, sans-serif;
  background: transparent;
  color: var(--text-color);
}

body {
  background: var(--bkg-color);
}

.deprecated-page-header {
  text-align: center;
}

/* ========== MAIN STYLES ========== */

#header-wrapper {
  display: flex;
  margin: 3em 0;
}

#header-wrapper * {
  color: var(--brand-color);
}

#header-wrapper a {
  font-weight: bold;
}

header {
  display: flex;
  flex-direction: row;
  align-content: baseline;
  flex-wrap: nowrap;
  margin: 0 auto;
}

header > * {
  margin: auto 1em;
  text-decoration: none;
  font-size: medium;
}

#logo-text {
  font-size: 32px;
  font-weight: bolder;
}

#logo-image {
  width: 50px;
  height: 50px;
}

/* ========== Dropdown menu ========== */
.dropdown-button {
  padding: 16px;
  font-size: 16px;
  border: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bkg-color2);
  min-width: 160px;
  z-index: 1;
}

.dropdown-content > * {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content > *:hover {
  background-color: var(--bkg-color3);
}

.dropdown-wrapper:hover .dropdown-content {
  display: block;
}

.dropdown-wrapper:hover .dropdown-button {
  background-color: var(--bkg-color3);
}

#dropdown-in-header {
  display: none;
}

@media screen and (max-width: 900px) {
  #header-wrapper {
    display: block;
    margin: 1em 0;
  }

  header {
    justify-content: space-between;
  }

  #dropdown-in-header {
    display: block;
  }

  #profile-menu-dropdown > .dropdown-content{
    right: 1.5em;
  }

  header > a {
    display: none;
  }
}

