header {
  background-color: var(--tertiary-color);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header #left-header {
  display: flex;
  align-items: center;
}

header #left-header a {
  color: var(--tertiary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

header #left-header a .logo {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;

  overflow: hidden;
}

header #left-header a .logo img {
  height: 40%;
  width: 40%;

  margin-right: 10px;
  border-radius: 5px;
  transition: all 0.2s;

  overflow: hidden;
  overflow-clip-margin: 0px;
}

header #left-header a .name {
  text-align: center;

  position: relative;
  top: 0;
  left: -125px; /* Keep the name in the same place, as beta tag is added */
}

header #left-header a .name h1 {
  color: var(--primary-color);
  font-size: 40px;
  margin: 0;
}

header #left-header a .name #beta {
  color: var(--quaternary-color);
  font-size: 10px;
  margin: 0;
  padding: 2px;

  position: relative;
  top: -27px;
  left: 35.5%; /* Align the beta tag with the logo */
  transform: translateX(-50%); /* Center the beta tag horizontally */

  border: 1px solid var(--warning-color);
  border-radius: 5px;
  background-color: var(--warning-color);
}

header #settings {
  color: var(--tertiary-color);
  display: block;
  /* padding: 10px; */
  text-decoration: none;

  position: relative;
  /* display: inline-block; */

  border-radius: 5px;
}

header #settings:hover {
  background-color: var(--primary-color);
}

header #settings .dropbtn {
  background-color: var(--secondary-color);
  color: var(--tertiary-color);
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;

  border-radius: 5px;
  transition: all 0.2s;
}

header #settings .dropbtn:hover,
header #settings .dropbtn:focus {
  background-color: var(--primary-color);
}

header #settings .dropbtn:focus {
  outline: none;
}

header #settings .dropbtn #settings-arrow {
  display: inline-block;
  margin-left: 5px;
  transition: all 0.2s;
}

header #settings .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;

  /* padding: 1px; */

  border-radius: 5px;
  transition: all 0.2s;
}

header #settings .dropdown-content p {
  color: var(--tertiary-color);
  margin: 0;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

header #settings .dropdown-content a {
  color: var(--tertiary-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 5px;
  transition: all 0.2s;
}

header #settings .dropdown-content a:hover {
  background-color: var(--primary-color);
  cursor: pointer;
}

header #settings .dropdown-content button {
  color: var(--tertiary-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 5px;
  transition: all 0.2s;

  background-color: var(--secondary-color);
  border: none;
  width: 100%;
  text-align: left;
}

header #settings .dropdown-content button:hover {
  background-color: var(--primary-color);
  cursor: pointer;
}

header #settings:hover .dropdown-content,
header #settings:focus .dropdown-content,
header #settings:active .dropdown-content,
header #settings .dropdown-content.show {
  display: block;
  border-radius: 0 0 5px 5px;
  /* Make sure it doesnt fall off screen */
  right: 0;
  left: auto;
}

header #settings .dropdown-content .dropdown-divider {
  display: none;
  height: 1px;
  margin: 0;
  overflow: hidden;
  background-color: var(--octonary-color);
}

header #settings .dropdown-content .dropdown-divider.show {
  display: none;
  background-color: var(--octonary-color);
}

header #settings:hover .dropbtn,
header #settings:focus .dropbtn,
header #settings:active .dropbtn {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
}

@media only screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  header #left-header a {
    flex-direction: column;
    align-items: center;
  }

  header #left-header a .logo {
    margin-bottom: 20px;
    align-items: center;
    display: flex;
  }

  header #left-header a .logo img {
    max-width: 75%;
    max-height: 75%;
    width: auto;
    height: auto;
    margin: 0 auto;
  }

  header #left-header a .name {
    text-align: center;
    position: relative;
    z-index: 0;
    left: 0;
    margin-bottom: 15px;
  }

  header #left-header a .name h1 {
    position: relative;
    z-index: 0;
    display: inline-block;
  }

  header #left-header a .name #beta {
    position: absolute;
    top: -5px;
    left: 31.5%; /* Align the beta tag with the logo */
    transform: translateX(-50%); /* Center the beta tag horizontally */
    z-index: 1;
  }

  header #settings {
    text-align: center;
  }

  header #settings .dropbtn {
    width: 100%;
  }

  header #settings .dropdown-content {
    position: relative;
    right: auto;
    left: 0;
  }

  header #settings .dropdown-content button {
    text-align: center;
  }

  header #settings .dropdown-content .dropdown-divider {
    display: none;
    background-color: var(--octonary-color);
  }

  header #settings .dropdown-content .dropdown-divider.show {
    display: block;
    background-color: var(--octonary-color);
  }
}

@media only screen and (max-width: 400px) {
  header #left-header a .name h1 {
    font-size: 40px;
  }

  header #left-header a .name #beta {
    font-size: 10px;
    top: -4px;
    left: 31.4%;
  }

  header #left-header a .name p {
    font-size: 15px;
  }

  header #settings .dropdown-content {
    min-width: 100px;
  }

  header #settings .dropdown-content p,
  header #settings .dropdown-content a,
  header #settings .dropdown-content button {
    font-size: 12px;
  }
}

@media only screen and (max-width: 300px) {
  header #left-header a .name h1 {
    font-size: 30px;
  }

  header #left-header a .name #beta {
    font-size: 7.5px;
    top: -5.5px;
    left: 31.5%;
  }

  header #left-header a .name p {
    font-size: 12px;
  }

  header #settings .dropdown-content {
    min-width: 100px;
  }

  header #settings .dropdown-content p,
  header #settings .dropdown-content a,
  header #settings .dropdown-content button {
    font-size: 10px;
  }
}
