.dict-card_txt {
    font-size: small;
}

.dict-text1 {
    color: #add2cb;
}

.dict-text2 {
    /*color: #00505b;*/
    color: #ffffff
}

.img-title {
    background-color: #ffffff;
}

.navigation {
    display: block;
}

.navigation a {
    font-weight: bold;
}

.bob {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: left;
    position: relative;
}

.dict-background {
    background-color: #422e5d;
}

.dict-background .row {
    display: flex; /* Ensure image and text align horizontally */
    align-items: center; /* Vertically center the content */
}

.dict-background img {
    margin-right: 8px; /* Reduce space between the image and text */
}

.dict-background h1 {
    margin: 0; /* Remove extra margins */
}

.dict-background2 {
    background-color: #612d70;
}

.dict-background3 {
    background-color: #782c7e;
}

.dict-button {
    background-color: #96aeac;
    color: #5d2e31;
}

.dict-button2 {
    background-color: #8bc0b5;
    color: #00505b;
    border-color: #00505b;
}

.dict-button3 {
    background-color: #00505b;
    color: #DCECE9;
}

.dict-button4 {
    color: #00505b;
    border-color: #d3d3d3;
}

.dict-btn-link {
    color: #00505b;
    text-decoration: none; /* Removes the underline */
    font-weight: bold;
}

.dict-btn-link:hover {
    color:grey
}

.dict-bottom-right{
                position: absolute;
                right:    2%;
                bottom:   6%;
}

.dict-bottom-left{
                position: absolute;
                left:    19%;
                bottom:   6%;
}

.dict-bottom-left2{
                position: absolute;
                left:    30%;
                bottom:   6%;
}

.card-min {
    min-height: 12rem;
    max-height: 15rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
}

.dict-card-header {
    background-color: #00505b;
    color: #DCECE9;
}

.nav-tabs {
    display: flex;
    justify-content: space-between; /* Ensure the tabs are spaced out evenly */
}
.nav-tabs .nav-item {
    flex: 1; /* Make each tab equal width */
    display: flex;
    align-items: center; /* Center content vertically */
}

.nav-tabs .nav-link {
    flex: 1; /* Fill the height of the parent container */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    height: 100%; /* Allow height to be fully adjustable */
    text-align: center; /* Center the text */
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-tabs .nav-item .nav-link {
    background-color: #DCECE9;
    color: #00505b;
    border-color: #00505b;
}

.nav-tabs .nav-item .nav-link.active {
    background-color: #00505b;
    color: #DCECE9;
    border-color: #00505b;
    border-bottom-color: transparent;
}

.m-more-less-toggle {
    color: grey; /* Sets the text color to grey */
    text-decoration: none; /* Removes the underline */
}

.m-more-less-toggle:hover {
    color: darkgrey; /* Optional: Changes color when hovering */
}

.clear-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: gray;
}

.clear-icon:hover {
    color: black;
}

input#search_query:focus {
    border-color: #00505b; /* Change this to your desired color */
    box-shadow: 0 0 0 0.25rem #DCECE9; /* Optional: Adds a subtle glow effect */
    outline: none; /* Removes the default outline for consistent styling */
}

.table.table-striped {
    --bs-table-striped-bg: #F4F9F8;
 }

.table.table-striped tbody tr:nth-child(even) td {
    background-color: #FBFDFC;
}

.dict_input_search {
    flex-grow: 0;
    flex-basis: 400px;
}

/* Remove default bullets */
ul, #myUL {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Remove margins and padding from the parent ul */
#myUL {
    margin: 0;
    padding: 0;
}

/* Style the caret (plus/minus) */
.caret {
    cursor: pointer;
    user-select: none; /* Prevent text selection */
}

/* Create the plus sign for collapsed state */
.caret::before {
    content: "\203A"; /* Unicode for plus sign */
    color: black;
    display: inline-block;
    margin-right: 6px;
    transform: rotate(0deg); /* Default rotation for consistency */
    transition: transform 0.2s; /* Optional smooth transition */
}

/* Change to minus sign when expanded */
.caret-down::before {
    content: "\2304"; /* Unicode for minus sign */
}

/* Hide the nested list */
.nested {
    display: none;
    margin-left: 35px; /* Indent the nested list */
}

/* Show the nested list when the user clicks on the caret */
.active {
    display: block;
}

/* Apply styles to selected text */
.selected-caret::before {
    color: blue !important;
    font-weight: bold !important;
}

.selected-group {
    color: blue !important;
    font-weight: bold !important;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.form-select {
    background-color: transparent !important; /* Transparent background */
    border: 1px solid #6c757d; /* Matches outline buttons */
    color: #6c757d; /* Matches text color */
    padding: 0.375rem 1.75rem 0.375rem 0.75rem; /* Adjust padding */
    appearance: none; /* Removes default arrow styling */
    -webkit-appearance: none; /* Safari fix */
    -moz-appearance: none; /* Firefox fix */
    width: 100%; /* Ensures full width inside wrapper */
    cursor: pointer;
}

/* Custom dropdown arrow */
.select-wrapper::after {
    content: "▼"; /* Unicode for arrow */
    font-size: 0.8rem;
    color: #6c757d; /* Matches button text */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Ensures clickability */
}

/* Keeps styles consistent on focus */
.form-select:focus {
    box-shadow: none;
    border-color: #6c757d;
}

#toggle-password {
    border: 1px solid #ced4da !important; /* Match input border */
}

#toggle-confirm-password {
    border: 1px solid #ced4da !important; /* Match input border */
}

button[type="submit"]:disabled {
    background-color: #ccc; /* light grey */
    cursor: not-allowed;
    color: #666; /* optional: change text color too */
}


/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 280px;
}

/* The popup form - hidden by default */
.form-popup {
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

/* Add styles to the form container */
.form-container {
  max-width: 300px;
  padding: 10px;
  background-color: white;
}

/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #04AA6D;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}

    #popupOverlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
    }

    #popupContainer {
      background: white;
      padding: 20px;
      border-radius: 8px;
      min-width: 300px;
      box-shadow: 0 0 15px rgba(0,0,0,0.3);
    }

    #closeBtn {
      float: right;
      cursor: pointer;
    }

    .invisible-column {
    display: none;
    }

    #basket_table,
    #basket_table th,
    #basket_table td {
        border: 1px solid #dee2e6 !important;
        border-collapse: collapse;
    }

    .markdown-text br {
    margin-bottom: 1em;
    }

    .small_button{
        font-size: 1em;
        line-height: 1;
    }
