/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

#headerBar {
  width: 100%; /* Span the full width of the screen */
  height: 50px; /* Fixed pixel height */
  display: flex; /* Allows to contain and align other elements */
  background-color: #e6eaf3; /* Background color */
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  color: #6e1863; /* Text color */
  padding-top: 20px; /* Add some space at the top */
}

.bottomNav {
  width: 100%; /* Span the full width of the screen */
  position: fixed; /* Make it stick to the bottom */
  bottom: 0; /* Position it at the bottom */
  display: flex; /* Allows to contain and align other elements */
  justify-content: space-around; /* Distribute items evenly */
  align-items: center; /* Center items vertically */
  /* move down 5px */
  transform: translateY(5px);
  background: linear-gradient(to top, #e6eaf3 0%, #ffffff 100%);
}

.bottomNav a {
  display: flex; /* Add this line */
  text-decoration: none; /* Remove underline */
  color: #333; /* Text color */
  align-items: center; /* Center text vertically */
  justify-content: center; /* Center text horizontally */
  height: 50px; /* Fixed pixel height */
  width: 100%; /* Span the full width of the screen */
  background-color: #e6eaf3; /* Background color */
  margin-right: 4px;
}

.bottomNav a.active {
  height: 60px; /* Make it slightly taller */
  /* move it up */
  transform: translateY(-5px);
  background-color: #333; /* Make it darker */
  color: #fff; /* Change text color to white for better contrast */
  cursor: default; /* Change cursor to default */
  /* rounded corners */
  border-radius: 10px 10px 0 0;
  border-right: 0;
}

.card-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10%;
  margin-top: 1%;
}

.card {
  flex: 1 0 100%; /* By default, take up 100% of the width (1xn) */
  margin-bottom: 20px; /* Add some space between the cards */
  margin-right: 20px; /* Add right margin to create a gap between the cards */
  border-radius: 50px; /* Rounded corners */
  border: 2px solid #f0f0f0; /* Light highlight around the edges */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15); /* Drop shadow */
  box-sizing: border-box;
  max-width: 700px; /* Set maximum width to 700px */
  position: relative; /* Needed to position the caption absolutely */
  overflow: hidden;
  transition: transform 0.3s ease; /* Add transition effect */


}

.card:hover {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3); /* Darker drop shadow on hover */
  /* slightly larger size */
  transform: scale(1.02);
  transition: transform 0.3s ease; /* Add transition effect */
}

.card img {
  width: 100%; /* Make the image take up the full width of the card */
  height: auto; /* Keep the original aspect ratio of the image */
}

.recipe-caption {
  position: absolute; /* Position the caption at the bottom of the card */
  bottom: 0;
  left: 0;
  width: 100%;
  /* make the background color a gradient  from top to bottom */
  background: linear-gradient(to bottom, rgba(19, 122, 152, 0) 0%, rgba(19, 122, 152, 0.4) 10%, rgba(19, 122, 152, 0.6) 40%, rgba(19, 122, 152, 1) 100%);
  color: #fff; /* White text */
  padding-left: 10%;
  padding-bottom: 5%;
  box-sizing: border-box;
  /* Hide the description by default */
  overflow: hidden;
  transition: max-height 0.5s ease; /* Add transition effect */

}

.card:hover .recipe-caption {
  /* Show the description on hover */
  max-height: 1000px;
  transition: max-height 0.3s ease; /* Add transition effect */


}
.mobile .card .recipe-caption {
  /* just always show the description on mobile */
  max-height: 1000px;
  font-size: 0.5em;
}
.mobie .card .recipe-caption h2 {
  font-size: 2em;
}

@media (min-width: 800px) {
  .card {
    flex: 1 0 calc(50% - 20px); /* On wider screens, take up 50% of the width (2xn), minus the margin */
  }

  .card .recipe-caption {
    /* Show the description on hover */
    max-height: 4em;
    transition: max-height 0.3s ease; /* Add transition effect */


  }
}

@media (max-width: 800px) {
  .card {
    margin-left: 0;
    margin-right: 0;

  }
}


.card:nth-child(2n) {
  margin-right: 0; /* Remove right margin from every second card */
}

.icon {
  margin: 5px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Bembo', sans-serif;
}

.recipe-description {
  color: white;
  font-size: 1.5em;

}

.recipe-description img {
  filter: invert(1);
}

