/* edit.css
   Lisa Guinn 2025
*/

/****************************************************************/
/* specific to the edit AND the add page */

#recipe-edit-header {
    margin-bottom: 10px;
}

#recipe-edit-header h2 {
    padding: 0px;
    margin: 2%;
    font-size: 2.2vw;
    display: inline;
    width: 45%;
}

#recipe-edit-header h3 {
    padding: 0px;
    margin: 0% 0% 2% 2%;
    font-size: 2vw;
    display: inline;
    width: 45%;
}

.note {
    font-size: 1vw;
    color:#696d7d;
    font-style: italic;
}

form {
    margin-left: 2%;
}

input {
    margin-left: 10px;
    margin-bottom: 5px;
}

/* set size of input fields */

label {
    margin-top: 1%;
}

textarea {
    height: 5vh;
    width: 95%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#recipeId {
    width: 92.5%;
}

#title {
    width: 92.5%;
}

#contributor {
     width: 95%;
}

#source {
     width: 95%;
}

#image {
     width: 95%;
}

#tags { 
    width: 95%;
}

#servings {
     width: 10%;
}

#yield {
     width: 15%
}

#time {
     width: 10%;
}

#introduction {
   width: 95%;
}

#directions { 
    width: 95%;
}

#notes { 
    width: 95%;
}

#nutrition { 
    width: 95%;
}

#ingredients-table {
    width: 95%;
}

.amount {
    width: 15%;

}

.measurement {
    width: 15%;
}

.ingredient {
    width: 60%;
}

#submit-button {
    background:#6f9283;
    border-color: #696d7d;
    border-radius: 5px;
    border-width: 1px;
    color: #ffffff;
    font-size: max(14px, 1.2vw);
    margin-left: 2%;
    margin-right: 0%;
    min-height: 1vh;
    padding:1%;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    width: 20%;
}

/****************************************************************/
/* Modal used for confirmation "popup" */

/* Set a style for confirmation (ok) */
.confirm-button {
    background-color: #6f9283;
    border: 1px solid transparent;
    border-radius: 3px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.2vw;
    line-height: 1.15385;
    margin-top: 10px;
    margin-bottom: 5px;
    outline: none;
    padding: 8px .8em;
    text-align: center;
    text-decoration: none;
    vertical-align: baseline;
    white-space: nowrap;
    opacity: 0.9;
}

.confirm-button:hover {
  opacity:1;
}

#message {
    color: #6f9283;;
    font-size:  3vw;
}

#confirm-heading {
    color: #6f9283;;
    font-size:  3vw;    
}

/* Add padding and center-align text to the container */
.msg-container {
  padding: 16px;
  text-align: center;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: #474e5d;
  padding-top: 50px;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Modal Close Button (x) */
.close {
  position: absolute;
  right: 35px;
  top: 15px;
  font-size: 40px;
  font-weight: bold;
  color: #f1f1f1;
}

.close:hover,
.close:focus {
  color: #81d4b0;
  cursor: pointer;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/****************************************************************/
/* For category selection in checkboxes */

fieldset.group  { 
  margin: 0; 
  padding: 0; 
  margin-bottom: 1.25em; 
  border: 1px solid #9b9d9c;
} 

fieldset.group legend { 
  margin: 0; 
  padding: 0; 
  font-weight: bold; 
  margin-left: 20px; 
  font-size: 100%; 
  color: black; 
}

#categories { 
    width: 95%;
    column-count: 4;
    column-gap: 5px;
}