/* Header Layout */
header {
    display: flex;
    background: #151a36 url(../images/glow-bg.jpg) no-repeat -20px -20px;
    height: 50px;
}

header h1 {
    display: inline-block;
    padding: 5px 30px 5px 20px;
    margin: 0;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: rgb(172, 227, 242);
}

header img {
    margin-left: 10px;
    width: 40px;
}

.header-left {
    display: flex;
    align-items: center;
}

#header-right-not-signed-in,
#header-right-signed-in {
    display: flex;
    gap: 10px;
}

/* Main Navigation */

.rts-nav {
    width: 100vw;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

/* General Styles */
.mainNav {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.mainNav ul,
.mainNavPublic ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainNav ul li,
.mainNavPublic ul li {
    display: inline-block;
    position: relative;
}

.mainNav ul li a,
.mainNavPublic ul li a {
    display: block;
    padding: 16px 20px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.mainNav ul li a.active,
.mainNavPublic ul li a.active {
    background-color: rgba(34, 156, 209, 0.2);
}

.mainNav ul li:hover a,
.mainNavPublic ul li:hover a {
    background-color: #229cd1;
    color: #fff;
}

.mainNav ul ul,
.mainNavPublic ul ul {
    position: absolute;
    display: block;
    z-index: 2;
    width: 200px;
    background: #229cd1;
    margin-top: 0;
    left: -999999px;
}

.mainNav ul li:hover ul,
.mainNavPublic ul li:hover ul {
    left: 0;
}

.mainNav ul ul li,
.mainNavPublic ul ul li {
    width: 100%;
    display: block;
}

.mainNav ul ul li a,
.mainNavPublic ul ul li a {
    font-size: 12px;
}

.mainNav ul li:hover ul li a:hover,
.mainNavPublic ul li:hover ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.main-nav-drop-down>a {
    display: flex;
    align-items: center;
}

.main-nav-drop-down>a::after {
    content: url("../images/caret-wh.png");
    width: 10px;
    height: 7px;
    margin-left: 7px;
    transform: translateY(-7px);
    transition: all ease 180ms;
}

.main-nav-drop-down:hover>a::after {
    transform: rotate(180deg) translateY(0px);
}

/* Account Dropdown */
.account-drop-down {
    position: relative;
    justify-self: end;
    display: flex;
    align-items: center;
}

/* #account-drop-down-button {
    background: none;
    border: none;
    margin-right: 10px;
    cursor: pointer;
} */

#account-drop-down-button span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    margin-right: 1px;
    transition: all ease-in-out 250ms;
}

#header-account-menu {
    display: none;
    position: absolute;
    top: 48px;
    background-color: #151a36;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 3;
    transform: scale(0.9);
    transition: all 100ms ease-in-out;
}

#header-account-menu a {
    color: #fff;
    text-align: left;
    font-size: 0.9em;
    padding: 12px 16px 12px 40px;
    text-decoration: none;
    display: block;
    width: 100%;
}

#header-account-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.spWelcomeNameOnly.large-size:hover,
.spWelcomeNameOnly.small-size:hover {
    background-color: #229cd1;
    color: #fff;
    border: 1px solid #229cd1;
}

.spWelcomeNameOnly.large-size {
    display: inline-block;
    margin-right: 20px;
    padding: 5px 10px 6px 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: url(../images/user-account-wh.png) no-repeat 1px 1px;
    font-size: 0.9em;
    color: #fff;
    min-width: 204px;
}

/* Small size */
.spWelcomeNameOnly.small-size {
    display: inline-block;
    margin-right: 20px;
    padding: 0;
    /* Remove padding for compact size */
    border: none;
    /* Remove border for compact size */
    border-radius: 30px;
    background: url(../images/user-account-wh.png) no-repeat center center;
    font-size: 0;
    /* Hide the text */
    min-width: 34px;
    /* Adjust to the size of the background image */
    height: 34px;
    /* Match height to width for a square icon */
    overflow: hidden;
    /* Ensure no text or content overflows */
}

/* Account Dropdown Links */
.my-account {
    background: url(../images/icon-account-wh.png) no-repeat 16px 15px;
    background-size: 15px;
}

