@import "theme-colors.css";

html {
  scroll-behavior: smooth;
}

a.headerButton {
  text-decoration: none;
}

.logo {
  margin-left: 20px;
  width: 125px;
  height: 50px;
  margin-right: 10px;
  cursor: pointer;
}

.header {
  height: 55px;
  /*background-color: var(--bg-primary);*/
  background: transparent;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 100;

  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 5px 10px rgb(20, 20, 20);

  /*box-shadow: 0 2.5px 0 var(--bg-secondary);*/
}

.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.center.show {
  left: 100%;
  transform: translateX(-100%);
}

.headerButton {
  border: 2px solid var(--bg-card);
  border: none;
  border-radius: 50px;
  background-color: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 10px;

  transition: all 0.2s ease-in-out;
}

.headerButton:hover {
  background-color: var(--bg-tertiary);
}

.loginSingUp {
  border: 2px solid var(--text-muted);
  border-radius: 50px;
  background-color: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 5px;

  transition: all 0.2s ease-in-out;
}

.right {
  display: flex;
  align-items: center;
}

.signUp {
  margin-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--bg-accent);
  border: none;

  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.2);
}

.login:hover, .logOutBtn:hover {
  background-color: var(--bg-tertiary);
}
.signUp:hover {
  background-color: var(--bg-accent);
  filter: brightness(1.2);
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.loginSingUp:active {
  background-color: #67a0e2a2;
}

.hamburger {
  display: none;
  font-size: 30px;
  font-weight: bold;
  color: var(--text-primary);
  margin-right: 20px;
  cursor: pointer;
  user-select: none;
}

.right.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: var(--bg-primary);
  width: 200px;
  padding: 10px;
  border-bottom-left-radius: 20px;
  box-shadow: -3px 5px 10px rgb(20, 20, 20);
}

.right.show button {
  padding: 10px 10px;
}

.right.show .login,
.right.show .signUp {
  width: 190px;
  margin: 5px 10px;
  text-align: center;
}

.right.show .signUp {
  align-self: center;
  margin-top: 10px;
}

.themeButton {
  display: flex;          
  justify-content: center;
  align-items: center;
  width: 50px;            
  height: 50px;
  padding: 0;             
  border: none;
  background-color: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.theme {
  width: 28px;
  height: 28px;
  transition: all 0.1s ease-in-out;
}

.theme:hover {
  width: 32px;
  height: 32px;
}

.theme:active {
  width: 24px;
  height: 24px;
}

.light-theme .theme {
  filter: brightness(0) saturate(100%);
}

@media (max-width: 450px) {
  .center {
    display: none;
  }

  /* hide right menu by default */
  .right {
    display: none;
  }

  /* BUT show it when .show is toggled by JS */
  .right.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--bg-primary);
    width: 200px;
    padding: 10px;
    border-bottom-left-radius: 20px;
    box-shadow: -3px 5px 10px rgb(20, 20, 20);
  }

  .hamburger {
    display: block;
  }
}