.container-fluid { max-width: 90%; margin-bottom: 25px;}
.cdnentry { padding: 5px; }
.margin-fix { margin-top: 5px; margin-bottom: 25px; }
.jumbotron { padding: 20px; }
/* Import Google Font for a cleaner look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* --- Root Variables for easy theme customization --- */
:root {
    --primary-color: #007bff;
    --dark-text: #343a40;
    --light-text: #f8f9fa;
    --body-bg: #f4f7f9;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

.btn{
    padding: 10px .75rem;
}
/* --- General Body and Typography --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-text);
}

.margin-fix {
    margin: 0;
}

.margin-bottom-40{
    margin-bottom: 40px;
}

/* --- Hero Section --- */
.jumbotron {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* Dark, sleek gradient */
    color: var(--light-text);
    border-radius: 0;
   
    text-align: center;
}

.jumbotron .logo img {
    max-width: 300px;
   
    
}

.jumbotron h1.display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin: 15px 0px 5px 0;
}

.jumbotron p.lead {
    font-size:18px;
    margin-left: auto;
    margin-right: auto;
}

.jumbotron p.lead b, .jumbotron p.lead strong {
    color: #61dafb; /* A vibrant accent color */
    font-weight: 500;
}

.jumbotron .container .row {
  
  display: flex !important;
  flex-wrap: wrap !important; /* Allow wrapping on small screens */
  justify-content: center !important;

 
  gap: 20px !important;

  
  margin: 0 !important;
  padding: 0 !important;
}

.jumbotron .container .row .col-md-6 {
 
  flex-grow: 1;
  flex-basis: 40%; /* Start with a base width smaller than 50% */
  max-width: 50%;
  padding: 15px !important;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-top: 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}


/* --- Unified Styles for the 2x2 Grid Boxes --- */

/* This is the main "frosted glass" style for the boxes */
.info-box, .code-block-wrapper {
    
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
   
    -webkit-backdrop-filter: blur(8px);
  
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}
h5.text-black {
    font-size: 18px!important;
    font-weight: 400!important;
}
/* Styles for the heading ABOVE all boxes */
.jumbotron .col-md-6 > h5 {
  color: #000 !important; /* Overrides .text-black in HTML if present */
  margin-bottom: 0.75rem;
  font-weight: 400;
  text-align: center;
  padding-left: 0.25rem;
 font-size: 10px!important;
  
}

#primary-dns-text, #alternative-dns-text, #windows-command {
    margin-left: 42px
}

/* Styles for the DNS info box content */
.info-box .lead {
  text-align: center;
  margin-bottom: 0;
  width: 100%;
  font-size: 1rem; /* Adjust font size for consistency */
}
.info-box .lead strong {
    color: #fff;
    font-weight: 400!important;
}

/* Styles specifically for the code instruction boxes */
.code-block-wrapper {
  justify-content: space-between;
}
.code-block-wrapper pre {
  margin: 5px 10px;
  flex-grow: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-block-wrapper pre::-webkit-scrollbar {
  display: none;
}
.code-block-wrapper code {
      font-family: 'Inter', sans-serif;
    color: #61dafb;
    font-size: 17px;
}

/* --- Responsive Layout for the Grid --- */

.jumbotron .row {
  display: flex;
  flex-wrap: wrap;
}
.jumbotron .row > .col-md-6 {
  flex: 0 0 100%; /* Mobile: full-width */
  max-width: 100%;
}

/*
  This CSS creates the "Copied!" notification tooltip.
*/

/* Required for positioning the tooltip */
.copy-btn {
  position: relative;
}
.btn-outline-light {
    color: #f8f9fa;
    border-color: #ffffff26!important;
}

/* The "Copied!" tooltip message */
.copy-btn.is-copied::after {
  content: 'Copied!';
  position: absolute;
  bottom: 120%; /* Position it above the button */
  left: 50%;
  transform: translateX(-50%);

  /* Tooltip appearance */
   /* A green success color */
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif; /* Match your site's font */
  white-space: nowrap;
  z-index: 10;
}

/* Optional: You can also make the icon/border green temporarily */
.copy-btn.is-copied {
  border-color: #28a745;
  color: #28a745;
}


/* Styling for the new main column titles */
.column-title {
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem; /* Adds space between the title and the boxes below */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Domain Test Section --- */
#cdn-tester {
    padding-left: 0;
    padding-right: 0;
}

#cdn-tester .item {
    background-color: var(--card-bg);
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 2rem;
    margin-top: -50px; /* Pull the test section up into the hero */
    position: relative;
    z-index: 10;
}

