@font-face {
    font-family: 'protest';
    src: url('/fonts/ProtestRevolution.ttf');
}
@font-face {
    font-family: 'anton';
    src: url('/fonts/Anton.ttf');
}
@font-face {
    font-family: 'bahnschrift';
    src: url('/fonts/bahnschrift.ttf');
}

nav{
    width: 100%;
    position: fixed;
    z-index: 4;
    padding: 0.5rem;
}

.nav-colored { 
    background-color:#f1f1f1; 
    box-shadow: 1px 1px 10px 0px;
}
.nav-transparent { background-color:transparent;}

nav .navbar {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0px auto;
}

nav .navbar div{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav .navbar div img{
    width: 15rem;
}

nav ul{
    display: flex;
    gap: 2rem;
}

nav ul li {
    list-style: none;
    font-family: 'bahnschrift';
    font-size: 1.5rem;
}

nav ul li a{
    text-decoration: none;
    color: #0246F3;

}

.navbar .toggle,.overlay,.menu{
    display: none;
}


@media only screen and (max-width: 700px){
    nav .navbar div img{
        width: 10rem;
        /* margin-top: 0.2rem; */
    }
    nav .navbar ul {
        display: none;
    }
    nav .navbar {
        display: flex;
        width: 80%;
        align-items: center;
        color: white;
        position: relative;
        z-index: 6;
      }
  
      .menu {
        font-family: 'bahnschrift';
        display: flex;
        flex-direction: column;
        background-color: #0246F3;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100%;
        padding-top: 6rem;
        transition: right 0.3s ease;
        z-index: 2;
      }
  
      .menu.open {
        right: 0;
      }
  
      .menu a {
        margin-top: 1rem;
        border-bottom: #f1f1f1 solid 1px;
        padding: 10px 15px;
        color: white;
        text-decoration: none;
        display: block;
      }
  
      .menu a:hover {
        background-color: #F3C219;
      }
  
      .navbar .toggle {
        margin-right: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
        position: relative  ;
        right: 0;
        /* z-index: 10; */
      }
  
      .bar {
        height: 3px;
        background-color: #0246F3;
        border-radius: 2px;
        transition: all 0.3s ease;
      }
  
      .toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: #f1f1f1;

      }
  
      .toggle.open .bar:nth-child(2) {
        opacity: 0;
        background-color: #f1f1f1;

      }
  
      .toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: #f1f1f1;

      }
  
      .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
      }
  
      .overlay.show {
        display: block;
      }
}