function changeLanguage() {
  if ($( '.language-option--eng' ).hasClass( 'language-option--selected' )) {
    $( '.language-option--eng' ).removeClass( 'language-option--selected' );
    $( '.language-option--ar' ).addClass( 'language-option--selected' );
    $( '.cover-header--ar' ).removeClass( 'opacity-zero' );
    $( '.cover-header--eng' ).addClass( 'opacity-zero' );
  } else {
    $( '.language-option--eng' ).addClass( 'language-option--selected' );
    $( '.language-option--ar' ).removeClass( 'language-option--selected' );
    $( '.cover-header--ar' ).addClass( 'opacity-zero' );
    $( '.cover-header--eng' ).removeClass( 'opacity-zero' );
  }
};




var status = "menu-hidden";
function showMenu() {
  var fakeBurger = document.getElementById('burger');
  var firstBar = document.getElementById('first-bar');
  var thirdBar = document.getElementById('second-bar');
  var secondBar = document.getElementById('third-bar');
  var menuSlide = document.getElementById('menu-slide');
  var menuList = document.getElementById('menu-list');

  if (status === "menu-shown") {
    firstBar.classList.remove('first-bar-animation');
    secondBar.classList.remove('second-bar-animation');
    thirdBar.classList.remove('third-bar-animation');
    menuSlide.classList.remove('menu-slide-appear');
    menuList.classList.remove('menu-list-fade-drop');
    // $( '.cover-header' ).removeClass( 'opacity-zero' );
    status = "menu-hidden";
    setTimeout(function() {
      menuList.classList.add('menu-list-fade-drop');
      $( '.menu-slide' ).addClass( 'display-none' );
    }, 300);
  } else {
    status = "menu-shown";
    $(".burger span").css({"background-color": "white !important", "box-shadow": "rgba(30, 30, 30, .6) 0px 1px 5px"});
    menuSlide.classList.add('menu-slide-appear');
    firstBar.classList.add('first-bar-animation');
    secondBar.classList.add('second-bar-animation');
    thirdBar.classList.add('third-bar-animation');
    // $( '.cover-header' ).addClass( 'opacity-zero' );
    $( '.menu-slide' ).removeClass( 'display-none' );
    setTimeout(function() {
      menuList.classList.add('menu-list-fade-drop');
    }, 200);
  }
};