#inputTest {
    border: 2px solid var(--border-color);
    border-radius: 8px !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#inputTest:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

#inputTestButton {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    font-weight: 500;
    border-radius: 8px;
    padding: 5px 30px 5px 30px;
    transition: background-color 0.2s, transform 0.2s;
}

#inputTestButton:hover {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    transform: translateY(-2px);
}

.item {
    padding: 5px;
}

.tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
    padding: 0px 10px;
}



/* ============================================== */
/* === Responsive Styles for All Devices      === */
/* ============================================== */

/* Make the two DNS boxes stack on top of each other */
.jumbotron .container .row {
  flex-direction: column !important; /* Stack items vertically */
  gap: 0 !important; /* No horizontal gap needed when stacked */
  align-items: center; /* Center the boxes in the container */
}

/* Allow each DNS box to take up the full width */
.jumbotron .container .row .col-md-6 {
  flex-basis: 100% !important; /* Let them take the full width */
  max-width: 100% !important;
}

/* Make the search bar area wider on mobile for easier use */
#cdn-tester .item .col-sm-6.offset-sm-3 {
  flex: 0 0 100%;
  max-width: 100%;
  margin-left: 0;
}

/* Reduce the large negative margin on the test box for mobile */
#cdn-tester .item {
  margin-top: 2rem;
}

/* Adjust padding on the hero section for smaller screens */
.jumbotron {
  padding: 2rem 1rem;
}


/* --- 2. Styles for Tablets & Desktops (screens 768px and wider) --- */
@media (min-width: 768px) {

  /* Restore the side-by-side layout for the DNS boxes */
  .jumbotron .container .row {
    flex-direction: row !important; /* Change back to side-by-side */
    gap: 20px !important; /* Restore your desired 20px gap */
  }

  /* Restore the original width for the DNS boxes */
  .jumbotron .container .row .col-md-6 {
    flex-basis: 40% !important;
    max-width: 50% !important;
  }

  /* Restore the original layout for the search bar */
  #cdn-tester .item .col-sm-6.offset-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-left: 25%;
  }

  /* Restore the original negative margin for the test box */
  #cdn-tester .item {
    margin-top: -50px;
  }
  
  .jumbotron {
    padding: 4rem 2.5rem;
  }
  .jumbotron .row {
    margin: 0 -10px; /* Gutter system for grid alignment */
  }
  .jumbotron .row > .col-md-6 {
    flex: 0 0 50%; /* Desktop: half-width for 2x2 grid */
    max-width: 50%;
    padding: 0 10px; /* Creates the 20px gap between boxes */
  }
}

/* ================================================= */
/* === Responsive Styles for CDN Results Section === */
/* ================================================= */

/*
  This helper rule ensures the main container for the cards
  wraps its content correctly on all screen sizes.
*/
#cdns.row {
  display: flex;
  flex-wrap: wrap;
}

/* --- 1. Mobile Phones (Single Column) --- */
/* By default, each result card will take the full width */
#cdns .cdnentry.col-md-3 {
  flex: 0 0 100%;
  max-width: 100%;
}


/* --- 2. Tablets (Two Columns) --- */
/* On screens 768px and wider, we'll show two cards side-by-side */
@media (min-width: 768px) {
  #cdns .cdnentry.col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .container {
    max-width: 900px;
}
}


/* --- 3. Desktops (Four Columns) --- */
/* On screens 992px and wider, we'll show four cards side-by-side */
@media (min-width: 992px) {
  #cdns .cdnentry.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1175px;
    }
}