/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 100px;
  background: url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  padding-top: 40px; /* 55px header + 40px ranking bar */
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8); /* adjust transparency */
    z-index: -1;
}

/* FOOTER */
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 90px;
  background-color: #222;      /* footer background */
  border-top: 1px solid #777;
  
  display: flex;
  align-items: center;
  justify-content: flex-start; /* align content left */
}

/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .container {
  padding: 100px 40px 75px; /* margin between header and content */
  max-width: 1200px;
  margin: auto;
}
.container .text-muted {
  margin: 0px;
}

.container {
  color: #ccc;   /* footer text color */
  text-align: left;
  margin: 0;
  line-height: 1.4;
}

#footer > .container {
  padding-right: 10px;
  padding-left: 10px;
}

code {
  font-size: 80%;
}

/* HEADER */
#custom-header {
    position: fixed;
    top: 45px;       /* height of your status bar */
    width: 100%;
    background: #1e1e1e;
    border-bottom: 1px solid #777;
    z-index: 888;
}

/* NAVIGATION */
.custom-nav {
    display: flex;
	grid-template-columns: 1fr auto 1fr; /* left | center (logo) | right */
    justify-content: space-between;  /* left group and right group */
    align-items: center;
    height: 50px;			 /* background height */
    padding: 0 40px;                 /* spacing from sides */
}

/* Left and right groups */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    color: #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.25s ease;
	font-size: 13px;
}

.nav-item:hover,
.nav-item.active {
    color: #7fdfff; /* light cyan like your logo */
    text-shadow: 0 0 8px #7fdfff;
}

/* DROPDOWN (unchanged except we align with new structure) */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    display: flex;
    flex-direction: column;
    min-width: 170px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Show dropdown */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 8px 15px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
