body{
    height: 100%;
    min-width: 1px;
    font-family: Helvetica,Arial,Verdana,sans-serif;
    font-size: 12pt;
}


header{
    background: linear-gradient(to right, #111827, #1e3a8a, #003eaa);
    height: 60px;
    display: grid;
    grid-template-areas: "headerleft headerleftmid headerrightmid  headerright" ;
    grid-template-rows: 58px;
}

#main {
    display: grid;
    grid-template-areas: "sidebar content";
    grid-template-rows: 100%;
    grid-template-columns: 240px;
}


#header-left{
    display: inline-grid;
    grid-area: headerleft;
    justify-items: start;
}
#header-leftmid{
    display: inline-grid;
    grid-area: headerleftmid;
    justify-items: start;
    align-items: center;
}
#header-rightmid{
    display: inline-grid;
    grid-area: headerrightmid;
    justify-items: end;
    align-items: center;
}
#header-right{
    display: inline-grid;
    justify-items: end;
    grid-area: headerright;
}


#nav-burger i{
    color: white;
    grid-row-start: 1;

}

#userloginsb{
    color: white;
    display: inline-block;
    float: left;
}

    
/*
#miniflag{
    display: inline-block;
    position: absolute;
    top:4px;
    left: 4px;
}
*/

#nav-burger{
    width: 30px;
    display: inline-block;
    vertical-align: bottom;
    padding: 5px;
    text-align: center;
    font-size: 24px;
    margin-top: 15px;
    background-color: transparent;
    border-style: none;
}

#right-content{
    float: right;
}

.whitetext{
    color: white;
    font-family: "sans-serif";
    font-size: 16pt;
}


#linkssb{
    grid-area: sidebar;
}


#sidefoot, #linkssb{
    padding-top:10px;
    padding-left: 10px;
    background-color: #111827;
    color: white;
}

#sidefoot a, #linkssb a {
    box-sizing: border-box;
    display: inline-block;
    width: 200px;
    height: 35px;
    border-radius: 3px;
    padding: 5px 10px;
    margin: 0 10px;
}

#sidefoot a:hover,#linkssb a:hover,span.menubutton:hover{
    background-color: #204070;
}

#sidefoot hr{
       width: 180px;
       color: #404070;
       margin: 0 10px;
       padding: 0 10px;
}


#linkssb a, #sidefoot a{
    height: 40px;
    text-decoration: none; 
    color: #eee;
}
#linkssb > a i , #sidefoot > a i{
    width: 20px;
}
#content {
    grid-area: content;
    grid-row: 1 / span 2;
}

a.activeLink {
    border: 1px solid #ddddff;
}

span.menubutton{
    box-sizing: border-box;
    display: inline-block;
    width: 200px;
    height: 35px;
    border-radius: 3px;
    padding: 5px 10px;
    margin: 5px 10px;
    border: 1px solid #003eaa;
}

span.menubutton.collapsed + span.menugroup{
    display: none;
}

span.menubutton i {
    padding-top: 4px;
    float: right;
}
span.menugroup a{
    background-color: #1e3a8a;
}

@media (width < 1285px){
    #headerlogos > a, #totalmarket, #headerlogos img{
        display: none;
    }
    
    #header-right{
        display: none;
    }
    
    header{
        display: grid;
        grid-template-areas: "headerleft headerleftmid headerrightmid" ;
        grid-template-rows: 85px;
    }
}

@media screen and (orientation: portrait) {
    #linkssb{
        position: absolute;
        left: 0px;
        top: 85px;
        width: 230px;
        z-index: 10;
        display: none;
    }
    
    #main {
        display: block;
        gridTemplateColumns: 0px;      
    }

    #header-leftmid .whitetext{
        font-size: 10px;
    }
    
    header{
        grid-template-areas: "headerleft headerleftmid headerrightmid" ;
    }
}
