/* ============================================================
   BAR COMMUNITY - SHARED SITE THEME
   Source of truth: original index.html
   Edit this one file to update site-wide theme and navbar styling.
   ============================================================ */


/* GLOBAL */
html, body {
    margin:0;
    padding:0;
    min-height:100%;
    font-family:Arial, sans-serif;
    background:#0d0d0d url("https://i.imgur.com/RYuULOT.jpeg") no-repeat center center fixed;
    background-size:cover;
    color:#e6e2d7;
}

/* NAVBAR */
.navbar {
    width:100%;
    background:rgba(20,20,20,0.95);
    border-bottom:3px solid #c8b27a;
    position:sticky;
    top:0;
    z-index:9999;
}

.nav-container {
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 20px;
}

.nav-left, .nav-icons {
    list-style:none;
    display:flex;
    gap:25px;
    margin:0;
    padding:0;
}

.nav-item {
    position:relative;
}

.navbar a {
    color:#e6e2d7;
    text-decoration:none;
    font-size:15px;
    font-weight:bold;
    padding:8px 5px;
}

.navbar a:hover {
    color:#c8b27a;
}

/* DROPDOWN FIX */
.has-dropdown .dropdown {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#111;
    border:1px solid #444;
    border-radius:6px;
    min-width:180px;
    box-shadow:0 0 10px #000;
}

.has-dropdown:hover .dropdown {
    display:block;
}

.dropdown a {
    display:block;
    padding:10px;
    border-bottom:1px solid #333;
}

.dropdown a:last-child {
    border-bottom:none;
}

/* ICONS */
.nav-icon-img {
    width:30px;
    height:30px;
    border-radius:5px;
    border:1px solid #444;
    box-shadow:0 0 6px #000;
    transition:.2s;
}

.nav-icon-img:hover {
    transform:scale(1.1);
    border-color:#c8b27a;
}

.nav-icons {
    display: flex;
    align-items: center;   /* vertically centers ALL items in the row */
    gap: 12px;
    margin-left: auto;
}


/* HERO */
.hero {
    text-align:center;
    padding:60px 20px 40px;
}

.hero img {
    width:260px;
    filter:drop-shadow(0 0 10px #000);
}

/* INTRO */
.intro {
    display:block;
        border: 3px solid #556b2f;
    margin-left:auto;
    margin-right:auto;
    max-width:900px;
    margin:20px auto;
    background:rgba(0,0,0,0.75);
    padding:25px;
    border-radius:10px;
    box-shadow:0 0 20px #000;
    text-align:center;
}

.intro h2 {
    color:#c8b27a;
    margin-top:0;
}

/* CONTENT GRID */
.grid {
    max-width:1300px;
    margin:40px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

/* CONTENT BOXES */
.box {
    background:rgba(15,15,15,0.9);
    border: 3px solid #556b2f;
    border:1px solid #555;
    border-radius:12px;
    padding:20px;
    box-shadow:0 0 15px #000;
    height:890px;             
    display:flex;
    flex-direction:column;
}

.box h3 {
    color:#c8b27a;
    text-align:center;
    margin: 0 0 10px 0;
}



/* SERVER STATUS */
.server-box {
    background:#151515;
    border:1px solid #555;
    border-radius:10px;
    padding:25px;
    box-shadow:0 0 15px #000;

    display:flex;
    flex-direction:column;
    flex:1;
}

.server-box h2 {
    text-align:center;
}

/* PLAYER TABLE CONTAINER */
#players {
    flex:1;
    margin-top:10px;

    overflow-y:auto;   /* ✅ vertical scroll */
    overflow-x:hidden; /* 🚫 no horizontal scroll */
}

/* TABLE FIX */
#players table {
    width:100%;
    table-layout:fixed;     /* 🔑 prevents stretching */
    border-collapse:collapse;
    font-size:13px;         /* static font size */
}

/* CELLS */
#players th,
#players td {
    padding:6px;
    border-bottom:1px solid #333;

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis; /* adds ... */
}

/* HEADER STYLE */
#players th {
    color:#c8b27a;
}

/* COLUMN WIDTHS */
#players th:nth-child(1),
#players td:nth-child(1) {
    width:60%;  /* Name */
    text-align:left;
}

