/*empty topbar on login page*/
body:not(.is_loggedin) #topbar{
    height: 72px;
}

#topbar{
    position: fixed;
    width: calc(100% - 360px);
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
    background-color: white;
}

#topbar .moduletable  {
    float: right;  
}

/*user*/
#topbar .module_user_menu .show_user_menu > i.open {
    transform: rotate(180deg);
}
#topbar .module_user_menu .show_user_menu {
    text-decoration: none !important;
}
#topbar .module_user_menu .show_user_menu .round_image {
    transition: all 300ms ease-in-out;
}
#topbar .module_user_menu .show_user_menu:hover .round_image {
    border-color:#F7A600;
}
#topbar .module_user_menu .show_user_menu:hover,
#topbar .module_user_menu .show_user_menu > i:hover {
    color: #e49321;
}
#topbar .module_user_menu .show_user_menu:active,
#topbar .module_user_menu .show_user_menu:focus,
#topbar .module_user_menu .show_user_menu > i:active,
#topbar .module_user_menu .show_user_menu > i:focus {
    color: #7d7d7d;
}

/* Öffnet sich nur onclick. Damit sollte dieses Dropdown immer die Messages überlagern, die ja automatisch angezeigt werden. */
#user_dropdown{
    position: absolute;
    right: 0;
    top: 59px;
    width: 250px;
    background: #F7A600;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
    z-index: 9;
    z-index: 999; /* wenn das hier auf 999 steht und #messages_container auf 98, dann überlagert das Usermenu korrekterweise auch die Messages (soll ja so sein). PM RH 15.11.20 */
}
#user_dropdown::before{
    content:"";
    width: 15px;
    height: 15px;
    background:#F7A600;
    border: 1px solid #F7A600;
    position: absolute;
    right: 38px;
    top: -7px;
    transform: rotate(45deg);
    z-index: -1;
}

    #user_dropdown a{
        padding: 15px 20px;
        background:#F7A600;
        color:#fff;
        width: 100%;
        border-bottom: 1px solid #fff;
        text-decoration: none;
    }
    #user_dropdown a:last-child{
        border-bottom: none;
    }

    #user_dropdown a:hover{
        background: #e49321;
    }

/* Throphies and Points */
    #topbar .userinfoswrapper {
        float: left;
    }
    #topbar .userinfos {
        float: left;
        display: flex;
    }
    #topbar .userinfos > div {
        display: flex;
        margin-right: 20px;
        height: 100%;
        margin-bottom: 0;
    }
    #topbar .userinfos img {
        width: 39px;
        height: 46px;
        margin-right: 10px;;
    }
    #topbar .userinfos h4 {
        font-size: 12px;
        font-weight: 700;
        margin: 0;
        text-transform: uppercase;
        color: #9C9C9C;
    }
    #topbar .userinfos span {
        font-size: 12px;
        font-weight: 400;
        color: #9C9C9C;
    }
    #topbar .userinfos .infowrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }