/* Imports custom retro-cyberpunk web fonts directly from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Poppins:wght@300;400;600&display=swap');

/* Universal Selector Reset: Establishes a consistent baseline across all browsers.
   'border-box' forces padding and borders to sit inside an element's total width, 
   preventing sizing headaches. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Body Styles: Sets the fallback fonts, high-contrast light text, 
   and a deep canvas dark-blue background fill. */
body {
  background-color: #030f1a;
  color: #e0f7fa;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}



/* Top Header Strip: Locks the header bar to the very top edge of the viewport.
   Fixed positioning ensures it stays visible even when scrolling down the page. */
header {
  background: linear-gradient(180deg, #061826 0%, #030f1a 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px; /* Exact height block for our banner layout */
  z-index: 1000; /* Keeps the header layered safely above all main body content */
  border-bottom: 2px solid #39d4e7;
  box-shadow: 0 4px 25px rgba(57, 212, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the inner H1 title perfectly */
}
/*wrapped inside span elements to apply custom blue and red neon glow styles. */
header h1 span:nth-child(odd) {
  color: #39d4e7;
  text-shadow: 0 0 15px rgba(57, 212, 231, 0.6);
}
header h1 span:nth-child(even) {
  color: #ff4d29;
  text-shadow: 0 0 15px rgba(255, 77, 41, 0.6);
}

/* Main Site Title Typography: Assigns massive, stylized, neon cyan text properties 
   to the main brand heading. */
header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #39d4e7;
  text-shadow: 0 0 20px rgba(57, 212, 231, 0.4);
  text-align: center;
}



/* Left Sidebar Navigation Container: Fixed vertically down the left side edge. 
   Starts exactly at 140px so it rests cleanly underneath our fixed top header. */
nav {
  position: fixed;
  top: 140px;
  left: 0;
  width: 240px;
  height: calc(100vh - 140px); /* dynamically calculates the remaining window height */
  background-color: #030f1a;
  border-right: 2px solid #39d4e7;
  box-shadow: 4px 0 25px rgba(57, 212, 231, 0.1);
  z-index: 999;
}

/* Sidebar Menu List Wrapper: Forces target layout menu items to line up 
   vertically in a single clean column instead of a default row. */
nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  list-style-type: none; /* Removes bullet points entirely */
  gap: 15px; /* Even spacing between individual links */
  padding: 40px 20px;
  margin: 0;
}

/* List Block Items: Forces elements to span the full clickable width of the sidebar nav */
nav li {
  display: block;
  width: 100%;
}

/* Navigation Links Layout: Styles individual anchors into clean, uppercase block buttons */
nav a {
  text-decoration: none;
  color: #e0f7fa;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 4px;
  transition: all 0.3s ease; /* Enables smooth animated color shifting over mouseover */
  display: block;
  text-align: center;
  border: 1px solid transparent; /* Keeps sizing stable when adding a hover border */
}

/* Link Mouseover Interactions: Displays high-contrast neon crimson glow highlights 
   and a custom inset box shadow when hovered over. */
nav a:hover {
  color: #ff4d29;
  text-shadow: 0 0 10px rgba(255, 77, 41, 0.4);
  background-color: rgba(255, 77, 41, 0.05);
  border: 1px solid #ff4d29;
  box-shadow: inset 0 0 8px rgba(255, 77, 41, 0.2);
}



/* Main Content Workspace: Uses 'margin-left' and 'margin-top' offsets to clear 
   space for the fixed layout header and navigation sidebar, preventing overlaps. */
main {
  margin-top: 140px; /* Pushes content down past the 140px top header block */
  margin-left: 240px; /* Indents content to the right of the 240px wide sidebar */
  width: calc(100% - 240px);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Content Panel Section Card: Formats the wrapper card with a faint alpha 
   background tint, smooth rounded corners, and a glowing border frame. */
main section {
  max-width: 800px;
  width: 100%;
  text-align: center;
  background-color: rgba(6, 24, 38, 0.6);
  border: 1px solid rgba(57, 212, 231, 0.1);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3, 15, 26, 0.5);
}

/* Content Subheadings Typography Styling */
main h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: #39d4e7;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(57, 212, 231, 0.2);
}

