/*NEW STYPES*/
.navbar {
  background-color: #003366;
}

.navbar-nav .nav-link {
  text-transform: uppercase;
  color: #ffffff;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #ffcc00;
}

.hero-btn, .cta-btn, .btn {
  background-color: #0066cc;
  color: #ffffff;
  border: none;
}

.hero-btn:hover, .cta-btn:hover, .btn:hover {
  background-color: #004c99;
  color: #ffffff;
}

.card {
  background-color: #ffffff;
  color: #212529;
  padding: 1rem;
  border: 1px solid #dee2e6;
}

.card h3,
.card p {
  color: #212529;
}

.breadcrumb-item a,
.breadcrumb-item.active {
  color: #333333;
}



/*END*/


    body {
      background-color: #f8f9fa;
    }

    /*DIV*/
    /* General styles for the container */
#container {
  display: flex;
  flex-wrap: wrap;  /* Allow content to wrap within the container */
  justify-content: center; /* Center content horizontally */
  align-items: flex-start; /* Align items at the top */
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 10px; /* Padding to avoid content sticking to edges */
  overflow: hidden; /* Hide any overflow to prevent scrolling */
  box-sizing: border-box; /* Include padding in element's total width/height calculation */
}

/* Responsive behavior for large screens (desktop) */
@media (min-width: 1024px) {
  #container {
    display: flex;
    justify-content: space-between; /* Space content evenly */
    flex-wrap: wrap; /* Ensure content can wrap on large screens */
    max-width: 1200px; /* Optional max width */
    margin: 0 auto; /* Center the container */
    padding: 20px;
  }
}

/* For tablet or small desktop screens */
@media (min-width: 768px) and (max-width: 1024px) {
  #container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
    width: 100%;
  }
}

/* For mobile screens (portrait and smaller) */
@media (max-width: 768px) {
  #container {
    display: block; /* Stack content vertically */
    padding: 10px;
    width: 100%; /* Take full width */
    box-sizing: border-box;
  }
}

/* Optional: Adding some basic styling for child elements inside container */
#container > * {
  margin: 10px;  /* Space between children */
  box-sizing: border-box; /* Ensure padding/margin is counted in total size */
  flex: 1 1 calc(33.33% - 20px);  /* Three items per row for desktop screens */
}

/* On larger screens, you can adjust the number of items per row */
@media (min-width: 1024px) {
  #container > * {
    flex: 1 1 calc(33.33% - 20px); /* Three items per row on desktop */
  }
}

/* For smaller screens, reduce number of items per row */
@media (max-width: 1024px) {
  #container > * {
    flex: 1 1 calc(50% - 20px); /* Two items per row for tablets and smaller desktops */
  }
}

/* On mobile devices, each item takes full width */
@media (max-width: 768px) {
  #container > * {
    flex: 1 1 100%; /* One item per row on mobile */
  }
}


    /*DIV*/

    h1 {
      font-size: 1.8rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 25px;
      color: #0d6efd;
    }

    /* Styling for the target size input, unit dropdown, and format dropdown */
#targetSize, #unit, #format {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 15px;
  background-color: #fff;
}

#targetSize:focus, #unit:focus, #format:focus {
  outline: none;
  border-color: #0d6efd; /* Highlight border color on focus */
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5); /* Light blue glow effect */
}

select {
  background-color: #fff;
  border: 1px solid #ddd;
}

select:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

#unit, #format {
  display: inline-block;
  width: 48%;
  margin-right: 4%;
}

#unit {
  margin-right: 2%;
}

@media (max-width: 576px) {
  #unit, #format {
    width: 100%;
    margin-right: 0;
  }
}
    #downloadLink {
      margin-top: 20px;
      display: inline-block;
      padding: 10px 15px;
      background-color: #198754;
      color: white;
      text-decoration: none;
      border-radius: 6px;
    }

    #downloadLink:hover {
      background-color: #157347;
    }

  .navbar-nav .nav-link {
    text-transform: uppercase;
    color: white !important;
  }

  .navbar-nav .nav-link.active {
    color: #ffc107 !important; /* Bootstrap success color */
  }
  #loading {
      display: none;
      text-align: center;
      margin-top: 20px;
    }
    #loading span {
      display: inline-block;
      width: 10px;
      height: 10px;
      margin: 0 2px;
      background: #333;
      border-radius: 50%;
      animation: loading 0.8s infinite alternate;
    }
    #loading span:nth-child(2) {
      animation-delay: 0.2s;
    }
    #loading span:nth-child(3) {
      animation-delay: 0.4s;
    }
/* Styling for the Resize Image button */
button#resizeButton {
    margin-top: 20px;
    padding: 3px 8px;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
}

button#resizeButton:hover {
  background-color: #157347;
}


    @keyframes loading {
      from { transform: translateY(0); }
      to { transform: translateY(-10px); }
    }

/*Styles for why choose our  tools*/
  .feature-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: all 0.3s ease-in-out;
    text-align: center;
  }

  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }

  .feature-icon {
    font-size: 2.8rem;
    color: #0d6efd;
    margin-bottom: 1rem;
  }

  .feature-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #212529;
    margin-bottom: 0.5rem;
  }

  .feature-desc {
    font-size: 0.95rem;
    color: #6c757d;
  }
/*Styles of how it works*/
  .step-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    padding: 1.8rem 1.5rem;
  }

  .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .step-icon {
    font-size: 2.2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
  }

  .step-badge {
    background: #0d6efd;
    color: #fff;
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .step-title {
    font-weight: 600;
    font-size: 1.15rem;
    color: #212529;
    margin-top: 0.5rem;
  }

  .step-desc {
    font-size: 0.95rem;
    color: #555;
  }

  .section-subtext {
    font-size: 0.9rem;
    color: #6c757d;
  }

/*Start Resizing*/
  .floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5);
    }
    70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 12px rgba(13, 110, 253, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
  }

/*Hide starting reduce*/
  @media (max-width: 576px) {
    #scroll-btn {
      font-size: 0.9rem;
      padding: 0.4rem 1rem;
      bottom: 15px;
      right: 15px;
    }
  }
