/*
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/') format('woff2'),
    url('../fonts/Quicksand/Quicksand/static/Quicksand-Medium.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}

*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
}


@media (max-width: 768px) {
  header {
    padding: 0px 10px;
  }

  .logo-container {
    gap: 5px;
  }

  nav {
    display: none;
  }

  .profile-pic-container {
    height: 145px;
  }

}

@media (min-width: 768px) {
  header {
    padding: 0px 25px;
  }

  .logo-container {
    gap: 20px;
  }

  nav {
    display: flex;
  }

  .profile-pic-container {
    height: 140px;
  }

  .header-registration-buttons-container {
    padding: 5px;
    border: solid rgba(255, 255, 255, 0.3) 1px;
  }

}


header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 75px;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 200;
  background-color: #333;
  box-shadow: 0px 1.5px 4px rgba(0, 0, 0, 0.3);

  /* -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  */
}

.logo-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.menu-icon {
  height: 23px;
  width: 23px;
  object-fit: contain;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: rgb(237, 237, 237);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
}

.logo span {
  display: flex;
  align-items: center;
  height: 100%;
}

/*
.logo::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -10px;
  z-index: -1;
  width: 49px;
  height: 49px;
  border: solid rgba(255, 255, 255, 0.3) 1.5px;
  background-color: rgba(255, 255, 255, 0.146);
  border-radius: 50%;
  transition: 0.3s ease;
}
*/

nav ul {
  display: flex;
  gap: 30px;

}

nav ul li {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li a {
  font-size: 14px;
  text-decoration: none;
  color: rgb(248, 246, 233);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  overflow: hidden;
  border-radius: 50px;
  z-index: 1;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0px;
  z-index: -2;
  top: 0px;
  left: 0px;
  width: 0%;
  background-color: rgb(135, 135, 135);
  border-radius: 50px;
  opacity: 1;
  transition: 0.3s ease;
  pointer-events: none;
}

nav ul li a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.5px;
  background-color: #333;
  border-radius: 50px;
  opacity: 1;
  transition: 0.3s ease;
  pointer-events: none;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  opacity: 1;
}

nav ul li a.active::before {
  background-color: rgb(84, 84, 84);
}

nav ul li a:hover::after {
    width: 100%;
  background-color: rgb(92, 92, 92);
}
nav ul li a.active::after {
  background-color: rgb(96, 96, 96);
}



/* Button to toggle profile info visibility */

.user-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff31;
}

/* Dropdown floating outside the header */
.profile-dropdown {
  position: fixed;
  top: 80px;
  right: 10px;
  background-color: white;
  min-width: 230px;
  max-width: 340px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 0px;
}

.profile-dropdown.active {
  display: flex;
}


.profile-pic-container {
  width: 100%;
  overflow: hidden;
  border-radius: 20px 20px 0px 0px;
}

.profile-pic-container .profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dropdown .text-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}


.username {
  font-size: 18px;
  text-align: center;
  margin-bottom: 7px;
  font-weight: bold;
  color: #555;
  margin-top: -5px;
}

.email {
  font-size: 14px;
  color: #555;
}


.student-number {
  font-size: 14px;
  color: #555;
}

.profile-dropdown .logout-button {
  display: block;
  margin-top: 15px;
  color: rgba(205, 205, 205, 0.822);
  text-decoration: none;
  border-radius: 50px;
  padding: 8px;
  text-align: center;
  border: solid rgba(152, 33, 0, 0.377) 1px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
  background-color: rgb(71, 71, 71);
}

.profile-dropdown .logout-button:hover {
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.1);
}


.header-registration-buttons-container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 50px;
}


.header-signup-button,
.header-login-button {
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 50px;
  border: solid rgba(255, 255, 255, 0.3) 1px;
  background-color: rgba(255, 238, 140, 0);
  cursor: pointer;
  color: rgba(248, 246, 233, 0.95);
  transition: 0.3s ease;
  text-decoration: none;
}

.header-signup-button:hover,
.header-login-button:hover {
  background-color: #454545;
}