#players th:nth-child(2),
#players td:nth-child(2) {
    width:20%;  /* Score */
    text-align:center;
}

#players th:nth-child(3),
#players td:nth-child(3) {
    width:20%;  /* Time */
    text-align:center;
}

/* ICON BAR */
.top-icons {
    position:absolute;
    top:15px;
    right:15px;
    display:flex;
    gap:10px;
}

.icon img {
    width:45px;
    height:45px;
    border-radius:5px;
    border:1px solid #444;
    box-shadow:0 0 6px #000;
    transition:.2s;
}

.icon img:hover {
    transform:scale(1.08);
    border-color:#c8b27a;
}

/* PC Gaming News */
.news-frame {
    width:100%;
    height:840px;        /* expanded to match Steam Sales */
    border:none;
    border-radius:10px;
    box-shadow:0 0 10px #000;
    overflow:hidden;
    display:block;
}

/* Steam Sales */
.sales-frame {
    width:100%;
    height:auto; /* or set a fixed px height if needed */
    border:none;
    border-radius:10px;
    box-shadow:0 0 10px #000;
    display:block;
    flex: 1; 
}

.section-title {
    margin: 0;
}

.section iframe,
.section .panel {
    margin: 0;
}


.join-server-btn {
    margin-left: 15px;
    padding: 8px 14px;
    background: #2D7A22;
    border: 2px solid #2F5C26;
    color: #f2f2f2;
    font-family: "Arial Black", sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s ease-in-out;
}

.join-server-btn:hover {
    background: #3BBD26;
    border-color: #2F5C26;
    color: #ffffff;
    transform: translateY(-1px);
}

.join-server-btn {
    display: flex;
    align-items: center;   /* vertically centers text inside the button */
    height: 10px;          /* match icon height */
    padding: 0 14px;       /* horizontal padding only */
}


.bar-footer {
    width: 100%;
    height: 25px;                 /* adjust between 15–20px */
    background: #1a1a1a;          /* matches your navbar theme */
    border-top: 1px solid #333;   /* subtle WW2 metal panel look */
    display: flex;
    align-items: center;          /* vertical centering */
    justify-content: center;      /* horizontal centering */
    position: relative;           /* stays at bottom of content */
    color: #ccc;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align:left;
}

.bar-footer-text {
    padding: 0 20px;              /* small breathing room */
}

/* ============================================================
   PAGE BODY OVERRIDES
   Preserves each page's original text color/alignment while the
   common background, font and navbar come from index.html.
   ============================================================ */
body.page-comments,
body.page-roster,
body.page-rules {
    color: #000000;
    text-align: center;
}

body.page-maplist,
body.page-voting {
    color: #e2e2e2;
    text-align: center;
}

/* ============================================================
   COMMENTS.PHP - PAGE-SPECIFIC STYLES
   ============================================================ */
/* PAGE WRAPPER */

body.page-comments .page-wrapper {
max-width: 900px;
    border: 3px solid #556b2f;
    margin: 40px auto;
    padding: 25px;
    background: rgba(15,15,15,0.75);
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    border-radius: 10px;
}

body.page-comments .divider {
width: 80%;
    height: 3px;
    background: #556b2f;
    margin: 30px auto;
    border-radius: 2px;
}

body.page-comments .panel {
border: 3px solid #556b2f;
    max-width:900px;
    margin:20px auto;
    background: rgba(255,255,255,0.75);
    padding:25px;
    border-radius:10px;
    box-shadow:0 0 20px #000;
    text-align:center;
}

body.page-comments h3 {
font-family: "Consolas", "Impact", sans-serif;
    color: #c0c080;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px black;
    text-align: center;
    margin-bottom: 20px;
}

body.page-comments .panel-title {
font-family: "Arial Black", sans-serif;
    font-size: 18pt;
    margin-bottom: 15px;
    color: #A69165;
    text-align:center;
}

body.page-comments textarea,
body.page-comments input[type="text"] {
width:90%;
    padding:10px;
    border-radius:8px;
    border:2px solid #556b2f;
    font-size:14pt;
    margin-bottom:15px;
}

