﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

body {
    /* 
        When resizing vertically, there can be an empty space (with no content) below the body, 
        don't allow scrolling on the body to hide this empty space. 
        The div #mainContent has overflow set to auto, in case the content is bigger than the page;
    */
    overflow: hidden;
}

#masterContainer {
    display: flex;
    height: 100vh;
}

#leftBanner {
    width: 200px;
    height: 100vh;
    background-color: #25A0DA;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#logoAndContactsContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contactImages {
    width: 20px;
    border: none;
}

.contactImages, a {
    text-decoration: none;
}

.leftBannerItem {
    max-width: 85%;
    margin: 20px auto
}

.moduleImages {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

#rightContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* This overflow makes sure the right content resizes when the window gets smaller */
    overflow: auto;
}

#topHeader {
    height: 50px;
    background-color: white;
    border-bottom: solid;
    border-color: #2f2f2f;
    border-width: thin;
    z-index: 4;
}

.navButton {
    background: none;
    border: none;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 500;
    font-size: 17px;
    height: 50px;
}

    .navButton:hover {
        background-color: #cccccc;
    }

.isActive {
    border-bottom: 3px solid #bababa;
}

#mainContent {
    flex: 1;
    /* Make sure the content is scrollable (scrollable behind header) when bigger than page */
    overflow: auto;
    margin-left:30px;
}

/* 
    Seperated margins between #mainContent & #main
    So the scrollbar from @mainContent goes from the header to the bottom of the page & the content is still horizontally centered (30px each side).
*/
#main{
    margin-top:10px;
    margin-Right:30px;
}

#divUser {
    color: black;
    float: right;
    margin-right: 10px;
    margin-top: 15px;
}

    #divUser i {
        display: inline;
        font-size: 19pt;
        margin-left: 10px;
        cursor: pointer;
    }

        #divUser i a {
            display: inline-block;
            width: 20px;
            height: 20px;
            margin-left: -30px;
        }

#lblUser {
    display: inline-block;
}

#btnAccount {
    color: black;
    font-size: 22px;
}

#lblLan {
    display: none;
}

#newsNotifier {
    display: inline-block;
    font-size: 19px;
    color: #25a0da;
    margin-right: 50px;
}

#newsNotifierIcon {
    font-size: 19pt;
}

#divUser {
    color: black;
    float: right;
    margin-right: 10px;
    margin-top: 15px;
}

    #divUser i {
        display: inline;
        font-size: 19pt;
        margin-left: 10px;
        cursor: pointer;
    }

        #divUser i a {
            display: inline-block;
            width: 20px;
            height: 20px;
            margin-left: -30px;
        }



/*AccountPanel*/
#accountPanel {
    background: #dbe2e9;
    color: #333;
    position: fixed;
    top: -500px;
    right: 0px;
    width: 200px;
    height: auto;
    z-index: 3;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    border: 1px solid black;
    border-bottom-left-radius: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

    #accountPanel.on {
        top: 50px;
        padding-bottom: 20px;
    }

    #accountPanel a {
        display: block;
        margin-left: 20px;
        margin-top: 10px;
        color: black;
        font-weight: 200;
    }

        #accountPanel a:hover {
            font-weight: 500;
        }

/* ContentNotifications panel */
#contentNotificationsPnl {
    display: none;
    position: absolute;
    background: #25A0DA;
    z-index: 5;
    color: #fff;
    top: 50%;
    left: 50%;
    border: 1px solid black;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    border-radius: 10px;
    width: 650px;
    height: 300px;
    margin-top: -180px;
    margin-left: -325px;
    overflow: auto;
}

#contentNotificationsTitle {
    display: block;
    margin-bottom: 10px;
    background: #2D3F52;
    height: 25px;
    padding: 10px;
}

#contentNotificationsClose {
    position: absolute;
    color: #fff;
    top: 7px;
    right: 10px;
    font-size: 19pt;
}

#contentNotifications {
    font-size: 12px;
    display: block;
    line-height: 1.7em;
    padding-left: 10px;
}

@keyframes autoHide {
    to {
        bottom: -500px;
    }
}

@-webkit-keyframes autoHide {
    to {
        bottom: -500px;
    }
}

#messagePnl, #messagePnlClient, #closableMessagePnl {
    background: #30D46F;
    color: #333;
    position: fixed;
    bottom: -500px;
    right: 10px;
    width: 250px;
    display: block;
    overflow: auto;
    z-index: 3;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    border: 1px solid black;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

    #messagePnl.on, #messagePnlClient.on, #closableMessagePnl.on {
        bottom: 30px;
    }

    #messagePnl.error, #messagePnlClient.error {
        background-color: red;
        color: #fff;
    }

    #messagePnl.onAutoDisappear, #messagePnlClient.onAutoDisappear #closableMessagePnl.onAutoDisappear {
        bottom: 30px;
        -moz-animation: autoHide 0s ease-in 5s forwards;
        /* Firefox */
        -webkit-animation: autoHide 0s ease-in 5s forwards;
        /* Safari and Chrome */
        -o-animation: autoHide 0s ease-in 5s forwards;
        /* Opera */
        animation: autoHide 0s ease-in 5s forwards;
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
    }

    #closableMessagePnl.onVisible 
    {
        bottom:30px;
    }

#lblmessage, #lblmessageClient, #closableMessagePnl {
    font-size: 10pt;
    display: inline;
    text-align: center;
    width: 250px;
}

#closableMessagePnl {
    min-width: 250px;
    width: unset;
}

#btnClosePanel {
    position: absolute;
    top: 0px;
    right: 0px;
}