/* ========================== */
/* NAVIGATION:  */
/* ========================== */

/* STEP #1 (BIG SCREENS) */
.mobile-nav-toggle {
  display: none; 
}

/* STEP: #2 (BIG SCREENS) */
/* Horizontal alignment */
.primary-navigation ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 1em 0;
}

/* STEP #3 (ALL SCREENS) */
/* primary navigation_STYLING */
/* prymary navigation_BOUNCE EFFECT (transition) */
.primary-navigation ul a {
  display: block flex;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  transition: transform 0.4s ease;
  color: var(--clr-white);
  color: var(--clr-black);
  text-align: center;
}

/* STEP #4 (ALL SCREENS) */
/* primary navigation_HOVER BOUNCE EFFECT */
.primary-navigation ul a:hover {
  transform: translateY(-3px);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.lang-links-wrapper {
  /* margin-left: auto; */
  display: flex;
  gap: 1rem;
}
.lang-links-wrapper   {
  border: 2px solid black;
  padding: 5px 10px;
  /* padding-right: 10px; */
}


/* STEP #5 (SMALL SCREENS <= 640px/40em) */
/* Build mobile navigation TOGGLE MENU */
/* Users will click it to on and off the nav */
/* This refers to the button HTML element */
/* DISPLAY BLOCK: Bring the button back in */
/* POSITION ABSOLUTE: in order to place it where we want */
/* DISPLAY FLEX: the display flex property works fine with the ::before and ::after pseudo elements */
/* ::BEFORE: these are the two lines of the menu */
/* BOX SHADOW: Here the box shadow property creates the second line */
/* VISUALLY-HIDDEN CLASS(ACCESSABITLTY): Now since we brought back in the button there is still the TEXT 'Menu' in the button. What I want is to remove the text from the button because in this place I'm gonna create the hamburger menu but still I want the text 'MENU' to be red out by SCREEN READERS.  */
@media (max-width: 55em) {
  /* toggle box */
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 15px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-color: var(--clr-black);
    border: none;
    border-radius: 5px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    z-index: 10000;
  }
  
  /* toggle 2 lines */
  .mobile-nav-toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--clr-white);
    border-radius: 10px;
    box-shadow: 0 10px 0 var(--clr-white);
    transition: 0.2s;
    transform: translateY(-10px)
  }
  /* toggle 1 line */
  .mobile-nav-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--clr-white);
    border-radius: 10px;
    transition: 0.2s;
    transform: translateY(10px);
  }
  .mobile-nav-toggle.active::before {
    transform: translateY(0px) rotate(45deg);
    box-shadow: none;
  }
  .mobile-nav-toggle.active::after {
    transform: translateY(0px) rotate(-45deg);
  }

  /* Don't show the big screen menu here */
  .primary-navigation {
    display: none;
  }
  
  /* but show it when it's active */
  .primary-navigation.active {
    display: block;
    padding: 4rem;

    position: fixed;  
    top: 0;           
    left: 0;  
    width: 100%;      
    height: 100vh;    
    background-color: var(--clr-white); 
    padding: 4rem;
    z-index: 9999; 
  }
  .primary-navigation.active ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 
}

/* .lang-switch-navigation a {
  background-color: red;
  color: black;
} */

.visually-hidden {
  position: absolute;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
	white-space: nowrap !important; /* added line */
	border: 0 !important;
}


/* STEP #6 (SMALL SCREENS) */
/* HIDE THE PRIMARY NAVIGATION AND LEAVE ONLY THE TOGGLE */
/* We first build the nav for big screens and hide the menu */
/* Then we bring back the menu button and we made it to look like a toggle with the :before and :after */
/* and now we have both on the screen  */
/* but we do not want that */
/* Now we need to do the same thing but the other way around */
/* to hide the big screen nav and as soon as it's active (someone clicks on it) we bring it back but with new mobile styling and layout. */

