/* Fix horizontal overflow issue */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Ensure all containers respect viewport width */
.container, .container-fluid, .row {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Fix any elements that might be extending beyond container width */
img, table, iframe, .card, .card-container, .step-cards-container {
  max-width: 100%;
}


body {
    font-family: 'Montserrat', sans-serif;
}

/* Or apply to specific elements */
.title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;  /* Using semibold weight */
}

.text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;  /* Using regular weight */
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;

}

h2 {
    font-family: 'Montserrat', sans-serif;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

li {
     font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}
.control-row {
    display: flex;
    align-items: center;  /* This vertically centers the items */
    gap: 20px;           /* Adds consistent spacing between elements */
}

.view-button {
    background-color: #4169E1;  /* Royal blue color similar to image */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .view-button {
        padding: 8px 15px; /* Slightly smaller padding */
        font-size: 0.9rem; /* Slightly smaller font */
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .view-button {
        padding: 6px 12px; /* Even smaller padding */
        font-size: 0.85rem; /* Smaller font size */
        display: block; /* Make button full width on very small screens */
        width: 100%; /* Full width */
        margin-bottom: 5px; /* Add some spacing if buttons stack */
    }
}


.demand-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 7px;
}

.analyze-button {
    background-color: #2E8B57;  /* Sea green color similar to image */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
}

select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: lighter;
    font-size: 7px;
}
.list-group {
     padding-left: 0 !important;
  padding-right: 0 !important;
}
.col-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.main-container {
    background-image: url('/static/DecaSim_BG.png');
  background-size: cover;
  background-position: center;
  width: 100%; /* Full width */
  padding: 15px;
  box-sizing: border-box; /* Ensures padding doesn't add to width */
  margin: 0; /* Remove any default margins */
}
.info-section {
    color: #ffffff; /* Light blue */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.info-section h1{
    text-align: center;
    font-weight: bolder;
     font-size: xxx-large;
    color: #ffffff
}
.info-section-2 {
    color: #ffffff; /* Light blue */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.info-section-2 h1{
    text-align: center;
    font-weight: bolder;
    font-size: xx-large;
    color: #000000
}
.info-section h1 {
  text-align: center;
}
.info-section h3 {
  text-align: center;
}
.action-section {
  background-color: #e6ffe6; /* Light green */
  padding: 20px;
  border-radius: 8px;
}

.action-section h1 {
   text-align: center;
    font-weight: bolder;
    font-size: xxx-large;
    color: #aa10aa
}

.action-section h3 {
   text-align: center;
    font-size: x-large;
    color: #000000
}
/* Card container - holds all cards in a row */
.card-container {
    display: flex;
    justify-content: space-between; /* Distributes cards evenly */
    gap: 15px; /* Space between cards */
    margin-top: 20px;
}
.info-section .card {
  background-color: transparent !important;
  box-shadow: none !important;
}
/* Individual card styling */
.card {
    flex: 1; /* Each card takes equal width */
    background-color: transparent; /* Transparent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Optional: subtle border */
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
    /* Remove box-shadow for transparency */
}

/* Optional: Add hover effect that works with transparency */
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Make sure cards stay side by side as much as possible */
@media (max-width: 768px) {
    .card-container {
        flex-wrap: nowrap; /* Prevents wrapping on medium screens */
        overflow-x: auto; /* Allows horizontal scrolling if needed */
    }

    .card {
        min-width: 200px; /* Minimum width to maintain readability */
    }
}

/* Only force stacking on very small screens */
@media (max-width: 720px) {
    .card-container {
        flex-wrap: wrap;
    }

    .card {
        flex-basis: 100%;
    }
}

/* Container for step cards */
.step-cards-container {
    background: transparent;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

/* Individual step card styling */
.step-card {
    flex: 1;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease;
    text-align: center; /* Center the text */
}

.step-card p {
    text-align: center; /* Ensure paragraphs are centered */
}

/* Step number styling */
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(136, 0, 255, 0.99); /* Or any color that matches your theme */
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}

/* Hover effect */
.step-card:hover {
    transform: translateY(-5px);
}

/* Make sure cards stay side by side as much as possible */
@media (max-width: 480px) {
    .step-cards-container {
        flex-wrap: wrap;
        padding-top: 15px; /* Add padding at the top of the container */
    }

    .step-card {
        flex-basis: 100%;
        margin-top: 20px; /* Add more top margin to each card */
    }

    /* First card needs special treatment */
    .step-card:first-child {
        margin-top: 15px; /* Slightly less margin for first card */
    }
}

/* Only force stacking on very small screens */
@media (max-width: 768px) {
    .step-cards-container {
        flex-wrap: wrap;
        overflow-y: visible;
    }

    .step-card {
        flex-basis: 100%;
    }
}

.navbar {
  padding-top: 0.25rem !important;    /* Reduce top padding */
  padding-bottom: 0.25rem !important; /* Reduce bottom padding */
  min-height: auto !important;        /* Override any min-height */
}

.navbar-brand {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  margin-right: 1rem;
}

.navbar-nav .nav-link {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.navbar-logo {
  height: 50px; /* Make logo slightly smaller */
}

/* Fully justify navbar content */
.navbar .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Ensure brand stays left and nav stays right */
.navbar-brand {
  margin-right: auto; /* Push it to the left */
}

.navbar-collapse {
  justify-content: flex-end; /* Push nav items to the right */
}

/* For mobile, maintain right alignment when expanded */


@media (max-width: 991.98px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    text-align: right;
  }

  /* Ensure the nav links are right-aligned */
  .navbar-nav {
    margin-left: auto;
    margin-right: 0;
  }

  /* Add some spacing at the top when expanded */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    padding-top: 10px;
  }

  /* Right-align any dropdown menus if you have them */
  .navbar-nav .dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
  }
}


.row.pdf-viewer-container {
  padding-left: 20px; /* Adjust value as needed */
}

.row.pdf-viewer-container h2{
  text-align: center;
    font-size: xxx-large;
    font-weight: bolder;
}

/* Responsive styling for PDF info section */
@media (max-width: 768px) {
  /* Make the flex container stack on small screens */
  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
  }

  /* Adjust title and text size */
  h5.mb-1 {
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
    word-break: break-word; /* Allow long titles to wrap */
  }

  small.text-muted {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.25rem;
  }

  /* Make the buttons container take full width */
  .d-flex.gap-2 {
    width: 100%;
    flex-wrap: wrap;
  }

  /* Adjust button sizes */
  .d-flex.gap-2 .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    flex: 1;
    text-align: center;
    min-width: 80px;
  }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
  h5.mb-1 {
    font-size: 0.9rem;
  }

  .d-flex.gap-2 .btn {
    flex-basis: 100%;
    margin-bottom: 5px;
  }
}