/* assets/css/header.css */

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Inconsolata:wght@200..900&family=Tangerine:wght@400;700&family=UnifrakturMaguntia&display=swap");

/* Universal selectors */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Element selectors */
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #fff;
}

span {
  color: #fff;
}

a:hover,
span.linkHeader:hover,
a.linkHeader.actievePagina,
span.linkHeader.actievePagina {
  background: #0000ff;
}

.logo a:hover {
  background: none;
}

/* General classes */
.link-container {
  display: flex;
  align-items: center;
}

.pipe {
  color: #fff;
  font-size: 2rem;
  margin: 0 5px;
}

.pad {
  padding: 8px 10px;
}

.icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon {
  color: #fff;
  cursor: pointer;
  transition: scale 0.2 ease;
}

.icon:hover {
  scale: 1.15;
}

.icon:active {
  scale: 0.95;
}

/* Navbar classes */
.navbar-primary,
.navbar-secondary {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.navbar-primary {
  height: 60px;
  padding: 10px 40px;
  justify-content: space-between;
  background-color: #565e55;
}

.navbar-secondary {
  height: 40px;
  padding: 0 2rem;
  justify-content: center;
  background-color: #697367;
}

.navbar-secondary .linkHeader {
  width: 100px;
}


.navbar-primary .links,
.navbar-secondary .links {
  display: flex;
}

.navbar-primary li a,
.navbar-primary li span,
.navbar-secondary li a,
.navbar-secondary li span {
  text-align: center;
  padding: 10px;
  font-family: "Cabin", sans-serif;
  font-size: 0.875rem;
  font-weight: 900;
  display: block;
  position: relative;
  transition: font-size 1500ms ease;
  cursor: pointer;
  border-radius: 5px;
}

.navbar-primary li {
  display: flex;
  align-items: center;
}

.navbar-primary .toggle_btn,
.navbar-secondary .toggle_btn {
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* Logo */
.navbar-primary .logo img,
.navbar-secondary .logo img {
  width: 100%;
  max-width: 20rem;
  min-width: 10rem;
  height: auto;
  min-height: 1rem;
}

/* Dropdown menu */
.dropdown_menu {
  display: none;
  position: absolute;
  right: 2rem;
  top: 60px;
  height: 0;
  width: 250px;
  background: #697367b3;
  backdrop-filter: blur(15px);
  border-radius: 10px;
  overflow: hidden;
  transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
  height: 250px;
}

.dropdown_menu li {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #a49b9b;
}

.sub-dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #565e55;
  border-radius: 10px;
  z-index: 3;
}

.dropdown-menu li:hover .sub-dropdown-menu {
  display: block;
}

.sub-dropdown-menu li a {
  text-decoration: none;
  display: block;
  width: 100px;
  text-align: left;
}

.sub-dropdown-menu li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-primary .dropdown,
.navbar-secondary .dropdown {
  position: relative;
}

.navbar-primary .dropdown .dropdown-menu,
.navbar-secondary .dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #565e55;
  border: rgba(255, 255, 255, 0.1) solid 1px;
  border-radius: 10px;
  z-index: 2;
}

.navbar-primary .dropdown:hover .dropdown-menu,
.navbar-primary .dropdown:focus-within .dropdown-menu,
.navbar-secondary .dropdown:hover .dropdown-menu,
.navbar-secondary .dropdown:focus-within .dropdown-menu {
  display: block;
}

.navbar-primary .dropdown-menu li a,
.navbar-secondary .dropdown-menu li a {
  display: block;
  width: 100px;
  text-align: center;
}

.navbar-primary .dropdown-menu li:not(:last-child),
.navbar-secondary .dropdown-menu li:not(:last-child) {
  border-bottom: rgba(255, 255, 255, 0.1) solid 1px;
}

.navbar-primary .dropdown-menu li:hover,
.navbar-secondary .dropdown-menu li:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 10px 10px;
}

.navbar-primary .dropdown-menu li:not(:last-child):hover,
.navbar-secondary .dropdown-menu li:not(:last-child):hover {
  border-radius: 10px 10px 0 0;
}

/* Ensure .dropdown-menu li uses flexbox to align items */
.dropdown-menu > li {
  display: flex;
  align-items: center;
}

/* Use inline-flex on overview-magazines to align text and arrow */
.overview-magazines {
  display: flex;
  align-items: center;
}

/* Ensure the arrow doesn't stretch the container */
.overview-magazines .arrow {
  margin-left: 8px; /* Space between text and arrow */
  display: inline-flex;
  align-items: center;
  height: 100%; /* Ensure arrow is vertically aligned */
}

/* Prevent the arrow from stretching the container */
.overview-magazines .arrow > i {
  font-size: 0.75rem; /* Adjust size as needed */
  color: #fff; /* Adjust color to match your design */
  transition: transform 0.2s ease; /* Smooth transition */
}

/* Rotate the arrow on hover */
.dropdown-menu > li:hover > .overview-magazines > .arrow > i {
  transform: rotate(90deg); /* Rotate arrow on hover */
}

/* Header classes */
header {
  background-color: #697367;
}

.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
  background-color: #697367;
}

.index-header {
  background-color: transparent !important;
}

/* Form classes */
#loginForm {
  display: flex;
  flex-direction: column;
}

#loginForm input {
  border: 1px solid black;
  border-radius: 5px;
  padding: 3px;
}

#loginForm input[type="submit"] {
  padding: 5px 0;
}

/* Container classes */
.container-info {
  display: flex;
  flex-direction: column;
}

.container-info input,
.container-info button {
  margin-bottom: 10px;
}

.container-info button {
  padding: 4px;
  border: 1px solid #000;
  border-radius: 5px;
}

.container-info button:hover {
  background-color: #a49b9b;
}

.container {
  border-top: 1px dashed #d5d5d5;
  padding-top: 5px;
}

.container span {
  color: #0000ff;
}

.register {
  margin-right: 10px;
}

#loginMessage {
  display: none;
  align-self: center;
  color: #4caf50;
  padding: 10px 10px 0;
}

/* Popup styles */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  background-color: #c6c1c1;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
}

.popup-content {
  max-width: 400px;
  margin: 0 auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.fadeIn {
  animation: fadeIn 0.5s ease-out;
}

/* Keyframes for animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Breadcrumb styles */
ul.breadcrumb {
  align-self: flex-start;
  list-style: none;
}

ul.breadcrumb li {
  display: inline;
  font-size: 12px;
  color: #000000;
}

ul.breadcrumb li + li:before {
  padding: 8px;
  color: #ffffff;
  content: "\276F";
}

ul.breadcrumb li a {
  text-decoration: none;
}

ul.breadcrumb li a:hover {
  color: #000000;
}

/* Media queries */
@media (max-width: 768px) {
  .navbar-primary {
    padding: 0 1rem;
  }

  .fixed-header {
    padding: 0;
  }

  .navbar-primary .links,
  .navbar-primary .icon {
    display: none;
  }

  .navbar-primary .toggle_btn {
    display: block;
  }

  .dropdown_menu {
    display: block;
  }

  .navbar-primary .logo img {
    width: 80%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .fixed-header {
    padding: 0;
  }

  .dropdown_menu {
    left: 2rem;
    width: unset;
  }
}

#muteButton {
  background: transparent;
  border: none;
}
