/* horizontal scroll - x axis */
body {
  overflow-x: hidden;  
}

div.child{
  float: left;
  width: 90%;
}

#mojoDIV {
  text-align: center;
  margin: 0;
  padding: 0;
}

#search{
  left: auto;
}

#img-preview{
  border: 3px solid #555;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* width */
::-webkit-scrollbar {
  width: 20px;
}

/* Track 
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 */
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(228, 217, 120); 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #b3b000; 
}

.mission {
  display: none;
}

.dishdtl{
  /* Center horizontally*/
  margin: 0 auto;
}

.highlight{ 
  font-size: 12px;
  font-weight: 500;
  color:rgb(73, 73, 73);
  line-height: 30px;
}

#Creator{ 
  font-size: 20px;
  font-weight: 600;
  color:rgb(56, 56, 56); 
  line-height: 20px;
}

#Description{
  color: var(--cs-body);
  margin-right:10%;
}

#DishCountry{
  font-family: var(--cs-font);
  font-size: 16px;
  color: var(--cs-body);
  line-height: 20px;
}


#RecipeName{
  line-height: 1.25;
}

#DishCountry{
  font-family: var(--cs-font);
  font-size: 25px;
  font-weight: 600;
  color: var(--cs-body);
  line-height: 20px;
}

#IngredientsDetails{
  font-family: var(--cs-font);
  color: var(--cs-body);
}

.clickable {
  cursor: pointer;
}
.themeclr {
  color:#b3b000; 
}

.mycibodiv {
  border-radius: 4px;
  box-shadow: rgba(9, 30, 66, 0.31) 0px 0px 1px 0px, rgba(9, 30, 66, 0.25) 0px 1px 1px 0px;
  width: 60%;
  margin-left: 20%;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden; /* prevents text spillover */
}


.myciboheaderdiv {
  padding-top: 10px;
  padding-left: 10px;
  border-radius: 4px;
  box-shadow: rgba(9, 30, 66, 0.31) 0px 0px 1px 0px, rgba(9, 30, 66, 0.25) 0px 1px 1px 0px;
  background-color: rgb(212, 225, 248);
  display: flex;
  flex-wrap: wrap;         /* allow text to wrap properly */
  align-items: center;
  gap: 8px;                /* space between <a> tags */
  margin-bottom: 8px;      /* add spacing before table */
  word-break: break-word;  /* prevent long text overflow */
}


.myciboheaderdiv a {
  text-decoration: none;
  color: #333;
  padding: 3px 6px;
  border-radius: 4px;
}


.mycibobutton {
  border-radius: 4px;
  border-color: rgb(2, 17, 43);
  box-shadow: rgba(9, 30, 66, 0.31) 0px 0px 1px 0px, rgba(9, 30, 66, 0.25) 0px 1px 1px 0px; 
}

.highlighted-text {
  background-color: #b3b000; /* Light yellow background */
  padding: 1px;
  border: 1px solid #000; /* Black border */
  border-radius: 10px; /* Rounds the corners */
}

.small-dollar {
  font-size: 0.7em; /* Makes the dollar sign smaller */
  vertical-align: super; /* Raises the position */
}

/************** TO CENTER ******************/

/* Center everything inside ingredientgroup */
#ingredientgroup {
  display: flex;
  flex-direction: column; /* Stack all children vertically */
  align-items: center; /* Center the children horizontally */
  justify-content: center; /* Center the children vertically */
  text-align: center; /* Optional: center the text */
  
  margin-left: 5px;
}

/* Ensure that the dragdrop div itself is centered, but its children are not */
#ingredientgroup #dragdrop {
  width: 100%; /* Make the dragdrop div take full width (optional) */
  text-align: left; /* Prevent centering of its child elements */
  display: block; /* Make sure its children are not affected by flexbox */
}

#ingredientgroup #dragdrop > * {
  text-align: left; /* Ensure children of dragdrop div are left-aligned */
}

/******** Menu victus desc *************/

#MenuDescriptionInput {  
  width: 100%;  
  min-height: 80px;  
  resize: none;  
  min-width: 350px;
}  

#piczone label {
  text-align: justify; 
  font-family: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
 
#id_opened {
  text-align: justify; 
  font-family: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/************ Full screen for mobile /////////////////*/

/* Default styles for wider screens */
#abc1, #abc2 {
  width: 70%; /* Center the content */
  margin: auto; /* Center the content */
  padding: 10px; /* Center the content */
}

#abc2 {
  border: 1px solid #ccc; /* Optional: add a border so you see the corners */
  border-radius: 12px;     /* Makes the corners rounded */
  padding: 20px;           /* Optional: add some padding inside */
  background-color: #f9f9f9; /* Optional: background for visibility */
}

/* Styles for mobile screens Responsivness*/
@media only screen and (max-width: 768px) {
  #abc1, #abc2 {
    width: 100%; /* Make them full screen width */
    padding: 10px; /* Optional padding for better appearance */
  }

   /* Ensure images or floated elements adapt correctly */
   #piczone img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    float: none; /* Remove floating */
  }

 
  /* Clear floats to prevent layout issues */
  #abc1, #abc2 div {
    clear: both;
  }
}

.Ingredmodal-content {
  max-width: 90vw;          /* responsive width */
  width: 600px;             /* optional fixed width on large screens */
  margin: 0 auto;
  max-height: 90vh;         /* don’t exceed viewport */
  overflow-y: auto;         /* scroll if content is too tall */
  box-sizing: border-box;
  padding: 10px;           /* Optional: add some padding inside */
  border: 1px solid #141414;
  background-color: #fefefe;
}


.Ingredmodal-content textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  box-sizing: border-box;
  resize: vertical;       /* user can still resize vertically */
  max-height: 60vh;       /* ✅ limit max height inside modal */
  overflow: auto;
  word-wrap: break-word;
}
