body { 
    background-color: #1b1b1b; 
}

header { 
    color: white; 
}

header h1 {
    font-size: 40px;
    margin: 0;
    padding: 0px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 10px rgb(0, 0, 0);
}

nav ul {
  display: flex;         /* Places all child <li> items in a row */
  gap: 0px;             /* Cleanly spaces items without needing right-margins */
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block; /* Goes horizontal, but still respects height/width/padding */
  margin-right: 0px;
  color: white;
  flex: 1;
}

/* Style the navigation buttons */
.nav-btn {
  background-color: #ff88007c; /* Primary orange color */
  color: #ffffff;           /* White text */
  border: none;             /* Removes the ugly default grey border */
  padding: 8px 16px;        /* Adds space inside the button (top/bottom left/right) */
  font-size: 20px;          /* Clean text size */
  cursor: pointer;          /* Changes mouse cursor to a clicking hand on hover */
  width: 100%;              /* Makes the button fill the entire width of its parent <li> */
  font-weight: bold;
  text-shadow: 1px 1px 10px rgb(0, 0, 0);
}

/* Hover effect: darkens the button slightly when you mouse over it */
.nav-btn:hover {
  background-color: #ff8800e3;
}

/* Click effect: pushes the button down slightly when clicked */
.nav-btn:active {
  transform: scale(0.98);
}

main {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  background-color: #635d5d;
  min-height: 75vh; /* Ensures the main section takes up at least 100% of the viewport height */
  min-width: 90%;
  padding: 20px;
}

main section {
  background-color: rgb(172, 161, 161);
}

main section h2 {
    text-align: center;
    font-size: 24px;
}

/* User Nav Container: Pushes list to the far right and shrinks width to fit content */
nav.user-nav {
  display: flex;
  justify-content: flex-end; /* Aligns the button group to the right */
  padding: 8px 16px;
}

nav.user-nav ul {
  display: flex;
  gap: 8px;                 /* Space between account buttons */
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Secondary/Account Utility Buttons */
.user-btn {
  background-color: #333333; /* Slightly darker/subtler color than main nav */
  color: #ffffff;
  border: 1px solid #555;
  padding: 4px 12px;         /* Compact padding */
  font-size: 14px;           /* Smaller text size for top utility bar */
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  width: auto;               /* Takes up only its text space */
}

.user-btn:hover {
  background-color: #444444;
}

.user-btn:active {
  transform: scale(0.96);
}

/* --- User Navigation Bar (Top Right) --- */
nav.user-nav {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px;
}

nav.user-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-btn {
  background-color: #333333;
  color: #ffffff;
  border: 1px solid #555;
  padding: 4px 12px;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  width: auto;
}

.user-btn:hover {
  background-color: #444444;
}

/* --- Modal Pop-up Box --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Keeps modal on top of everything */
}

.modal-content {
  background-color: #222;
  color: #fff;
  padding: 24px;
  border-radius: 6px;
  width: 320px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.close-btn:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  background-color: #111;
  border: 1px solid #444;
  color: #fff;
  border-radius: 3px;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background-color: #ff8800;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
}

.submit-btn:hover {
  background-color: #e07700;
}