@import url("https://fonts.googleapis.com/css2?family=Baloo+2&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Baloo 2", cursive;
}

#start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("home-background.png") center/cover no-repeat;
}
#game-over-screen {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("game-over-background.png") center/cover no-repeat;
}

.start-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 20px;
  animation: fadeIn 1s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px #000;
}

#start-screen p {
  font-size: 1.2rem;
  margin: 10px 0;
  text-shadow: 1px 1px 3px #000;
}

.btn-start {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  background: #f8c000;
  color: #000;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-start:hover {
  background-color: #ffd54f;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.keycap {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  min-width: 32px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  font-family: "Courier New", Courier, monospace;
  color: #333;
  background-color: #f5f5f5;
  border: 2px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 0 #aaa;
}

#game-screen {
  display: none;
}

#hud {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 20px;
  width: 99%;
  z-index: 10;
}

.hud-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 10px;
  border-radius: 10px;
  min-width: 180px;
}

.score-container {
  position: absolute;
  top: -11px;
  right: 107px;
  color: black;
  font-size: 32px;
}
.recipe-item {
  background-color: #ffe082;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-left: 5px solid #ffb300;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recipe-item:hover {
  background-color: #ffd54f;
}

.recipe-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.order-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background: #f44336;
}

#orders .order {
  position: relative;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.order.pending {
  background: #fff3cd; /* mostaza */
  border-left-color: #ffc107;
  background: #fff3cd;
  border-left: 5px solid #ffc107;
}

.order.complete {
  background-color: #d4edda; /* verde claro */
  border-left-color: #28a745;
}

.order.failed {
  background-color: #f8d7da; /* rojo claro */
  border-left-color: #dc3545;
}

#lives {
  display: flex;
  justify-content: center;
  font-size: 24px;
  margin-top: 4px;
}

.lives-container {
  position: absolute;
  top: 0px;
  right: 90px;
  color: black;
  font-size: 32px;
}

.recipe-ingredients {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.recipe-ingredients img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ingredient-with-count {
  position: relative;
  width: 40px;
  height: 40px;
}

.ingredient-with-count img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
}

.ingredient-count {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #ffc107;
  color: black;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
  border: 1px solid #555;
}

#inventory {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.inventory-container {
  display: flex;
  gap: 15px;
  max-width: 23rem;
  flex-wrap: wrap;
}
.inventory-item {
  position: relative;
  width: 60px;
  height: 60px;
}

.inventory-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #ccc;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.inventory-count {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #ffc107;
  color: black;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  border: 1px solid #555;
}

div#orders {
  position: absolute;
  top: 73px;
  right: 91px;
}

.level-progress-container {
  position: absolute;
  right: 33%;
  width: 33%;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  z-index: 10;
}

.level-info {
  display: flex;
  margin: 0px 3px 4px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  justify-content: space-between;
}
.level-bar-bg {
  background: #eee;
  border-radius: 5px;
  height: 14px;
  overflow: hidden;
}

.level-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffca28, #f57c00);
  transition: width 0.3s ease;
}
