.container{
    max-width: 1200px;
    margin: 0 auto;
    background-color: gray;
    display: flex;justify-content: center;
}
#menu{
    display: flex;
    justify-content: center;
}
.menu-item a{
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    padding: 10px 20px;
    display:block;
    color: white;
}
.menu-item a:hover{
    background-color: red;
}
.b{

    font-size: 17px;
    font-weight: bold;
    padding: 10px 20px;
    color: white;
    background-color: green;
    cursor: pointer;border: 1px solid red;
}
#o, #c{
    display: none;
}
#submenu{
    position: relative;
}
#submenu-items{
    background-color: black;
    position: absolute;
    width: 200px;
    top: 40px;
    display: none;
}
#submenu:hover #submenu-items{
   display: block;
}
.sbi{
      font-size: 17px;
    font-weight: bold;
    padding: 10px 20px;
    display:block;
    color: white;
}
.sbi:hover{
 background-color: red;
}
.activebg{
    background-color: red;
}
@media screen and (max-width:800px) {
    #o{
        display: flex;
    }
.container{
   position: relative;
   justify-content: end;z-index: 100;
}

    #menu{
    display:flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    position: absolute;
   top:43px;
       left:0;
    width:100%;
    height: -0vh;
    background-color: gray;
    transition:all 0.9s ease;
    z-index: -1;opacity: 0;
    
}
.menu-item a{
    color: rgb(255, 255, 255);
    text-align: left;
}
#menu.active{
    display: flex;
       height: 100vh;
        opacity: 1;   
 



}
#submenu-items.activeitems {
  display: flex;
  flex-direction: column;
}
}