body.page-comments button {
background:#556b2f;
    color:white;
    padding:12px 25px;
    border:none;
    border-radius:8px;
    font-size:14pt;
    cursor:pointer;
}

body.page-comments button:hover {
background:#6b8f3f;
}

/* ============================================================
   MAPLIST.PHP - PAGE-SPECIFIC STYLES
   ============================================================ */
body.page-maplist .container {
display:block;
        background: rgba(30, 30, 30, 0.85);
        border: 3px solid #6b8f3f;
        padding: 25px;
        width: 750px;
        min-height: 2000px;
        height: auto;
 margin:20px auto;
        border-radius: 8px;
        box-shadow: 0 0 15px black;
}

body.page-maplist h2 {
color: #c0c080;
        text-shadow: 2px 2px 4px black;
        text-align: center;
}

body.page-maplist .panel {
background: rgba(20,20,20,0.75);
        border: 3px solid #556b2f;
        border-radius: 6px;
        box-shadow: 0 0 12px #000 inset, 0 0 10px #2e3b1f;
        padding: 20px;
        margin: 20px auto;
        max-width: 1200px;
}

body.page-maplist .info-box {
text-align: center;
        margin: 15px auto 25px auto;
        padding: 12px;
        background: rgba(0,0,0,0.5);
        border: 2px solid #556b2f;
        border-radius: 6px;
        max-width: 550px;
}

body.page-maplist .map-list {
list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    text-align: left;
}

body.page-maplist .map-item {
margin: 0;
    border: 1px solid #3b4a23;
    border-radius: 4px;
    overflow: hidden;
}

body.page-maplist .map-item a {
display: block;
    padding: 10px;
    text-align: left;
    text-decoration: none;
    color: #e2e2e2;
    background: rgba(20,20,20,0.75);
    transition: 0.2s;
}

body.page-maplist .map-item a:hover {
background: #556b2f;
    color: #fff;
}

/* Responsive */