/* General Layout Body Copy Paragraph Text Alignment */
main p {
  color: #8fa3a6;
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Inline Bold Text Elements: Targets default strong text hooks to highlight 
   key vocab words with a crisp neon blue/cyan accent tone. */
main strong {
  color: #39d4e7;
  text-shadow: 0 0 8px rgba(57, 212, 231, 0.3);
}

/* Inline Emphasis Element Overrides: Selects native italic tags and remaps them 
   into bright neon crimson bolded text markers. */
main em {
  color: #ff4d29;
  font-style: normal;
  font-weight: 600;
}

/* Graphic Display Image Content: Gives page imagery a subtle cyber glow 
   outline frame border design. */
main img {
  border: 3px solid #39d4e7;
  box-shadow: 0 0 25px rgba(57, 212, 231, 0.3);
  border-radius: 6px;
  transition: transform 0.3s ease; /* Preps the image for smooth hover sizing changes */
}

/* Graphic Display Image Hover Interactions: Subtle zoom animation on mouseover */
main img:hover {
  transform: scale(1.02);
}



/* Page Bottom Footer Layout: Adheres to the main body's 240px sidebar offset rule,
   anchoring layout copyright strings safely at the very bottom center. */
footer {
  margin-left: 240px; /* Matches the left-hand menu margin block dimensions */
  width: calc(100% - 240px);
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(57, 212, 231, 0.1);
  color: #8fa3a6;
  font-size: 0.85rem;
}

/* ==========================================================================
   NEW WIDGET & AUDIO PLAYER INTERACTIVE STYLES (ADDED BELOW)
   ========================================================================== */

/* Button layout positioner */
.button-container {
  text-align: center;
  margin: 35px 0;
}

/* Base button defaults targeting your established text styling fonts */
#togglePlayerBtn {
  font-family: 'Orbitron', sans-serif;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Neon crimson layout appearance when closed */
.player-btn-open {
  background-color: transparent;
  color: #ff4d29;
  border: 2px solid #ff4d29;
  box-shadow: 0 0 15px rgba(255, 77, 41, 0.2);
  text-shadow: 0 0 8px rgba(255, 77, 41, 0.4);
}

.player-btn-open:hover {
  background-color: rgba(255, 77, 41, 0.1);
  box-shadow: 0 0 25px rgba(255, 77, 41, 0.5);
}

/* Darker cyber styling when layout container shifts open */
.player-btn-close {
  background-color: transparent;
  color: #39d4e7;
  border: 2px solid #39d4e7;
  box-shadow: 0 0 15px rgba(57, 212, 231, 0.2);
  text-shadow: 0 0 8px rgba(57, 212, 231, 0.4);
}

.player-btn-close:hover {
  background-color: rgba(57, 212, 231, 0.1);
  box-shadow: 0 0 25px rgba(57, 212, 231, 0.5);
}

/* Audio Widget frame container matching your panel designs */
#playerContainer {
  max-width: 500px;
  width: 100%;
  margin: 25px auto;
  border: 2px solid #39d4e7;
  box-shadow: 0 0 30px rgba(57, 212, 231, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

#playerContainer iframe {
  width: 100%;
  height: 330px;
  border: 0;
  display: block;
}

/* JavaScript Toggle Selectors */
.widget-hidden {
  display: none;
}

.widget-visible {
  display: block;
}

/* Standardized external clean alignment selector for the footer/main logo display */
.promo-logo {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 30px auto 0 auto;
}

/* ==========================================================================
   CUSTOM JAVASCRIPT POP-UP BOX (MODAL) STYLES
   ========================================================================== */

/* The dark background overlay grid mask */
.modal-overlay {
  display: none; /* Kept invisible until JavaScript sets it to 'flex' */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 15, 26, 0.85); /* Deep tint dims out backpage content */
  backdrop-filter: blur(4px); /* Modern blur effect for UI separation */
  z-index: 2000; /* Forces it to hover above headers and navigation sidebars */
  justify-content: center;
  align-items: center;
}

/* The physical dialog frame container */
.modal-content {
  background-color: #061826;
  border: 2px solid #ff4d29; /* Neon crimson accent frame line */
  box-shadow: 0 0 35px rgba(255, 77, 41, 0.35);
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  animation: modalFadeIn 0.3s ease-out;
}

/* Animation to smoothly drift the box into place */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pop-up Heading Elements */
.modal-content h3 {
  font-family: 'Orbitron', sans-serif;
  color: #ff4d29;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 77, 41, 0.4);
  letter-spacing: 1px;
}

/* Pop-up Text Blocks */
.modal-content p {
  color: #e0f7fa;
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Top-Right Corner Closing 'X' Icon Anchor */
.modal-close-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #8fa3a6;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-icon:hover {
  color: #39d4e7;
}

/* Internal Call-to-Action confirmation button inside the pop-up */
#modalActionBtn {
  margin-top: 15px;
  font-family: 'Orbitron', sans-serif;
  background-color: transparent;
  color: #39d4e7;
  border: 2px solid #39d4e7;
  padding: 10px 24px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(57, 212, 231, 0.2);
  transition: all 0.2s ease;
}

#modalActionBtn:hover {
  background-color: rgba(57, 212, 231, 0.1);
  box-shadow: 0 0 20px rgba(57, 212, 231, 0.5);
  text-shadow: 0 0 5px #39d4e7;
}