/* 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.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;
}