@media (max-width: 800px) {
body.page-maplist .map-list {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 550px) {
body.page-maplist .map-list {
grid-template-columns: 1fr;
}
}

/* ============================================================
   ROSTER.HTML - PAGE-SPECIFIC STYLES
   ============================================================ */
body.page-roster .page-wrapper {
max-width: 900px;
        border: 3px solid #556b2f;
        margin: 40px auto;
        padding: 25px;
        background: rgba(15,15,15,0.75);
        box-shadow: 0 0 25px rgba(0,0,0,0.6);
        border-radius: 10px;
}

body.page-roster .header-logo img {
max-width: 40%;
        margin-bottom: 20px;
        filter: drop-shadow(0 0 6px #000);
}

body.page-roster .section-title {
font-family: "Arial Black", sans-serif;
        font-size: 22pt;
        color: #c8b27a;
        margin-top: 25px;
        margin-bottom: 10px;
        letter-spacing: 1px;
}

body.page-roster h3 {
font-family: "Consolas", "Impact", sans-serif;
        color: #c0c080;
        letter-spacing: 2px;
        text-shadow: 2px 2px 4px black;
        text-align: center;
        margin-bottom: 20px;
}

body.page-roster .divider {
width: 80%;
        height: 3px;
        background: #c8b27a;
        margin: 30px auto;
        border-radius: 2px;
}

body.page-roster .panel {
display:block;
        border: 3px solid #556b2f;
    margin-left:auto;
    margin-right:auto;
    max-width:750px;
    margin:20px auto;
        background: rgba(255,255,255,0.75);
    padding:25px;
    border-radius:2px;
    box-shadow:0 0 20px #000;
    text-align:center;
    border-radius: 10px;
}

body.page-roster .panel-title {
font-family: "Arial Black", sans-serif;
        font-size: 18pt;
        margin-bottom: 15px;
        color: #000000;
        text-align:center;
}

body.page-roster .panel-box {
font-family: "Arial Black", sans-serif;
        border: 3px solid #556b2f;
        font-size: 12pt;
        margin-bottom: 15px;
        color: #A69165;
}

body.page-roster .roster-list {
list-style: none;
        padding: 0;
        margin: 0;
        font-size: 14pt;
}

body.page-roster .roster-list li {
margin: 8px 0;
}

body.page-roster .roster-list a {
color: #1a1a1a;
        font-weight: bold;
        text-decoration: none;
}

body.page-roster .roster-list a:hover {
text-decoration: underline;
        color: #1a1a1a;
}

body.page-roster .roster-image {
width: 80%;
        height: 250px;
        background: rgba(0,0,0,0.2);
        border: 3px dashed #4a4a4a;
        margin: 15px auto;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14pt;
        color: #333;
}

/* ICON BAR */

body.page-roster .top-icons {
position:absolute;
    top:15px;
    right:15px;
    display:flex;
    gap:10px;
}

body.page-roster .icon img {
width:45px;
    height:45px;
    border-radius:5px;
    border:1px solid #444;
    box-shadow:0 0 6px #000;
    transition:.2s;
}

body.page-roster .icon img:hover {
transform:scale(1.08);
    border-color:#c8b27a;
}

/* ============================================================
   RULES.HTML - PAGE-SPECIFIC STYLES
   ============================================================ */
body.page-rules .page-wrapper {
max-width: 900px;
        border: 3px solid #556b2f;
        margin: 40px auto;
        padding: 25px;
        background: rgba(15,15,15,0.75);
        box-shadow: 0 0 25px rgba(0,0,0,0.6);
        border-radius: 10px;
}

body.page-rules .header-logo img {
max-width: 40%;
        margin-bottom: 20px;
        filter: drop-shadow(0 0 6px #000);
}

body.page-rules .section-title {
font-family: "Arial Black", sans-serif;
        font-size: 22pt;
        color: #c8b27a;
        margin-top: 25px;
        margin-bottom: 10px;
        letter-spacing: 1px;
}

body.page-rules .divider {
width: 80%;
        height: 3px;
        background: #556b2f;
        margin: 30px auto;
        border-radius: 2px;
}

body.page-rules .panel {
display:block;
    margin-left:auto;
        border: 3px solid #556b2f;
    margin-right:auto;
    max-width:900px;
    margin:20px auto;
        background: rgba(255,255,255,0.75);
    padding:25px;
    border-radius:2px;
    box-shadow:0 0 20px #000;
    text-align:center;
    border-radius: 10px;
}

body.page-rules h3 {
font-family: "Consolas", "Impact", sans-serif;
        color: #c0c080;
        letter-spacing: 2px;
        text-shadow: 2px 2px 4px black;
        text-align: center;
        margin-bottom: 20px;
}

body.page-rules .panel-title {
font-family: "Arial Black", sans-serif;
        font-size: 18pt;
        margin-bottom: 15px;
        color: #A69165;
        text-align:center;
}

body.page-rules .panel-box {
font-family: "Arial Black", sans-serif;
        font-size: 12pt;
        margin-bottom: 15px;
        color: #A69165;
}

body.page-rules .roster-list {
list-style: none;
        padding: 0;
        margin: 0;
        font-size: 14pt;
}

body.page-rules .roster-list li {
margin: 8px 0;
}

body.page-rules .roster-list a {
color: #1a1a1a;
        font-weight: bold;
        text-decoration: none;
}

body.page-rules .roster-list a:hover {
text-decoration: underline;
        color: #1a1a1a;
}

body.page-rules .roster-image {
width: 80%;
        height: 250px;
        background: rgba(0,0,0,0.2);
        border: 3px dashed #4a4a4a;
        margin: 15px auto;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14pt;
        color: #333;
}

/* ICON BAR */

body.page-rules .top-icons {
position:absolute;
    top:15px;
    right:15px;
    display:flex;
    gap:10px;
}

body.page-rules .icon img {
width:45px;
    height:45px;
    border-radius:4px;
    border:1px solid #444;
    box-shadow:0 0 6px #000;
    transition:.2s;
}

body.page-rules .icon img:hover {
transform:scale(1.08);
    border-color:#c8b27a;
}

/* Server Rules Styling */

body.page-rules .rules-list {
list-style: none;
    padding: 0;
    margin: 15px 0;
}

body.page-rules .rules-list li {
background: rgba(255,255,255,0.5);
    border-left: 4px solid #556b2f;
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 6px;
    line-height: 1.6;
    font-size: 15px;
    transition: 0.2s ease;
}

body.page-rules .rules-list li:hover {
background: rgba(194,175,97,0.8);
    transform: translateX(4px);
}

body.page-rules .rules-list strong {
color: #000000;
}

body.page-rules .rules-list code {
background: #E6D3B1;
    color: #52D932;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: Consolas, monospace;
}

body.page-rules .warning {
color: #52D932;
}

/* ============================================================
   VOTING.HTML - PAGE-SPECIFIC STYLES
   ============================================================ */
body.page-voting .container {
display:block;
        background: rgba(30, 30, 30, 0.85);
        border: 3px solid #556b2f;
        padding: 25px;
        width: 750px;
        min-height: 2000px;
        height: auto;
 margin:20px auto;
        border-radius: 8px;
        box-shadow: 0 0 15px black;
}

body.page-voting h2 {
font-family: "Consolas", "Impact", sans-serif;
        color: #c0c080;
        letter-spacing: 2px;
        text-shadow: 2px 2px 4px black;
        text-align: center;
        margin-bottom: 20px;
}

body.page-voting #voteArea {
display: flex;
        justify-content: center;
        margin-top: 20px;
}

body.page-voting #voteForm {
width: 80%;
        margin: 0 auto;
        padding: 20px;
        border: 3px solid #6b8f3f;
        border-radius: 6px;
        background: rgba(20, 20, 20, 0.75);
        box-shadow: 0 0 12px #000 inset,
                    0 0 10px #2e3b1f;
        position: relative;
}

body.page-voting #voteForm::before,
body.page-voting #voteForm::after {
content: "";
        width: 14px;
        height: 14px;
        background: #c0c080;
        border: 2px solid #3b3b3b;
        border-radius: 50%;
        position: absolute;
}

