/* main.css */
/*************************************************************
 * 1) BASIC GLOBAL STYLES & RESETS
 *************************************************************/
* {
  scrollbar-width: thin;
  scrollbar-color: #555555 #333333;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #333333;
}
::-webkit-scrollbar-thumb {
  background-color: #555555;
  border-radius: 6px;
  border: 3px solid #333333;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #777777;
}

/*************************************************************
 * 2) GLOBAL BODY, FONT, COLORS & MODES
 *************************************************************/
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: auto;
  transition: background 0.3s, color 0.3s;
}

.dark-mode {
  background: #000;
  color: #fff;
}

.light-mode {
  background: #fff;
  color: #000;
}

/*************************************************************
 * 3) CONTAINER & CONTENT
 *************************************************************/
.container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
}

.content {
  margin-top: 10px;
  margin-bottom: 25px;
  width: 100%;
}

.h3-heading {
  font-size: 20px;
  font-weight: 600;
  padding-top: 15px;
  margin-bottom: 8px;
  color: white; /* fallback default */
}

/* Light mode override */
body.light-mode .h3-heading {
  color: #000 !important;
}

/* Dark mode override (optional if default is white) */
body.dark-mode .h3-heading {
  color: white;
}

/* ============================================================
 * 3.a) INSTRUCTIONS PAGE HELPERS (ADD-ONLY)
 *     - Modern prose defaults
 *     - Floatable YouTube embed (text wraps)
 *     - Consistent screenshot sizes + captions
 *     - Simple callouts and step list
 * ============================================================ */

/* Comfortable reading width + spacing for instruction text
   (now auto-clears floats for embedded media) */
.instructions-prose {
  max-width: 70ch;
  line-height: 1.7;
  letter-spacing: 0.01em;
  display: flow-root;       /* self-clear for floated media */
  text-wrap: pretty;        /* nicer line breaks where supported */
}
.instructions-prose h2,
.instructions-prose h3 {
  margin: 18px 0 10px 0;
}
.instructions-prose p,
.instructions-prose ul,
.instructions-prose ol {
  margin: 0 0 12px 0;
}
.instructions-prose .lead {
  font-size: 1.07rem;
  opacity: 0.95;
}

/* Intro section: ensure the container grows around the float, tighten spacing */
#intro-wrap { display: flow-root; }
#intro-wrap h2 { margin-top: 4px; }
#intro-wrap .lead { margin-top: 6px; }

/* Floatable 16:9 video – text wraps around it on desktop (better integration) */
.video-float-right,
.video-float-left {
  width: clamp(300px, 40vw, 560px);
  aspect-ratio: 16 / 9;
  border: 1px solid #333;
  border-radius: 10px;              /* match screenshot rounding */
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  background: #000;
  margin-block: 8px 18px;           /* consistent vertical rhythm */
}
.video-float-right { float: right; margin-inline: 18px 0; }
.video-float-left  { float: left;  margin-inline: 0 18px; }
.video-float-right iframe,
.video-float-left iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Rounded text wrap around the video when supported */
@supports (shape-outside: inset(0 round 12px)) {
  .video-float-right,
  .video-float-left {
    shape-outside: inset(0 round 12px);
    shape-margin: 12px;
  }
}

/* Light mode polish for video border */
.light-mode .video-float-right,
.light-mode .video-float-left { border-color: #cfcfcf; }

/* Collapse/stack the video cleanly on small screens */
@media (max-width: 900px) {
  .video-float-right,
  .video-float-left {
    float: none;
    margin: 12px 0 18px 0;   /* centered block spacing */
    width: 100%;
    max-width: none;         /* let it truly fill the container */
  }
}

/* Figure + caption pattern for screenshots (more flexible width) */
.screenshot-figure {
  display: block;
  margin: 18px auto;
  text-align: center;        /* centers the caption */
  max-width: 100%;           /* remove 520px cap to scale better */
}
.screenshot-figure img.screenshot {
  display: block;
  width: 100%;
  height: auto;              /* preserves intrinsic ratio */
  object-fit: contain;       /* avoids odd stretching on narrow screens */
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.screenshot-figure .caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #bbbbbb;
}

/* Grid gallery for multiple screenshots (e.g., 7 shots) */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 22px 0;
}
@media (min-width: 768px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* 2 cols on tablets+ */
    gap: 20px;
  }
}
@media (min-width: 1100px) {
  .screenshot-grid { gap: 24px; }
}
.screenshot-grid .screenshot-figure {
  max-width: 100%;
}

