@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;900&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;700;900&display=swap');

*, body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 120%;
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: 800px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 200%;
    }
}

body {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.navbar {
    justify-content: flex-start;
    --bs-navbar-padding-y: 0rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand h4 {
    margin-top: 0px;
    margin-bottom: .2em;
}


a.navbar-brand.fs-1 {
    line-height: 1.2;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-brand.fs-1 h4 {
    display: inline; /* or display: inline-block */
  }
  
.navbar-brand.fs-1 sup {
    vertical-align: super;
    font-size: .5rem; /* or a specific font size like 0.8em */
    top: -0.5em;
  }


.navbar-toggler {
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .collapse {
    display: none;
    transition: transform 0.3s ease-in-out; 
  }
  
  .collapse.show {
    display: block;
    transform: translateX(0); 
  }


@media (min-width: 992px) {
    .navbar-expand-lg {
        padding-right: calc(var(--bs-gutter-x)* .5);
        padding-left: calc(var(--bs-gutter-x)* .5);
    }
}

@media (max-width: 992px) {
    .nav-item {
        padding-left: calc(var(--bs-gutter-x)* .5);
    }
}


mark {
    background-color: transparent; /* Remove default yellow background */
    position: relative; /* Needed for positioning the pseudo-element */
    display: inline-block; /* Keep the text inline */
    padding: 0.2em 0.2em; /* Keep your original padding */
    /* Remove background, text-shadow, border-radius from here */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    margin: 0;
    z-index: 5;
    font-weight: 500;

}

mark.mark-green::before {
    content: ""; /* Required for pseudo-elements */
    position: absolute; /* Position it relative to the mark */
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(104deg, rgba(130, 255, 173,0) 0.9%, rgba(130, 255, 173,1.25) 2.4%, rgba(130, 255, 173,0.5) 5.8%, rgba(130, 255, 173,0.1) 93%, rgba(130, 255, 173,0.7) 96%, rgba(130, 255, 173,0) 98%), linear-gradient(183deg, rgba(130, 255, 173,0) 0%, rgba(130, 255, 173,0.3) 7.9%, rgba(130, 255, 173,0) 15%);
    border-radius: 7.5px;
    transform: rotate(-2deg); /* Rotate the pseudo-element */
    transform-origin: left center; /* Adjust as needed */
    z-index: 4; /* Place the highlight behind the text */
    /* Add any other highlight styles here */

    transition: width 0.5s ease; /* Transition for width */
}

mark.mark-yellow::before {
    content: ""; /* Required for pseudo-elements */
    position: absolute; /* Position it relative to the mark */
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(104deg, rgba(255, 247, 130, 0) 0.9%, rgba(255, 247, 130,1.25) 2.4%, rgba(255, 247, 130, 0.5) 5.8%, rgba(255, 247, 130, 0.1) 93%, rgba(255, 247, 130, 0.7) 96%, rgba(255, 247, 130, 0) 98%), linear-gradient(183deg, rgba(255, 247, 130, 0) 0%, rgba(255, 247, 130, 0.3) 7.9%, rgba(255, 247, 130, 0) 15%);
    border-radius: 7.5px;
    transform: rotate(0.4deg); /* Rotate the pseudo-element */
    transform-origin: left center; /* Adjust as needed */
    z-index: 4; /* Place the highlight behind the text */
    /* Add any other highlight styles here */

    transition: width 1.5s ease; /* Transition for width */
}

mark.highlighted::before { /* Class to trigger animation */
    width: 100%;
  }



.container-sm {
    margin-left: 5%;
}


.card-body {
    color: #333343;
    /* color: red; */
}

h3.card-body {
    color: #55555c;
    font-weight: 200;
}

/* h1, h3 {
    margin-bottom: 0;
    margin-top: 0;
} */

h1 {
    padding-bottom: .125rem !important;
}

h3 {
    padding-top: .125rem !important;
}

p#purpose_description, p#capacity_description {
    line-height: 1;
    padding-top: 10px;
}

.backpack-results {
    margin-top: .5rem;
}

div#questions, div#backpackTableContainer-card {
    margin-top: .5rem;
}

a.info-tooltip {
    text-decoration: none;
    font-size: 1rem;
}

.circled-i {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    background-color: #a5adb5;
    color: #fff;
    text-align: center;
    line-height: 1em;
    font-size: 1em;
    font-weight: 600;
    font-family: serif;
}

.tooltip-small {
    font-size: .8em;
    line-height: 1em;
}

.tooltip-small p {
    margin-bottom: 0;
    font-family: monospace; 
}

.popover-body img { /* Target images within popover content */
    max-width: 200px;
    max-height: 200px;
    width: auto; /* Allow image to scale down */
    height: auto; /* Allow image to scale down */
    display: block; /* Prevent image from affecting text flow */
}

.score-tooltip {
    --bs-popover-max-width: 600px;
}

.positive-modifiers {
    color: green;
}

.negative-modifiers {
    color:red;
}

.footer {
    color: #F05B56;
    font-weight: 800;
    font-style: italic;
  }

/* #footer-results {
    background-color: #333343 !important;
} */



.badge.active {
    border: 1px solid #ED3731; 
    background-color: #ED3731; 
    color: #ffffff;
  }

.badge {
    border: 1px solid #ED3731; 
    background-color: #ffffff; 
    color: #F05B56;
  }

.badge:hover {
    color: #ED3731; 
}

.badge.active:hover {
    color: #ffffff;
}

.badge.active.locked {
    border: 1px solid #F05B56; 
    background-color: #DA7673; 
    color: #F7F7F7;
  }

.badge.locked {
    border: 1px solid #F7F7F7; 
    background-color: #F7F7F7; 
    color: #DA7673;
  }

.btn {
    font-weight: 700;
    font-size: .75em;
    line-height: 1;
    padding-top: .35em;
    padding-bottom: .35em;
}



/* Reset default browser styling */
input[type="range"] {
    -webkit-appearance: none; /* For Chrome and Safari */
    -moz-appearance: none; /* For Firefox */
    appearance: none; 
  }
  
  /* Style the track */
input[type="range"]::-webkit-slider-runnable-track {
    width: 20rem; /* Adjust width as needed */
    height: 1rem;
    /* border: 2px solid #ED3731; */
    border-radius: 4px;
    background-color: #ED3731;
  }
  
input[type="range"]::-moz-range-track {
    width: 20rem; /* Adjust width as needed */
    height: 1rem;
    /* border: 2px solid #ED3731; */
    border-radius: 4px;
    background-color: #ED3731;
  }
  
input[type="range"] {
    width: 20rem; /* Adjust width as needed */
}
  
  /* Style the thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    /* margin-top: -.4rem; */
    border-radius: 0%;
    border: 0.1rem solid #ED3731;
    background-color: white;
    cursor: pointer;
  }
  
input[type="range"]::-moz-range-thumb {
    -moz-appearance: none;
    width: 1rem;
    height: 1rem;
    /* margin-top: -.4rem; */
    border-radius: 0%;
    border: 0.1rem solid #ED3731;
    background-color: white;
    cursor: pointer;
  }


/* this part does not work. to check why */
input[type="range"]:disabled {
    background-color: #DA7673; /* Light gray for disabled background */
    opacity: 0.5; /* Make it visually less prominent */
    cursor: not-allowed; /* Change cursor to indicate disabled state */
  }


#feedback-tab {
    position: fixed;
    right: 0;
    bottom: 15%;
    background-color: #007bff;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    z-index: 1000;
}

#feedback-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#feedback-modal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

#feedback-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#feedback-modal .close:hover,
#feedback-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#feedback-modal textarea,
#feedback-modal input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

#feedback-modal button {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#feedback-modal button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#thank-you-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 9000;
}

#share-tab {
    position: fixed;
    right: 0;
    bottom: 20%;
    background-color: #007bff;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    z-index: 1000;
}

#share-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#share-modal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
}

#share-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#share-modal .close:hover,
#share-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#share-modal input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

#share-modal button {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#share-modal button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#share-thank-you-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 9000;
}

.table-auto {
    width: auto;
    min-width: 50%;
    table-layout: auto;
    margin: 0 auto;
}

#banner {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

#banner::before, #banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20%; /* Adjust the height of the fade effect */
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure the pseudo-elements are above the image */
}

#banner::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

#banner::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}