body {
    padding:0;
    margin:0;
    font-family: 'Arial', 'sans-serif';
}

.titlebar{
    background-color: #1e3160;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    gap: 2rem;
    padding: 1rem;
   /*  margin-bottom: 10px; */
    position: sticky;
    top: 0;
}

.titlebar img{
    display: inline-flex;
    padding: 3px;
    cursor: pointer;
    width: 125px;
}

.titlebar label{
   
    font-weight: 700;
    font-size: 22px;
}

.item {
    flex-direction: row;
    width: 100%;
    height: 4rem;
    line-height: 4.5rem;
    margin-left: -20px;
}



@media only screen and (max-width :430px) and (orientation:portrait) { 

  body {
        padding:0;
        margin:0;
        font-family: 'Inter, system-ui, Avenir, Helvetica, Arial, sans-serif';
      
    }
	
  .titlebar label{
        font-weight: 700;
        font-size: 22px !important;
    }
  .item {
        align-items: center;
    }
 }
 
 @media only screen and (max-width: 414px) and (orientation:portrait) {
		
	.titlebar img{
        display: inline-flex;
        padding: 3px;
        cursor: pointer;
        width: 61px;
    }
    .titlebar label{
        font-weight: 700 !important;
        font-size: 22px !important;
		margin-top: 10px !important;

    }
	
	

    .item {
        align-items: center;
        height: 2rem;
        line-height: 1.5rem !important;
       
    }
    body > div.titlebar > label > span {
        display: block;
        height: 2rem;
        line-height: 1.5rem !important;
    }
	
	
}

/*  @media only screen and (max-width: 280px) and (orientation:portrait) { 

    body {
        padding: 0;
        margin: 0;
        font-family: 'Inter, system-ui, Avenir, Helvetica, Arial, sans-serif';
    }
    .titlebar img{
        display: inline-flex;
        padding: 3px;
        cursor: pointer;
        width: 61px;
    }
    .titlebar label{
        font-weight: 700;
        font-size: small;
    }

    .item {
        align-items: center;
        height: 1rem;
        line-height: 1rem;
        margin-top:20px;
    }
    label  span {
        display: block;
        height: 1rem;
        line-height: 1rem;
    }
 } */

  

/* https://stackoverflow.com/questions/40862933/css-flexbox-within-flexbox
/* This is because of the way Flexbox works.

Since the .horizontal container is a flex child itself, it automatically adjusts to the size of the other children. Only allowing space for the overflowing content, which are the children of the .horizontal itself. */

/* Manually applying the width will result in the space being created for the items, and the justify-content: space-between will kick in. */