/* Callouts for tips/notes/warnings */
.callout,
.tip,
.note,
.warning {
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0F1926;
}
.tip::before    { content: "Tip: ";    font-weight: 700; color: #40a8ff; }
.note::before   { content: "Note: ";   font-weight: 700; color: #97B8D5; }
.warning {
  background: #2a1a1a;
  border-color: #553333;
}
.warning::before{ content: "Warning: ";font-weight: 700; color: #ff9b73; }

/* Numbered steps with accent discs */
ol.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin: 0 0 12px 0;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom, #0054FF, #0447D3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Small, inline “keyboard” tokens if needed (e.g., keys, buttons) */
.kbd {
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border: 1px solid #333;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #1b1b1b;
}

/* Light mode tweaks for the new elements */
.light-mode .screenshot-figure img.screenshot { border-color: #ccc; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.light-mode .screenshot-figure .caption { color: #333; }
.light-mode .callout,
.light-mode .tip,
.light-mode .note { background: #f5f9ff; border-color: #bcd6ff; }
.light-mode .warning { background: #fff6f3; border-color: #ffc9b6; }
.light-mode .kbd { background: #f7f7f7; border-color: #ccc; }

/* Optional: slightly tighter spacing on very narrow phones */
@media (max-width: 420px) {
  .screenshot-figure { margin: 14px 0; }
}

/* ===== Wide-screen / tablet layout tune-ups (use full container width) ===== */

/* Let prose expand to the container on larger viewports */
@media (min-width: 900px) {
  .instructions-prose {
    max-width: 100%; /* was 70ch; now use full container width */
  }
}

/* Turn the intro into a clean 2-col grid on medium/wide screens */
@media (min-width: 900px) {
  #intro-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
    gap: 24px;
    align-items: start;
  }

  /* Park the video in the right column (no float needed) */
  #intro-wrap > .video-float-right,
  #intro-wrap > .video-float-left {
    grid-column: 2;
    float: none;
    margin: 0;
    width: 100%;
    max-width: none;
  }

  /* Ensure all non-video children flow in the left column */
  #intro-wrap > :not(.video-float-right):not(.video-float-left) {
    grid-column: 1;
  }
}

/*************************************************************
 * 3.1) BLOG
 *************************************************************/

/* Stylized inline DNS A record snippet */
.dns-snippet {
  background-color: #1c1c1c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #FFFFFF;
  margin: 20px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Blog article image */
.article-image {
  margin: 30px 0;
  text-align: center;
}

.article-image img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #444;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Float image left with text wrap, responsive on mobile */
.article-image-float {
  display: flow-root;
  margin: 20px 0;
}

.article-image-float img {
  float: left;
  margin: 0 20px 10px 0;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #444;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Stack image and text vertically on small screens */
@media (max-width: 768px) {
  .article-image-float img {
    float: none;
    display: block;
    margin: 0 auto 15px auto;
  }
}

/*************************************************************
 * 4) NAV & FLYOUT MENU
 *************************************************************/
/* --- Top nav menu --- */
.nav-menu {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background-color: rgba(0, 0, 0, 0.8);
  transition: background 0.3s;
  z-index: 1000;
}

.nav-menu a,
.menu-icon {
  color: #FFFFFF;
  text-decoration: none;
  margin: 0 10px;
  font-size: 10px;
  transition: color 0.3s;
}

.nav-menu a:hover,
.menu-icon:hover {
  color: #E6E6E6;
}

.menu-icon {
  cursor: pointer;
  padding-right: 10px;
  font-size: 20px;
  color: #404040;
}

.menu-close {
  cursor: pointer;
  font-size: 16px;
  color: #424242;
}

.nav-links {
  display: flex;
  gap: 12px;          /* spacing between Home / DNS Lookup */
  align-items: center;
}

/* Light mode overrides for nav */
.light-mode .nav-menu {
  background-color: rgba(255, 255, 255, 0.8);
}

.light-mode .nav-menu a,
.light-mode .menu-icon {
  color: black;
}

/* Flyout Menu */
.flyout-menu {
  position: fixed;
  right: -250px;
  top: 0;
  width: 250px;
  height: 100%;
  background: #1D1D1D;
  transition: right 0.3s ease;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
  border-left: 1px solid #000000;
  box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}

.flyout-menu a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
  font-size: 16px;
}

.flyout-menu a:hover {
  color: #E6E6E6;
}

/*************************************************************
 * 5) MODE SWITCH (Dark/Light)
 *************************************************************/
.mode-switch {
  display: flex;
  align-items: center;
}

.mode-switch input {
  display: none;
}

.mode-switch label {
  display: block;
  width: 35px;
  height: 15px;
  background: #ccc;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}

.mode-switch label::after {
  content: '';
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.mode-switch input:checked + label::after {
  transform: translateX(20px);
}

/*************************************************************
 * 6) HEADER & HERO
 *************************************************************/
.header-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: 0;
}

.header-hero video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Logo in nav */
.nav-logo {
  max-width: 30px;
  height: auto;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Title in hero */
.header_title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  padding-top: 35px;
  padding-bottom: 15px;
  margin: 5px;
  text-align: center;
}

.header_title img {
  vertical-align: middle;
  max-width: 60px;
  margin-right: 12px;
}

.header_title {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 42px;
  padding-top: 35px;
  padding-bottom: 10px;
  color: white;
}

.header_subtitle {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0;
}

.subtitle-link {
  font-size: 24pt;
  color: white;
  text-decoration: none;
}

.subtitle-link:hover {
  text-decoration: underline;
}

/*************************************************************
 * 7) LAYOUT SECTIONS (TOP/BOTTOM ROWS, QUADRANTS)
 *************************************************************/
.top-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.left-column,
.right-column {
  width: 100%;
}

.quadrant1 {
  /* Additional quadrant1 styling if desired */
}

.right-column .quadrant2 {
  margin-bottom: 20px;
}

/* Disable ad sections if desired; if you re-enable them, they will float right */
.ad-container,
.ad-body-right {
  float: right;
  display: none;   /* Changed from inline-block to none to hide the ads */
/*  display: inline-block;*/
  padding: 30px;    /* Outside spacing */
  margin-left: 30px;/* Left margin for separation from text */
  margin-top: 20px;
}

.ad1 {
  display: none;
  background: #111;
  padding: 10px;
  border-radius: 8px;
}

.quadrant3 {
  margin-top: 20px;
}

.bottom-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.ad2 {
  display: none;
  background: #111;
  padding: 10px;
  border-radius: 8px;
}

.body-section-img-wrapper {
  float: right;
  display: inline-block;
  padding: 30px;      /* Outside padding */
  margin-left: 30px;  /* Left margin for text separation */
  margin-top: 20px;
}

.body-section-img {
  display: inline-block;
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 1px solid #fff;
  border-radius: 5px;
  /* No padding here */
}

/*************************************************************
 * 8) RESPONSIVE BREAKPOINTS
 *************************************************************/
@media (min-width: 768px) {
  .top-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .left-column {
    width: calc(65% - 200px);
  }

  .right-column {
    width: calc(35% + 200px);
    display: flex;
    flex-direction: column;
  }

  .bottom-row {
    flex-direction: row;
  }

  .ad2 {
    width: 20%;
  }

  .quadrant4 {
    width: 80%;
  }

  .record-box {
    max-width: 450px;
    box-sizing: border-box;
  }
}

/*************************************************************
 * 9) FOOTER
 *************************************************************/
.footer {
  position: relative;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 6pt;
  transition: background 0.3s, color 0.3s;
}

.footer-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  text-decoration: none;
  color: white;
}

.light-mode .footer-link {
  color: black;
}

/*************************************************************
 * 10) COMPANY-INFO BLOCK, RECORDS, ETC.
 *************************************************************/
.company-info-block {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.company-info-block img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* DNS Records Section */
.dns-records-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #111;
  border-radius: 8px;
}

.dns-records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dns-records-header h2 {
  margin: 0;
  font-size: 24px;
}

.records-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 15px;
  margin-top: 20px;
}

.record-box {
  background-color: #222;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 1050px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.record-box h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 16px;
  color: #40a8ff;
}

.record-box p {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4em;
}

/*************************************************************
 * 11) BUTTONS & LINKS
 *************************************************************/
.form-input {
  font-size: 12px;
  width: 100%;
  padding: 2px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #555555;
  box-sizing: border-box;
  background-color: #444444;
  color: white;
}

.form-input::placeholder {
  color: #bbbbbb;
}

button {
  width: 55%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #555555;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #0054FF, #0447D3);
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background: linear-gradient(to bottom, #0447D3, #0054FF);
}

.submit-button {
  background: linear-gradient(to bottom, #0054FF, #0447D3);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  width: auto;
  margin: 5px;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(to bottom, #0447D3, #0054FF);
}

.content a {
  color: #0054FF;
  text-decoration: none;
}

.content a:hover {
  color: #005FFF;
}

.record-box {
  max-width: 1025px;
}

.hidden-honeypot {
    display: none;
}
.grecaptcha-badge {
    visibility: hidden;
}
/*************************************************************
 * 12) ADDITIONAL MEDIA QUERIES FOR MOBILE
 *************************************************************/
@media (max-width: 768px) {
  .container {
    max-width: 768px;
    margin: 0 auto;
    padding: 15px;
  }
  .dns-records-section {
    font-size: 9pt;
    max-width: 100%;
  }
  .record-box {
    font-size: 9px;
    max-width: 400px;
    padding-right: 5px;
    min-width: 350px;
  }
  .nav-links {
    display: none;
  }
  .nav-search {
    display: block;
    width: 200px;
  }
  .nav-search form input {
    max-width: 135px;
  }
}

/*************************************************************
 * 13) LIGHT MODE OVERRIDES (DNS SECTIONS, SUMMARY BOX, etc.)
 *************************************************************/
.light-mode .dns-records-section {
  background-color: #f1f1f1;
}

.light-mode .record-box {
  background-color: #fff;
  border: 1px solid #ccc;
}

.light-mode .summary-box {
  background-color: #f1f1f1 !important;
  border: 1px solid #ccc !important;
  color: #000 !important;
}

/*************************************************************
 * 14) LIGHT MODE: LABEL & VALUE COLOR FIXES
 *************************************************************/
.light-mode .summary-box span[style*="font-weight:bold; font-size:16px; color:#fff;"] {
  color: #000 !important;
}

.light-mode .summary-box span[style*="font-size:18px; color:#FC6FCF;"] {
  color: #a9005f !important;
}

.light-mode .summary-box span[style*="color:#97B8D5;"] {
  color: #000080 !important;
}

.light-mode .summary-box span[style*="color:#D3D212;"] {
  color: #cc5500 !important;
}

/*************************************************************
 * 15) NOTIFICATIONS & NAV EXTRAS
 *************************************************************/
#copyNotification,
#shareNotification {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #0F1926;
  color: #fff;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #97B8D5;
}

#copyNotification {
  z-index: 1000;
}

#shareNotification {
  z-index: 1005;
}

/*************************************************************
 * 16) NAV-SEARCH FORM
 *************************************************************/
.nav-search form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-search form input {
  margin-right: 2px;
}

.nav-search form button {
  margin-left: 2px;
}

/*************************************************************
 * 17) COPY & SHARE BUTTONS
 *************************************************************/
.copy-button {
  margin-top: 5px;
  width: 50px;
  float: right;
  text-align: right;
  cursor: pointer;
  font-size: 12px;
  color: #cccccc;
  border: none;
  padding: 4px !important;
  background: transparent;
  outline: none;
}

.copy-button:hover {
  border: 1px solid #cccccc;
  background: #000000 !important;
}
