/*  test it */

.menu {
  width: 50%;
  float: right;
}


.nav-bar {
  overflow: hidden;
  display: contents;
  justify-content: space-between;
  position: fixed; /* Set the navbar to fixed position */
  top: 0; /* Position the navbar at the top of the page */
  z-index: 1;
}

.nav-bar div ul li a {
    /*float: right;*/
	color: var(--text-color);
	/*font-family: Georgia, "Times New Roman", Times, serif;*/
	font-size: 24px;
	letter-spacing: 0.075em;
	/*line-height: 129px;*/
	text-decoration: none;
}

.nav-bar ul li {
    align-content: baseline;
    position: relative;
    float: right;
    list-style-type: none;
}




#menu {
    /*position: relative;*/
    position: fixed;
    float: right;
    width: 95%;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px 0 rgba(22,22,23,0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px 30px;
    z-index: 9;
}

#menu, #menu ul {
    list-style: none;
}

#menu > li {
    float: right;
    position: relative;
    border-right: 1px solid rgba(0,0,0,0.1);
    box-shadow: 1px 0 0 rgba(0,0,0,0.1);
    perspective: 1000px;
    box-sizing: content-box;
    text-wrap-mode: nowrap;

}

#menu > li:first-child{
     box-shadow: -1px 0 0 rgba(0,0,0,0.1), 1px 0 0 rgba(255,255,255,0.25);

}

#menu a {
    display: block;
    position: relative;
    z-index: 0;
    padding: 13px 20px 13px 20px;
    text-decoration: none;
    color: white;
    line-height: 1;
    font-size: 24px;
    /*background: transparent;*/
    font-weight: 400;
    transition: all 0.25s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: auto;
}


#menu > li:hover > a {
    background: #63422a;
    color: rgba(0, 233, 252, 1);
    text-shadow: none;

}

#menu li ul {
    position: absolute;
    /*left: 0;*/
    right: 0;
    z-index: 1;
    /*width: 130px;*/
    padding: 0;
    opacity: 0;
    visibility: hidden;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: transparent;
    overflow: hidden;
    transform-origin: 50% 0%;
    text-align: right;

}


#menu li:hover ul{
    padding: 15px 0;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px 0 rgba(22,22,23,0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    opacity: 1;
    visibility: visible;
    animation-name: swingdown;
    animation-duration: 1s;
    animation-timing-function: ease;
}

@keyframes swingdown{
    0% {
        opacity: 0.99999;
        transform: rotateX(90deg);
    }
    30%{
        transform: rotateX(-20deg) rotateY(5deg);
        animation-timing-function: ease-in-out;
    }
    60%{
        transform: rotateX(20deg) rotateY(-3deg);
        animation-timing-function: ease-in-out;
    }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  background: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
}


#menu  a:active, a:hover {
    background: #63422a;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */


@media  (max-width: 1016px) {
    #menu { width: 95%; }
    #menu  a { font-size: 30px;}
    #menu li ul {
         width: 150px;
         /*right: 90px;*/
         height: fit-content;
     }
}


@media (max-width: 922px) {
   #menu { width: 85%;  }
   #menu li {
       display: none;
   }
   .hamburger {
       display: flex;
       height: fit-content;
  }
}


@media screen and (max-height: 450px) {
  /*#menu { width: 70%; }*/
}




#mySidebar {
    position: fixed;
    float: right;
    width: 95%;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px 0 rgba(22,22,23,0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px 30px;
    z-index: 9;
    height: fit-content;
}



