/* ---------- Sidebar top ---------- */

.sidebar_top {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 1024px;
  height: 50px;
  margin: 0;
  padding: 0 calc(50% - 512px);
  border-bottom: solid 1px var(--p-light-grey);
  background-color: rgba(245, 245, 247, 0.75);
  backdrop-filter: blur(10px);
}

/* ---------- Sidebar top div ---------- */

.sidebar_top_left {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  width: 30%;
  height: 50px;
  margin: 0;
  padding: 0;
}

.sidebar_top_center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 40%;
  height: 50px;
  margin: 0;
  padding: 0;
}

.sidebar_top_right {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  width: 30%;
  height: 50px;
  margin: 0;
  padding: 0;
}

/* ---------- Sidebar top components ---------- */

.sidebar_top_logo {
  position: relative;
  top: 1px;
  margin: 0;
  padding: 0;
  color: var(--p-black);
  font-family: order;
  font-size: var(--p-extra-light);
  cursor: pointer;
}

.sidebar_top_link {
  margin: 0;
  padding: 10px 12px;
  outline: none;
  border: none;
  border-radius: 500px;
  background: transparent;
  color: var(--p-black);
  font-family: inter;
  font-size: var(--p-extra-light);
  text-align: end;
  cursor: pointer;
}

.sidebar_top_link:hover {
  background: var(--p-light-grey);
}

.sidebar_top_link_center {
  margin: 0 12px;
}

.sidebar_top_text {
  margin: 0;
  padding: 0;
  color: var(--p-black);
  font-family: inter;
  font-size: var(--p-extra-light);
  text-align: end;
}

.sidebar_top_flag {
  position: relative;
  bottom: 1px;
  width: 30px;
  height: 20px;
  margin: 0 0 0 16px;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
}

/* ---------- Hamburger ---------- */

.hamburger {
  position: fixed;
  top: 0;
  right: 5%;
  z-index: 12;
  display: none;
  width: 30px;
  height: 30px;
  margin: 10px 0 0 calc(50% - 30px);
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.hamburger_line {
  fill: none;
  stroke: var(--p-black);
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger_line1 {
  stroke-width: 6;
  stroke-dasharray: 60 207;
}

.hamburger_line2 {
  stroke-width: 6;
  stroke-dasharray: 60 60;
}

.hamburger_line3 {
  stroke-width: 6;
  stroke-dasharray: 60 207;
}

.hamburger_opened .hamburger_line1 {
  stroke-width: 6;
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

.hamburger_opened .hamburger_line2 {
  stroke-width: 6;
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
}

.hamburger_opened .hamburger_line3 {
  stroke-width: 6;
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

/* ---------- Navbar ---------- */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  display: none;
  width: 90%;
  height: 100%;
  margin: 0;
  padding: 0 5%;
  background-color: var(--p-white);
  transform: translateX(100%);
  transition-duration: 500ms;
}

.navbar_top {
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: center;
  width: 100%;
  height: 50px;
  margin: 40px 0 0 0;
  padding: 0;
}

.navbar_top_div {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  width: 100px;
  height: 50px;
  margin: 0 6px 0 0;
  padding: 0;
}

.navbar_top_text {
  margin: 0;
  padding: 0;
  color: var(--p-black);
  font-family: inter;
  font-size: var(--p-extra-light);
}

.navbar_top_flag {
  position: relative;
  bottom: 1px;
  width: 30px;
  height: 20px;
  margin: 0 0 0 16px;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
}

.navbar_center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 0;
}

.navbar_center_link {
  display: inline-flex;
  margin: 25px 0 0 0;
  padding: 10px 12px;
  border-radius: 500px;
  color: var(--p-black);
  font-family: inter;
  font-size: var(--p-large);
  cursor: pointer;
}

.navbar_center_link:hover {
  background-color: var(--p-light-grey);
}

.navbar_center_link_top {
  margin: 150px 0 0 0;
}

/* ---------- Resize ---------- */

@media only screen and (max-width: 1148px) {
  .sidebar_top {
    width: 90%;
    padding: 0 5%;
  }

  .sidebar_top_left {
    width: 50%;
  }

  .sidebar_top_center, .sidebar_top_right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  #navbar {
    display: block;
  }
}