/* Body padding so content doesn't overlap navbar */


/* Background stays the same */
body::before {
    content: "";
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: url("/images/background.jpg") center center / cover no-repeat;
    filter: blur(2px);
    z-index: -1;
}

:root {
    --noise-img: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBz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0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==");
}

/* MainFrame stays centered, but won't overlap navbar */
#MainFrame {
    position: relative; /* make MainFrame the reference */
    margin: 150px auto 20px auto;
    width: 85vw;
    max-width: 1000px;
    min-width: 300px;
    height: 150vh;
    overflow-y: auto;
    padding: 9px 23px 20px 8px;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.8);
    background-image: var(--noise-img);
    border: 2px solid #000;
    border-radius: 6px;
}

#PageTitle {
    text-align: center;
    padding: 10px;
    color: rgb(190, 189, 189);
    font-weight: bold;
    font-size: 32px;
    font-family: Arial, sans-serif;
    -webkit-text-stroke: 1px #8a8989; /* stroke width & color */
}

#MainLineSeparator {
    position: absolute; /* now inside MainFrame */
    top: 96px; /* relative to MainFrame top */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0,0,0,1);
}


#BotSettings {
    position: relative;
    width: 80%;
    margin: 100px auto 20px auto; /* top margin pushes it below the separator */
    min-height: 580px;
    max-height: 580px;
    padding: 10px;
    background-color: rgba(0,0,0,0.5);
    border: 2px solid #000;
    border-radius: 6px;
}

#BotSettingsLabel {
    text-align: center;
    padding: 5px;
    color: rgb(190, 189, 189);
    font-weight: bold;
    font-size: 24px;
    font-family: Arial, sans-serif;
    -webkit-text-stroke: 1px #5662f6; /* stroke width & color */
}

#InviteBox {
    background-color: #00000000;
    border: 2px solid #000;
    padding: 5px;
    margin-bottom: 6px;

    text-align: center;
}

#CurrentDiscordLabel {
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    color: #797979;
    margin-bottom: 6px;
    border-radius: 6px;
    font-weight: bold;
}

#InviteBotBtn {
    background-color: #0f5a0f;
    color: #000;
    font-weight: bold;
    width: 128px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000;
    background-image: var(--noise-img);
    display: inline-block;
}


.SettingInput {
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    color: #797979;
    font-family: Arial, sans-serif;
    margin-bottom: 6px;
    border-radius: 6px;
    border: 1px solid #000;

    

}

.SaveSettingBtn {
    background-color: #0f5a0f;
    color: #000;
    font-weight: bold;
    width: 96px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000;
    background-image: var(--noise-img);
    display: inline-block;
}

#CurrentTokenLabel {
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    color: #797979;
    margin-bottom: 6px;
    border-radius: 6px;
    font-weight: bold;
}


#UpdateTokenBox {
    background-color: #00000000;
    border: 2px solid #000;
    padding: 5px;
    margin-bottom: 6px;

    text-align: center;
}

#UpdateTokenBtn {
    background-color: #0f5a0f;
    color: #000;
    font-weight: bold;
    width: 128px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000;
    background-image: var(--noise-img);
    display: inline-block;
}


#ServerPairingBox {
    background-color: #00000000;
    border: 2px solid #000;
    padding: 5px;
    margin-bottom: 6px;

    text-align: center;
}

#CurrentServerLabel {
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    color: #797979;
    margin-bottom: 6px;
    border-radius: 6px;
    font-weight: bold;
}

#ServerPairBtn {
    background-color: #0f5a0f;
    color: #000;
    font-weight: bold;
    width: 128px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000;
    background-image: var(--noise-img);
    display: inline-block;
}

#RustPlusSettings {
    position: relative;
    width: 80%;
    margin: 0 auto 20px auto; /* follows BotSettings automatically */
    min-height: 580px;
    max-height: 580px;
    padding: 10px;
    background-color: rgba(0,0,0,0.5);
    border: 2px solid #000;
    border-radius: 6px;
}