@font-face {
  font-family: 'Protest Strike';
  src: url('/fonts/ProtestStrike-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Bembo';
  src: url('/fonts/BemboStd.otf') format('opentype');
}

.recipe-title {
  text-align: center; /* Center the text */
  font-size: 2em; /* Make the text large */
  font-weight: bold; /* Make the text bold */
}

.timings {
  text-align: center; /* Center the text */
  font-size: 1.5em; /* Make the text large */
  color: #6e1863; /* Text color */
  /*make the text bold */
  font-weight: bolder;
}


.switch {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 34px;
  margin: 5px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e07c8b;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 7px;
  background-color: white;
  transition: .4s;

}

input:checked + .slider {
  background-color: #918350;
}

input:checked + .slider:before {
  transform: translateX(74px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.on {
  display: none;
  text-align: right;
}

.on, .off {
  color: white;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  font-size: 1em;
  font-weight: lighter;
  cursor: c;


}

input:checked + .slider .on {
  display: block;
}

input:checked + .slider .off {
  display: none;
}

.prevent-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.button {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  color: white;
  background: linear-gradient(to top, #0000ff 0%, #0000ff 100%);
  transition: background 0.4s ease-in-out;
  position: relative;
}


.button.toggleOff {
  background: linear-gradient(to top, #e1daea 0%, #9e8ec2 100%);
  transition: background 0.4s ease-in-out;

}

.button.toggleOn {
  background: linear-gradient(to top, #9e8ec2 0%, #2a0b6c 100%);
  transition: background 0.4s ease-in-out;

}

.ingredients-and-equipment {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
  0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 15px;
  max-width: 300px;
  text-align: left;
  transition: transform 0.1s;
  margin: 10px;
  min-width: 200px;

}

.recipe-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 10px;
}

.notes-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.notes {
  background-color: #eee2ad;
  border-radius: 2px;
  margin: 15px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  text-align: center;
  text-wrap: normal;
  transition: transform 0.1s;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  padding-left: 10px;
  padding-right: 10px;
}

.instructions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.instructions-title {
  margin: 0;
  padding: 0;
}

.nomnom {
  margin-bottom: 50px;
  color: #6e1863;
}

.notes::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-top: 20px solid #eeeeee;
  border-left: 20px solid #d0c38f;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1), 0 5px 5px rgba(0, 0, 0, 0.1);
  width: 0;
}


#toggles {
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;

}

ul li {
  padding-left: 1.5rem;
  background-image: url("/icons/next.png");
  background-position: 0 0.25rem;
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
}
.mobile ul li{
  /* double the size of the icon */
  background-size: 2rem 2rem;
}

ul {
  padding-left: 1rem;
  list-style-type: none;
}

.spicy-rice-regular {
  font-family: "Spicy Rice", serif;
  font-weight: 400;
  font-style: normal;
}

.step {
  border-radius: 10px; /* Adjust as needed */
  border: 0px solid #000; /* Adjust color as needed */
  background: transparent;
  text-align: left;
  padding: 20px;
  position: relative;
  margin: 10px;
  min-width: 100px;
  min-height: 50px;

}

.step-number {
  position: absolute;
  display: flex;
  top: -10px;
  left: -60px;
  text-align: center;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.1em;
  background-color: #e7b3e0;

}

.recipe-title-image {
  width: 30%;
  height: auto;
  border-radius: 10px;

}

.center {
  display: flex;
  justify-content: center;
}


.desktop {

.ingredients-and-equipment {
  position: fixed;
  left: 2%;
  top: 25%;
  width: 20%;

}

.recipe-container {
  width: 50%;
  margin-left: 25%;
}


.notes {
  min-width: 30%;
}

.step {
  max-width: 400px;
}

}
/*@media (max-width: 800px) {*/
/*  .ingredients-and-equipment {*/
/*    min-width: 80%;*/
/*    max-width: 95%;*/

/*  }*/

/*  .notes {*/
/*    min-width: 80%;*/
/*    max-width: 95%;*/
/*  }*/

/*  .instructions {*/
/*    min-width: 80%;*/
/*    max-width: 95%;*/
/*    padding-bottom: 50px;*/
/*    justify-content: center;*/
/*  }*/

/*  .step {*/
/*    width: 80%;*/
/*  }*/

/*  .recipe-title-image {*/
/*    width: 80%;*/


/*  }*/
/*}*/
/*@media (min-width: 800px) {*/
/*  .ingredients-and-equipment {*/
/*    position: fixed;*/
/*    left: 2%;*/
/*    top: 25%;*/
/*    width: 20%;*/

/*  }*/

/*  .recipe-container {*/
/*    width: 50%;*/
/*    margin-left: 25%;*/
/*  }*/


/*  .notes {*/
/*    min-width: 30%;*/
/*  }*/
/*}*/
.icons{
  width: 24px;
  height: 24px;
}
.mobile icons{
    width: 48px;
    height: 48px;
  }
.mobile {
  font-size: 2em;



.ingredients-and-equipment {
  min-width: 80%;
  max-width: 95%;

}

.notes {
  min-width: 80%;
  max-width: 95%;
}

.instructions {
  min-width: 80%;
  max-width: 95%;
  padding-bottom: 50px;
  justify-content: center;
}

.step {
  width: 80%;
}

.step-text {
  padding: 10px;
}


.recipe-title-image {
  width: 80%;


}


.on, .off, .bottomNav, #headerBar, .recipe-title {
  font-size: 1em;
}

.on, .off {
  font-size: 0.4em;
}

}
.editable textarea {
  border: none;
  padding: 1px;
  margin: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: inherit; /* Inherit the text alignment from the parent */
  overflow: hidden;
  outline: none;
  border-bottom: 2px solid #000; /* Adjust color as needed */
}

.short textarea {
  padding-bottom: 5px;
}

#ingredientList {
  margin-top: 0;
}

.modal {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
  0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 15px;
  /* make the modal display on top of everything */
  z-index: 1000;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  min-width: 40%;
  margin: auto;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
}

.modal form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.modal form input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal form input[type="checkbox"] {
  margin: 10px 0;
}

.modal form button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
}

.modal form button[type="button"] {
  background-color: #6c757d;
}

.modal form button:hover {
  opacity: 0.8;
}
.mobile .step-number {
  width: 140px;
  left: -30px;
}


.step-number {
  width: 80px;
  height: 40px;
  position: relative;
  background: #e7b3e0;
}


.step-number:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

.step-number:before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 20px solid #e7b3e0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

.step {
  width: 80%;
  font-size: 1em; /* Add this line */
}

.step-text {
  padding: 10px;
  font-size: 1em; /* Add this line */
}


.mobile .editableIngredient{
  /* add left padding */
  padding-left: 40px;

}
