/* ========================================================= 
HACKER THEME BASE + CAYMAN-STYLE GRADIENT HEADER BLOCK  
========================================================= */ 

/* ---------------------- HEADER BLOCK ---------------------- */ 

header, .site-header, .header { 
 background: linear-gradient(90deg, #013220 0%, #3b0b4d 100%); 
 color: #ffffff; 
 padding: 6rem 1rem; /* decreased from 10rem to 6rem */ 
 text-align: center; 
 box-shadow: 0 2px 8px rgba(0,0,0,0.35); 
 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 
 position: relative; 
} 

/* ------------------- MAIN TITLE IN HEADER ------------------ */ 

.site-title, .site-header h1, header .site-title { 
 color: #39ff14; /* neon green so it pops */ 
 font-size: 2.4rem; 
 margin: 0 0 1.5rem 0; /* creates space between title & subtitle */ 
 line-height: 1.05; 
 letter-spacing: 0.2px; 
 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 
} 

/* ------------------- SUBTITLE / DESCRIPTION --------------- */ 

header .site-description, 
.site-header .site-description, 
header p.site-description, 
header h2, 
header h3, 
.site-header h2, 
.site-header h3 { 
 color: #e7e7e7; /* light gray */ 
 font-size: 0.95rem; /* smaller than main title */ 
 font-weight: normal; /* unbold */ 
 line-height: 1.2; 
 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 
 margin-top: 0.45rem; 
} 

/* ------------- BODY STYLING (Default Color of Entire Page) ------------------ */ 

body {
  background-color: #0b0b0b;
  color: #bfbfbf;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ----------- MAIN READING TEXT STYLING (Target Text Inside Content Area) ---------------- */

.main-content p,
.main-content li,
.content p,
.content li,
.site-content p,
.site-content li {
 color: #bfbfbf;
 line-height: 1.7;
 margin-bottom: 1.1rem;
}

/* ------------------- FOOTER STYLING ---------------------- */ 

footer, .site-footer { 
 background-color: #000000; 
 color: #ffffff; 
 padding: 1.15rem 1rem; /* Decreased from 1.25rem to 1.15rem */
 padding-left: 5rem;  /* <-- added, pushes text in from the edge */
 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 
} 

/* ------------------- CONTENT SPACING -------------------- */ 

.main-content, .content, .site-content {
 margin-top: 5rem; /* adds space after nav menu and content */ 
 margin-bottom: 5rem; /* add space above the footer */ 
} 

/* ----- HOME PAGE SECTION TITLES + CHALLENGE NAME PAGE TITLE --------- */ 

h1 {
 color: #ffffff;
 font-family: inherit;
 font-weight: bold;
}

h2, h3 { 
 color: #39ff14; /* Hacker neon green */ 
 font-family: inherit; /* keep Hacker font */ 
 font-weight: bold; /* keep bold styling if used by Hacker theme */ 
} 

/* ------------------- CHALLENGE BOX STYLING -------------------- */ 

.challenge-box { 
 background-color: #1a1a1a; /* dark gray so it contrasts with body */ 
 border: 1px solid #39ff14; /* neon green border to match Hacker theme */ 
 border-radius: 0.6rem; /* smooth rounded corners */ 
 padding: 1.5rem 1.8rem; /* inner spacing for text */ 
 margin-bottom: 2rem; /* space between boxes */ 
 box-shadow: 0 4px 12px rgba(0,0,0,0.5); /* subtle shadow to pop */ 
 transition: transform 0.2s ease, box-shadow 0.2s ease; 
} 

/* ------------------- HOVER EFFECT FOR LITTLE INTERACTIVE ------------------- */ 

.challenge-box:hover { 
 transform: translateY(-2px); 
 box-shadow: 0 8px 18px rgba(0,0,0,0.7); 
} 

/* ------------------- LINKS ------------------------------- */ 

a { 
 color: #b026ff; /* Neon Cyber Purple links */ 
} 

/* ------------------- INNER HEADING INSIDE BOX (title, points, category) ------------------- */ 

.challenge-box h3 { 
 color: #39ff14; /* neon green to match Hacker titles */ 
 margin-top: 0; 
} 

/* ------------------- BOLD THE SMALL METADATA ------------------- */ 

.challenge-box strong { 
 color: #e7e7e7; 
 font-weight: 600; 
} 

/* ------------------- ADJUST NORMAL PARAGRAPH TEXT INSIDE BOX ------------------- */ 

.challenge-box p, .challenge-box li { 
 color: #e7e7e7; 
 line-height: 1.5; 
} 

/* -------------------STANDARDIZE SPACING BETWEEN BULLETS ------------------- */ 

ul li { 
 margin-bottom: 0.8rem; 
} 

/* ------------------- TOP NAVIGATION MENU ------------------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 1rem 2rem;
  box-sizing: border-box;
  background-color: #000000;
}

/* ------------------- LOGO ON LEFT ------------------- */

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ------------------- MENU TABS ON THE RIGHT ------------------- */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav .nav-link {
  color: #39ff14;
  font-weight: none;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

.site-nav .nav-link:hover {
  color: #b026ff;
  text-decoration: underline;
}

/* ------------------- CHALLENGES DROPDOWN ------------------- */

.dropdown {
  position: relative;
}

.dropdown-button {
  background: none;
  border: none;
  color: #39ff14;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.dropdown-button:hover {
  color: #b026ff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #111111;
  border: 1px solid #39ff14;
  border-radius: 8px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #e8e8ee;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #b026ff;
  color: #ffffff;
}

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

/* ------------- WRAP THE WHOLE MAIN CONTENT TO NOT STRETCH EDGE TO EDGE -------------- */ 

.main-content, .content, .site-content { 
 margin: 1.25rem auto; /* centers the content */ 
 padding: 0 1.5rem 3rem; /* side padding + bottom spacing */ 
 max-width: 1100px; /* a larger number pushes the content further out */ 
 width: 100%;
 box-sizing: border-box;
}

.main-content {
  flex: 1;
}

/* ------------------- GRID LAYOUT FOR CHALLENGE BOXES ------------------- */

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* spacing between boxes */
  margin-top: 2rem;
}

/* ------------------- INLINE CODE STYLING -------------------- */

code {
  color: #4FD1C5;
  background-color: #111111;
  border: 1px solid #4FD1C5;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: Consolas, Monaco, "Courier New", monospace;
}

/* ------------------- TABLE STYLING -------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th,
td {
  border: 1px solid #d8d8d8;
  padding: 0.75rem;
  text-align: left;
}

th {
  color: #39FF14;
  background-color: #111111;
}