body.page-voting #voteForm::before {
top: -10px;
        left: -10px;
}

body.page-voting #voteForm::after {
top: -10px;
        right: -10px;
}

body.page-voting .option {
margin: 12px 0;
        text-align: left;
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: flex-start;
}

body.page-voting .button-row {
display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
}

body.page-voting button {
padding: 12px 25px;
        font-size: 18px;
        background: #556b2f;
        color: white;
        border: 2px solid #3b4a23;
        cursor: pointer;
        font-family: "Consolas", sans-serif;
}

body.page-voting button:hover {
background: #6b8f3f;
}

body.page-voting .results {
margin-top: 25px;
        text-align: left;
        font-size: 18px;
        background: rgba(0,0,0,0.4);
        padding: 15px;
        border-radius: 6px;
        border: 1px solid #556b2f;
}

body.page-voting #adminPanel {
margin-top: 25px;
        padding: 15px;
        background: rgba(0,0,0,0.5);
        border: 1px solid #556b2f;
        border-radius: 6px;
        display: none;
}

body.page-voting .list-container {
display: flex;
        gap: 40px;
        margin-top: 30px;
        font-size: 12pt;
        text-align: left;
        padding-bottom: 80px;
}

body.page-voting .left-list {
width: 250px;
}

body.page-voting .left-list ul li {
list-style: none;
        padding-left: 22px;
        margin-bottom: 6px;
        background-image: url("https://i.imgur.com/8xVq8qF.png");
        background-repeat: no-repeat;
        background-size: 14px 14px;
        background-position: 0 3px;
}

body.page-voting .right-list-wrapper {
width: 450px;
        text-align: center;
}

body.page-voting .right-list {
column-count: 2;
        column-gap: 55px;
        list-style: none;
        padding-left: 0;
        text-align: left;
        column-rule: 3px solid #556b2f;
        overflow: visible;
}

body.page-voting .right-list li {
break-inside: avoid;
        padding-left: 30px;
        margin-bottom: 10px;
        background-image: url("https://i.imgur.com/8xVq8qF.png");
        background-repeat: no-repeat;
        background-size: 16px 16px;
        background-position: 6px 2px;
}

/* ============================================================
   COMMENTS.PHP - FORMER INLINE STYLES
   ============================================================ */
body.page-comments .inline-comments-1 {
    color:#e6e2d7; font-size:16pt; margin-bottom:20px;
}

