/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.add-ingredient-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-ingredient-form .add-ingredient-input, .add-ingredient-form .add-ingredient-button {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  height: 2.5rem;
  box-sizing: border-box;
}

.add-ingredient-form .add-ingredient-button {
  cursor: pointer;
}

#ingredient-list {
  list-style-type: disc;
  padding-left: 1.5rem;
}

#ingredient-list li {
  margin-bottom: 0.25rem;
}

#ingredient-list li div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-ingredient {
  color: red;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  margin-left: auto;
}

.responsive-image {
  width: 50%;
  margin: 0 auto;
  display: block;
}

.star {
    color: gold;
    font-size: 1.2em;
}

.star.empty-star {
  color: lightgray;
}

.half-star {
  position: relative;
  color: lightgray;
}

.half-star::before {
  content: '\2605'; /* filled star */
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: gold;
}

.hidden {
  display: none !important;
}

header h1 {
  text-align: center;
  margin: 2rem 0;
}


#ingredients h3 {
  font-size: 1.5rem;
}

#easter-egg-container {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 1rem;
  z-index: 9999;
}

#easter-egg-trigger {
  color: #f1c40f;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
}

#easter-egg-image {
  position: absolute;
  bottom: 40px;
  right: 1rem;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: white;
  height: auto;
  width: 40vw;
	max-width: 400px;
}
