header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    z-index: 1;
    background: #1a1a1a;
}



header img {
    height: 28.07px;
    width: auto;
    cursor: pointer;
}

#red {
    display: none;
}

/*.navmenu{
    background-color: #7C1818;
  }
  */

  .burgersize{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease-in-out;
  }

  .burger{
    display: none;
    content: '';
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }
  .burger::before,
  .burger::after{
    position: absolute;
    content: '';
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  .burger::before{
    transform: translateY(-8px);
  }

  .burger::after{
    transform: translateY(8px);
  }

  /*animation */

  .burgersize.open .burger{
    transform: translateX(-50px);
    background: transparent;
  }

  .burgersize.open .burger::before{
    transform: rotate(45deg) translate(35px, -35px);
  }

  .burgersize.open .burger::after{
    transform: rotate(-45deg) translate(35px, 35px);
  }
.menu a {
    color: #CACACA;
    font-size: 16px;
    font-weight: 500;
    padding: 1rem;
    text-decoration: none;
    line-height: 32px;
    transition: 0.3s;
    position: relative;
}

.menu a:hover {
    color: white;
}

#menu::after {
    content: '';
    height: 3px;
    position: absolute;
    width: 100%;
    background-color: white;
    left: 0;
    right: 0;
    top: 0px;
    opacity: 0;
    transition: 0.07s ease-out;
    border-radius: 10px;
}

#menu:hover::after {
    opacity: 1;

}

#promo {
    color: #a70f0f;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    background-color: white;
    padding: 2px 16px;
    border-radius: 5px;
    line-height: 28.07px;
    transition: 0.3s;
    margin: 0;
}

#promo:hover {
    background-color: rgb(222, 222, 222);

}

.logo {
    display: flex;
    justify-content: baseline;
    align-items: center;
    width: 25vw;
    height: 32px;
}

.promo {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 25vw;
    height: 32px;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50vw;
    height: 32px;
}


  .nav-scrolled2 .burger,.nav-scrolled2 .burger::before,.nav-scrolled2 .burger::after
  {
    background-color: #606060;
  }

.nav-scrolled2 #menu {
    color: #606060;
}

.nav-scrolled2 #red {
    display: block;
}

.nav-scrolled2 #white {
    display: none;
}

.nav-scrolled2 #menu:hover {
    color: #1b1b1b;
}

.nav-scrolled2 #promo {
    color: #ffffff;
    background-color: #e0261c;
}

.nav-scrolled2 #promo:hover {
    background-color: #b51e16;
}

.nav-scrolled2 #menu::after {
    background-color: #e0261c;
}

.mobilemenu {
    display: flex;
    flex-direction: row;
    right: 0;
    height: calc(100vh - 53px);
    top: 56px;
    width: 500px;
    display: none;
    position: fixed;
    background-color: #1a1a1a;
    transition: all 0.3s ease-in-out;
    box-shadow: -8px 0px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.mobilemenu a {
    text-decoration: none;
    color: white;
    background-color: #1a1a1a;
    text-align: center;
    padding: 16px 24px;
}

.menucontainer {
    border-bottom: solid 1px #2f2f2f    ;
    line-height: 14px;
    display: flex;
    justify-content: baseline;
    align-items: center;
    height: 23.34px;
    background-color: #ffffff;
}


@media only screen and (max-width: 1400px) {
    header{
        height: 51.2px;
    }
    header img {height:  20px;
    }
    .logo{
        height: 25.6px;
    }
    .menu a{
        height: 25.6px;
        padding: 12.8px;
        line-height: 25.6px;
        font-size: 12.8px;
    }
}

@media only screen and (max-width: 1200px) {
    header {
        height: 56px;
    }

    

    #menu {
        display: none;
    }

    header {
        padding-right: 0px;
    }

  .burgersize,.burger{
    display: block;
  }

    .mobilemenu.isopen {
        display: block;
    }

    .fixed {
        overflow: hidden
    }

    .light {
        background-color: #ffffff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    .light #red {
        display: block;
    }

    .light #white {
        display: none;
    }

.light .burger,.light .burger::before,.light .burger::after
{
  background-color: #1b1b1b;
}

    .light #menu:hover {
        color: #121212;
    }

    .light #promo {
        color: #ffffff;
        background-color: #e0261c;
    }

    .light #promo:hover {
        background-color: #b51e16;
    }

    .light #menu::after {
        background-color: #e0261c;
    }
}



@media only screen and (max-width: 500px) {
    .mobilemenu {
        width: 100vw;
    }

    #promo {
        display: none;
    }
}