/* ============================================================
   INDEX.HTML - FORMER INLINE STYLES
   ============================================================ */
body.page-index .inline-index-1 {
    padding:10px;
}

body.page-index .inline-index-2 {
    list-style:none; padding-left:0;
}

body.page-index .inline-index-3 {
    display:flex; gap:12px; margin-bottom:12px; background:#111; padding:10px; border-radius:6px; border:1px solid #333; align-items:center;
}

body.page-index .inline-index-4 {
    width:120px; height:45px; object-fit:cover; border-radius:4px;
}

body.page-index .inline-index-5 {
    color:#c8b27a; font-weight:bold; text-decoration:none;
}

body.page-index .inline-index-6 {
    color:#7fff7f;
}

body.page-index .inline-index-7 {
    color:#e6e2d7;
}

body.page-index .inline-index-8 {
    color:#ff7f7f;
}

/* ============================================================
   VOTING.HTML - FORMER INLINE STYLES
   ============================================================ */
body.page-voting .inline-voting-1 {
    display:none;
}

body.page-voting .inline-voting-2 {
    color:#c0c080; text-shadow:2px 2px 4px black;
}

body.page-voting .inline-voting-3 {
    margin-top:10px; font-size:14px;
}

body.page-voting .inline-voting-4 {
    margin-top:25px; color:#c0c080; text-shadow:2px 2px 4px black;
}

body.page-voting .inline-voting-5 {
    margin-bottom: 10px; padding: 8px 15px; background: #556b2f; color: white; border: 2px solid #3b4a23; cursor: pointer; font-family: Consolas, sans-serif;
}

body.page-voting .inline-voting-6 {
    background: rgba(0,0,0,0.4); padding: 15px; border: 1px solid #556b2f; border-radius: 6px; max-height: 300px; overflow-y: auto; text-align: left; font-size: 14px; display: none;
}

body.page-voting .inline-voting-7 {
    text-align: center; font-size: 14pt; font-family: 'arial black', sans-serif;
}

body.page-voting .inline-voting-8 {
    text-align: center; font-size: 14pt; font-family: 'arial black', sans-serif; margin-top: 25px;
}

body.page-voting .inline-voting-9 {
    margin: 50px auto 0 auto; padding: 20px; width: 70%; max-width: 600px; background: rgba(20,20,20,0.75); border: 3px solid #6b8f3f; border-radius: 6px; box-shadow: 0 0 12px #000 inset, 0 0 10px #2e3b1f; text-align: center;
}

body.page-voting .inline-voting-10 {
    width: 95%; background: rgba(0,0,0,0.6); color: #e2e2e2; border: 2px solid #556b2f; padding: 10px; font-family: Consolas, monospace; font-size: 14px; resize: vertical;
}

body.page-voting .inline-voting-11 {
    margin-top: 10px;
}

body.page-voting .inline-voting-12 {
    font-size:10px;
}

/* ============================================================
   SHARED NAVBAR LAYOUT LOCK
   Keeps navbar dimensions/position identical on every page.
   ============================================================ */

/* Reserve scrollbar space on every page so centered content does not
   shift left/right when navigating between short and long pages. */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* Reserve the navbar's space while navbar.html is loading. */
#bar-site-navbar {
    display: block;
    min-height: 55px;
}

/* Isolate the shared navbar from page-specific inherited sizing. */
.navbar,
.navbar * {
    box-sizing: border-box;
}

.navbar {
    min-height: 55px;
    text-align: left;
    line-height: normal;
}

.nav-container {
    width: min(1240px, 100%);
    max-width: 1240px;
    min-height: 52px;
    padding: 10px 20px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
}

.nav-left {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-icons {
    flex: 0 0 auto;
    min-width: max-content;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-left: auto;
}

.nav-left > li,
.nav-icons > li {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.navbar a {
    line-height: 1;
}

.nav-icons > li > a:not(.join-server-btn) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-img {
    display: block;
    flex: 0 0 30px;
}

.join-server-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    justify-content: center;
}

/* Do not let page-level text alignment or list styling alter dropdowns. */
.navbar ul,
.navbar li {
    text-align: left;
}

.navbar .dropdown {
    box-sizing: border-box;
}

