/* ############### SCSS VARIABLES ############### */
/* ########################### INHERITANCE ########################### */
/* ############### HEADER WITH LEFT AND CENTER ELEMENTS eg use cases: back button, add recipe '+' ############### */
/* ############### MISC ############### */
/* Remove arrows from input field in forms.py*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* ############### TOP NAVIGATION BAR ############### */
#recipeCounter {
  color: white !important;
}

/* ############### SIDE NAVIGATION BAR ############### */
/* 8/20/24 Target the x close button and set the color to white */
.offcanvas-header .btn-close {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-size: 1.5rem 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

/* ############### BOTTOM NAVIGATION BAR ############### */
/* 7/30/24 TESTING - NOT SURE IF FULLY WORKS YET */
/* App Pernament Bottom Navigation Bar Added 5/13/24 */
/* Default state: Hide the small screen navigation */
/* Default state: Show the large screen navigation */
/* Media query for small screens */
/* Media query for small screens */
@media (max-width: 767px) {
  .small-screen-nav {
    display: block;
  }
}
@media (min-width: 768px) {
  .large-screen-nav {
    display: none;
  }
}
.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 13px !important;
}

.navbar-brand img {
  margin-bottom: 5px;
}

.navbar-brand span {
  font-size: 3px; /* Font size relative to the parent */
}

.navbar-brand span {
  display: inline-block; /* Ensures the span takes the width of its content */
  margin-top: 5px; /* Adjust as needed */
}

/* "More" dropup button: Hide the arrow */
.btn-secondary.dropdown-toggle::after {
  display: none;
}

/* "More" dropup button: hide border outline */
.dropdown-toggle {
  border: none;
}

/* "More" button: Drop up menu | Align drop up textbox to right of button and left align text */
.dropup .dropdown-menu {
  right: 0;
  left: auto;
  margin-top: 0; /* Ensures the dropdown is positioned correctly above the button */
  border-radius: 0.25rem; /* Optional: Add border radius to match Bootstrap styling. This is rounded edges*/
  box-shadow: 0 0 0.5rem rgba(245, 167, 0, 0.15);
  background-color: rgb(33, 37, 41);
  border: 1px solid #494949;
  padding-top: 0;
  padding-bottom: 0;
}

/* "More" button: drop up items */
.dropup .dropdown-item {
  color: white;
  border-top: 1px solid #494949;
}
.dropup .dropdown-item:hover {
  background-color: black;
}

/* Top border for bottom nav bar */
#bottom-nav-bar-border {
  border-top: 1px solid #494949;
}

/* TEST 9/6 Button Ripple */
/* Ripple effect */
/* TEST 2 Button Ripple */
/* END App Pernament Bottom Navigation Bar Added 5-13-24 */
/* 7/30/24 END TESTING */
/* 8/19/24 Navigation icons */
/* ############### INDEX PAGE (Capsule:Recipes) ############### */
/* Button: Add to capsule */
.btn-addCap {
  float: right;
  /* display: inline-block; */
}

/* Button: Edit recipe */
.btn-edit {
  float: left;
  /* display: inline-block; */
}

/* Button: Delete recipe */
.btn-del {
  float: left;
  /* display: inline-block; */
}

/* Accordian list items: hide bullet points */
.accordion-list {
  list-style: none;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 8/20/24 Accordion-item color */
.accordion-item {
  border-color: #494949;
}

/* ############### INDEX PAGE (Capsule:Recipes --> Navigation pill tabs) ############### */
/* 8/30/24 Outline the pill tab borders */
.nav-pills .nav-link {
  border: 1px solid transparent;
}

.nav-pills .nav-link:not(.active) {
  border-color: #ccc;
}

.nav-pills .nav-link {
  color: white;
  border-radius: 0;
}

.nav-pills .nav-item:first-child .nav-link {
  border-top-left-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
}

.nav-pills .nav-item:last-child .nav-link {
  border-top-right-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}

/* Change background color of active tab */
.nav-pills .nav-link.active {
  background-color: rgb(17, 164, 125); /* Replace with your desired color */
  border-color: rgb(17, 164, 125); /* Replace with your desired border color */
  color: #fff; /* Optional: Set the text color of the active tab */
}

/* ############### 9/2/24 INDEX PAGE: Add recipe button & alignment ############### */
/* Button to add recipe & aligning to far left.   */
.container1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* Center aligns nav pill tabs */
.text-wrapper1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Ensures recipe nav pill tabs don't wrap around */
.nav-pills {
  display: flex;
  flex-wrap: nowrap;
}

/* ############### BACKGROUND COLORS & ALIGNMENTS ############### */
body {
  background-color: #000;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

.header {
  background-color: #000000;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 0rem;
  padding: 2rem 1rem 2rem 1rem;
  text-align: center;
}

main {
  margin-bottom: 10rem;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  background-color: #000;
  color: #fff;
}

#grid-cards {
  color: #000000;
}

/* ############### LOGIN PAGE ############### */
/* Remove labels */
.login-no-label label {
  display: none;
}

/* ############### ERROR MESSAGES / ALERTS ############### */
/* Removes bulletpoint for FORM generated error messages */
ul.errorlist {
  list-style-type: none;
}

/* Bootstrap alert */
.alert {
  margin-top: 3.5em;
}

/* ############### BUTTON COLORS ############### */
/* Success button colors */
.btn-success {
  background-color: rgb(17, 164, 125);
  border-color: rgb(17, 164, 125);
}
.btn-success:hover {
  background-color: rgb(17, 164, 125);
  border-color: rgb(17, 164, 125);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 150px inset;
}
.btn-success:active {
  background-color: rgb(17, 164, 125) !important; /* Added important b/c was being overidden by bootstrap variables */
  border-color: rgb(17, 164, 125) !important;
  box-shadow: 0 0 2px 0 #c9cfda;
}

/* ############### BACK BUTTON (Edit Recipe) ############### */
/* Flex container and items for Back button & Title */
/*FLEX CONTAINER: HOLDS ALL ITEMS */
.flex-container-back-button-title {
  /* Title flows normally so it can wrap to any number of lines without being
     clipped; the back button is overlaid on the left and the title is centered
     across the full width via text-align. */
  display: block;
  position: relative;
  text-align: center;
  min-height: 3.25rem; /* reserve room for the back button on short titles */
}

/* FLEX ITEM: BACK BUTTON */
.item-back-button {
  position: absolute;
  left: 0;
  top: 0;
}

/* FLEX ITEM: TITLE */
.item-title {
  /* Keep the title text clear of the back button on both sides while staying
     centered on the page. */
  padding: 0 3.25rem;
}

/* ############### SIZE AND COLORS FOR BRAND ############### */

/* ############### "I DID IT" UNDO CHECK TOGGLE ############### */
.tc-check-toggle {
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

