/* =========================================================
   RAMPAGE FINAL HEADER FIX
   Servers + Squad Manage
========================================================= */

html body .header {
    overflow: visible !important;
}


/* ---------------------------------------------------------
   WEBSITE LOGO
--------------------------------------------------------- */

html body .header .logo.rgc-image-logo {
    position: relative !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;

    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    text-decoration: none !important;
}


html body .header .logo.rgc-image-logo img {
    position: static !important;

    display: block !important;

    width: 165px !important;
    height: 60px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 165px !important;
    max-height: 60px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

    object-fit: contain !important;
    object-position: left center !important;
}


/* Kill old text-logo styling when image logo is used */

html body .header .logo.rgc-image-logo span,
html body .header .logo.rgc-image-logo strong {
    display: none !important;
}


/* ---------------------------------------------------------
   HEADER ACTIONS
--------------------------------------------------------- */

html body .header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 10px !important;

    margin-left: auto !important;

    width: auto !important;
    height: auto !important;

    flex: 0 0 auto !important;
}


/* ---------------------------------------------------------
   ACCOUNT CONTAINER
--------------------------------------------------------- */

html body .header .header-account {
    position: relative !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 auto !important;

    overflow: visible !important;

    z-index: 10000 !important;
}


html body .header .header-account[hidden] {
    display: none !important;
}


/* ---------------------------------------------------------
   LOGIN / ACCOUNT BUTTON
--------------------------------------------------------- */

html body .header .header-auth-button {
    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: 42px !important;

    min-width: 0 !important;
    min-height: 42px !important;

    max-width: 230px !important;
    max-height: 42px !important;

    gap: 8px !important;

    padding: 0 13px !important;
    margin: 0 !important;

    border: 1px solid #343a43 !important;
    border-radius: 0 !important;

    background: #0c0f12 !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .7px !important;

    line-height: 1 !important;

    white-space: nowrap !important;

    cursor: pointer !important;

    overflow: hidden !important;
}


/* CRITICAL:
   Never allow Steam avatar to expand the header
*/

html body .header .header-auth-button img,
html body .header #authBtn img {
    position: static !important;

    display: block !important;

    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    max-width: 28px !important;
    max-height: 28px !important;

    flex: 0 0 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 3px !important;

    object-fit: cover !important;
    object-position: center !important;

    transform: none !important;
}


/* ---------------------------------------------------------
   ACCOUNT DROPDOWN
--------------------------------------------------------- */

html body .header .header-account-menu {
    position: absolute !important;

    display: none !important;

    right: 0 !important;
    top: calc(100% + 10px) !important;

    width: 285px !important;
    height: auto !important;

    min-width: 285px !important;
    min-height: 0 !important;

    max-width: 285px !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;

    background: #0c1014 !important;
    border: 1px solid #303640 !important;

    overflow: visible !important;

    box-shadow: 0 25px 70px rgba(0,0,0,.70) !important;

    z-index: 99999 !important;
}


html body .header .header-account-menu.open {
    display: block !important;
}


html body .header .header-account-menu[hidden] {
    display: none !important;
}


/* Dropdown Steam avatar */

html body .header .account-menu-user {
    display: flex !important;
    align-items: center !important;

    gap: 12px !important;

    padding: 16px !important;

    background: #11151a !important;

    border-bottom: 1px solid #252a31 !important;
}


html body .header .account-menu-user img,
html body .header #accountAvatar {
    position: static !important;

    display: block !important;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    max-width: 42px !important;
    max-height: 42px !important;

    flex: 0 0 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 3px !important;

    transform: none !important;
}


/* ---------------------------------------------------------
   DISCORD BUTTON
--------------------------------------------------------- */

html body .header .header-discord {
    flex: 0 0 auto !important;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 900px) {

    html body .header .logo.rgc-image-logo {
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;

        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }

    html body .header .logo.rgc-image-logo img {
        width: 130px !important;
        height: 52px !important;

        max-width: 130px !important;
        max-height: 52px !important;
    }

}


@media (max-width: 600px) {

    html body .header .header-auth-button {
        max-width: 160px !important;
    }

    html body .header .header-account-menu {
        position: fixed !important;

        right: 12px !important;
        top: 72px !important;

        width: min(285px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
    }

}