
/*** Main Container: to use in all pages that include header */

#c_main
{
    background: white;
    position: relative;
    margin:20px;
}

/*** Making everything responsive */

* {                                    
    box-sizing: border-box; 
} 

/*** Main header container */

#h_main 
{
   background:white;
   font-size:14px;
   font-family:sans-serif;
   border:2px solid sienna;
   border-bottom: 5px solid sienna;
   border-radius: 10px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 20px;
   padding: 20px;
}

@media(orientation: portrait)    /* orientation: portrait */
{
   #h_main
   {
     flex-direction: column;
   }
}

/*** Navigation menu */

.navmenu
{  
   background:white;  
   color:#222;
   height:0;             
   width:0;               
   position: absolute;
   top: 160px;      
   right:30px;
   overflow-x: hidden;  /* Disable horizontal scroll */
   line-height:30px;
   box-shadow:1px 1px 1px  sienna;
   padding-top: 20px;
   padding-bottom: 20px;
   border-radius: 10px;
   z-index:1;        /* on top */
   font-family:sans-serif;
   font-size:14px;
}

.navmenu a
{
   padding: 8px 8px 8px 32px;
   text-decoration: none;
   color: #222;
   display: block;
}

.navmenu a:hover 
{
   color:green;   
}

.navmenu a:active
{
   color: green;
}

/*** Photo & user name  */

.user_photo
{
   width:50px;
   height:50px;
   border: 2px solid white;
   border-radius:25px;
}

.user_name
{ 
   color:#002907;
   padding:20px;
   line-height:2;
   width:fit-content;
   white-space: nowrap;
}

/*** Notifications */ 

.red_dot
{  width:12px;
   height:12px;
   border: 2px solid white;
   border-radius:10px;
   z-index: 1;
}

b.unread
{
    background:#ed4747;
    color:white;
    text-align:center;
    font-size:10px;
    display:inline;
    padding:4px;
    border-radius:10px;
}

/*** Search */

#h_search
{
   display: flex;
   flex-direction: row;
   gap: 1rem;
   justify-content: center;
   align-items: center;
   margin-bottom: 40px;
   padding: 20px;
   border-radius: 10px;
   border: 1px solid sienna;
}

@media(orientation: portrait)    /* orientation: portrait */
{
  #h_search
  {
     flex-direction: column;
  }
}

#searchlabel
{  
   width:auto;  
}

.searchlist
{
   background:white;
   color:#222;
   width:240px;  
   padding: 10px;
   border:1px solid sienna;   
   border-radius:10px;
   text-indent: 10px;
   outline: none;
}

#searchbtn
{ 
   background: url(/assets/images/search.png);
   font-size:0;
   border: 0;
   height: 40px;
   width: 40px;
}
  
#searchbtn:focus
{  
   background: url(/assets/images/search_focus.png);
   outline: none;
}
 