@import url('https://fonts.googleapis.com/css2?family=Gasoek+One&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: 'Gasoek One', cursive;
  background-color: #f0f0f0;
  color: #d4444c;
  padding: 2vh 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 600px;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header {
  margin-bottom: 2vh;
}

.title {
  font-size: clamp(3rem, min(10vw, 10vh), 8rem);
  font-weight: 400;
  color: #d4444c;
  text-transform: uppercase;
  letter-spacing: clamp(2px, 1vw, 8px);
  text-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
  margin-bottom: 1vh;
  line-height: 0.9;
}

.main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.calculator-card {
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.recipe-display {
  margin-bottom: 3vh;
}

.ingredients-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.ingredient-item {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 1.5vh;
  width: 100%;
  text-align: center;
}

.ingredient-item:hover {
  transform: none;
  box-shadow: none;
}

.ingredient-amount {
  font-size: clamp(4rem, min(10vw, 10vh), 6rem);
  font-weight: 400;
  color: #d4444c;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.5vw, 4px);
  line-height: 0.9;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
  display: block;
  margin-bottom: 0.5vh;
}

.ingredient-name {
  font-size: clamp(1.5rem, min(4vw, 4vh), 3rem);
  font-weight: 400;
  color: #d4444c;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.3vw, 3px);
  line-height: 0.9;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
  display: block;
  opacity: 1;
}

.pizza-selector {
  text-align: center;
  padding: 3vh 30px;
  background: transparent;
  border-radius: 20px;
  margin-top: 3vh;
}

.pizza-slider {
  width: 100%;
  height: 16px;
  /* background: #d0d0d0; */
  border-radius: 8px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin-top: 2vh;
}

.pizza-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url('img/levanto.png') center/cover no-repeat;
  cursor: pointer;
  /* box-shadow: 0 6px 12px rgba(212, 68, 76, 0.4); */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pizza-slider::-webkit-slider-thumb:hover {
  transform: scale(1.5);
  /* box-shadow: 0 8px 16px rgba(212, 68, 76, 0.5); */
}

.pizza-slider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url('img/levanto.png') center/cover no-repeat;
  cursor: pointer;
  border: none;
  /* box-shadow: 0 6px 12px rgba(212, 68, 76, 0.4); */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pizza-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  /* box-shadow: 0 8px 16px rgba(212, 68, 76, 0.5); */
}

.pizza-slider::-moz-range-track {
  background: #d0d0d0;
  height: 16px;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 2vh 15px;
  }
  
  .pizza-selector {
    padding: 2vh 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1vh 10px;
  }
  
  .pizza-selector {
    padding: 2vh 15px;
  }
}

/* Animation for smooth updates */
.ingredient-amount,
.title {
  transition: all 0.3s ease;
}

.ingredient-name {
  color: rgb(167, 80, 80);
}