#RustPlusSettingsLabel {
    text-align: center;
    padding: 5px;
    color: rgb(190, 189, 189);
    font-weight: bold;
    font-size: 24px;
    font-family: Arial, sans-serif;
    -webkit-text-stroke: 1px #a32404; /* stroke width & color */
}

footer {
    text-align: center;
    padding: 10px;
    color: #fff;
}


/* Navbar */
#TopNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;

    background-color: rgba(0,0,0,0.8);
    background-image: var(--noise-img);

    display: flex;
    align-items: center;

    z-index: 10;
    border-bottom: 2px solid #000;
}

#LeftBox {
    width: 164px;
    height: 95%;
    background: rgba(0,0,0,0.5);
    border: 2px solid #000;
    border-radius: 6px;
    cursor: pointer;

    display: flex;
    align-items: center;   /* vertical center */
    justify-content: flex-start;
    padding-left: 2px;
    gap: 8px;              /* space between image and text */
}

#LeftBox:hover {
    background: rgba(15, 15, 15, 0.5);
}


#NavLogo {
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#NavTitle {
    color: rgb(190, 189, 189);
    font-weight: bold;
    font-family: Arial, sans-serif;
}

#MiddleBox {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.5);
    border: 2px solid #000;
    border-radius: 6px;
    padding: 0 20px;
}

/* push this entire group to the right */
#TopNav ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    gap: 20px;
    align-items: center;

    margin-left: auto; /* pushes UL to the far right */
}

#TopNav ul li {
    margin: 0;
    padding: 0;
}

#TopNav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: color 0.2s;
}

#TopNav ul li a:hover {
    color: #00ff00;
}

/* Steam login button */
#TopNav ul li button#SteamLogin {
    background-color: #137513;
    color: #000;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000; 
}

/* Steam login button */
#SteamLogout {
    background-color: #a32404;
    color: #000;
    font-weight: bold;
    width: 128px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000; 
    background-image: var(--noise-img);

}
#BuyCreditsBtn {
    background-color: #38065a;
    color: #adacac;
    font-weight: bold;
    width: 128px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000;
    background-image: var(--noise-img);
}
#SettingsBtn {
    background-color: #0f5a0f;
    color: #000;
    font-weight: bold;
    width: 128px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000;
    background-image: var(--noise-img);
}
#CreditsLabel {
    background-color: rgba(0,0,0,0.75);
    color: #fff;
    font-family: Arial, sans-serif;
    border: 2px solid #000;
    border-radius: 6px;
    width: 128px;
    padding: 6px 6px;
    background-image: var(--noise-img);
    box-shadow: 0 0 10px rgb(56, 6, 90, 1);
    margin-bottom: 6px;
}




#UpdateTokenBtn {
    background-color: #0f5a0f;
    color: #000;
    font-weight: bold;
    width: 128px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    border: 2px solid #000;
    background-image: var(--noise-img);
}

#TopNav ul li button#SteamLogin:hover {
    background-color: #0f5a0f;
}

#SteamLogout:hover {
    background-color: #c92c04;
}
#BuyCreditsBtn:hover {
    background-color: #460870;
}
#SettingsBtn:hover {
    background-color: #137513;
}
#UpdateTokenBtn:hover {
    background-color: #137513;
}
#InviteBotBtn:hover {
    background-color: #137513;
}
.SaveSettingBtn:hover {
    background-color: #137513;
}


#SteamUser {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative; /* needed for dropdown positioning */
}

#SteamAvatarBtn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-family: Arial, sans-serif;
    border: 2px solid #000;
    min-width: 170px;
}

#SteamAvatarBtn:hover {
    background: rgba(15, 15, 15, 0.5);
}

#SteamAvatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

#DropdownMenu {
    display: none;
    position: fixed;
    top: 52px;
    right: 0;
    width: 150px;
    padding: 8px;
    background-color: rgba(0,0,0,0.8);
    background-image: var(--noise-img);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);

    justify-content: center;
    align-items: center;
    flex-direction: column;

    border: 2px solid #000; /* fixes it */

}

#DropdownMenu.show {
    display: flex;
}