.logout {
    background: url(../images/icon-log-out-wh.png) no-repeat 16px 15px;
    background-size: 15px;
}

/* Dropdown Button */
#account-drop-down-button:hover span {
    background-color: rgba(255, 255, 255, 1);
}

#header-account-menu a {
    color: #fff;
    text-align: left;
    font-size: 0.9em;
    padding: 12px 16px 12px 40px;
    text-decoration: none;
    display: block;
    width: 100%;
}

#header-account-menu a:hover {
    /*background-color: rgba(213,241,248,0.5);*/
    background-color: rgba(255, 255, 255, 0.1);
}

#account-drop-down-button:hover span {
    background-color: rgba(255, 255, 255, 1);
}

.account-drop-down {
    position: relative;
    justify-self: end;
}

#account-drop-down-button span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    margin-right: 1px;
    transition: all ease-in-out 250ms;
}

#dropdown {
    display: none;
    position: absolute;
    top: 48px;
    background-color: #151a36;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 3;
    transform: scale(0.9);
    transition: all 100ms ease-in-out;
}

#dropdownBtn {
    background: none;
    border: none;
    margin-right: 10px;
    cursor: pointer;
}

#dropdownBtn span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    margin-right: 1px;
    transition: all ease-in-out 250ms;
}

#dropdownBtn:hover span {
    background-color: rgba(255, 255, 255, 1);
}

#dropdown a {
    color: #fff;
    text-align: left;
    font-size: 0.9em;
    padding: 12px 16px 12px 40px;
    text-decoration: none;
    display: block;
    width: 100%;
}

#dropdown a:hover {
    /*background-color: rgba(213,241,248,0.5);*/
    background-color: rgba(255, 255, 255, 0.1);
}

.my-account {
    background: url(../images/icon-account-wh.png) no-repeat 16px 15px;
    background-size: 15px;
}

.logout {
    background: url(../images/icon-log-out-wh.png) no-repeat 16px 15px;
    background-size: 15px;
}

.support {
    background: url(../images/icon-ticket-bl.png) no-repeat 16px 12px;
    background-size: 15px;
}

.billing {
    background: url(../images/icon-dollar-bl.png) no-repeat 16px 12px;
    background-size: 15px;
}

.spWelcome {
    display: inline-block;
    margin-right: 20px;
    padding: 5px 10px 6px 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: url(../images/user-account-wh.png) no-repeat 1px 1px;
    font-size: 0.9em;
    color: #fff;
}

.acctinfo {
    color: #fff;
    font-size: 14px;
    justify-self: end;
    margin-right: 20px;
}

.acctinfo a {
    display: block;
    padding: 16px 15px 16px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.acctinfo a:hover {
    background: #229cd1;
}

.sub-menu a {
    display: block;
}

/* Default state (desktop) */
/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Hamburger Icon */
#hamburger-icon {
    cursor: pointer;
    z-index: 10;
}

#hamburger-icon .line {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    border-radius: 2px;
    transition: all 0.3s;
    z-index: 100;
}

/* Menu Modal */
#menu-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    /* justify-content: center;
    align-items: center; */
    transition: opacity 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

#menu-modal.active {
    opacity: 1;
    visibility: visible;
}

#menu-content {
    background: white;
    padding: 20px;
    width: 100%;
}

#menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu-content ul li {
    margin: 15px 0;
}

#menu-content ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Close Button */
#close-hamburger {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

#close-hamburger:hover {
    color: #999;
}

/* Ensure menu content is properly positioned */
#menu-content {
    position: relative;
}


/* Mobile view (under 1190px) */
/* Media query to hide menu for larger screens */
@media (min-width: 1030px) {
    #hamburger-icon {
        display: none;
        /* Hide hamburger icon */
    }

    #menu-modal {
        display: none;
        /* Ensure the menu modal is not shown */
    }

    .mainNav {
        display: flex;
    }

    #header-account-menu {
        right: 0;
    }
}

@media (max-width: 767px) {
    #header-account-menu {
        right: 0px;
    }

    .rts-nav {
        width: 100%;
    }

    header h1 {
        display: inline-block;
        padding: 5px;
        margin: 0;
        font-size: 16px;
        font-weight: 300;
        line-height: 1;
        color: rgb(172, 227, 242);
    }

}