body {
  box-sizing: border-box;
  color: #fff;
  background-image: linear-gradient(#020917, #101725);
  margin: 0;
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
}

.content {
  flex-direction: column;
  row-gap: 20px;
  min-height: 100vh;
  line-height: 1.1;
  display: flex;
}

h1 {
  margin: 0;
}

@media (max-width: 560px) {
  h1 {
    font-size: 48px;
  }
}

h2 {
  margin: 0;
}

@media (max-width: 560px) {
  h2 {
    font-size: 36px;
  }
}

.button-container {
  --scrollbar-width: calc(100vw - 100%);
  max-width: calc(100% - var(--scrollbar-width));
  justify-content: center;
  padding: 20px;
  display: flex;
}

.button-random-recipe {
  cursor: pointer;
  color: #fff;
  background: #442121;
  border: 1px solid red;
  width: 400px;
  height: 56px;
}

@media (max-width: 560px) {
  .button-random-recipe {
    font-size: 32px;
  }
}

.recipe-container {
  flex-direction: column;
  row-gap: 20px;
  padding: 20px;
  display: flex;
}

@media (max-width: 560px) {
  .recipe-container {
    padding: 8px;
  }

  .random-recipe__title {
    font-size: 36px;
  }
}

.random-recipe__photo {
  object-fit: contain;
  width: 300px;
  height: 300px;
}

@media (max-width: 560px) {
  .random-recipe__photo {
    width: 100%;
  }
}

.random-recipe__ingredients {
  flex-direction: column;
  row-gap: 10px;
  width: max-content;
  display: flex;
}

@media (max-width: 560px) {
  .random-recipe__ingredients {
    width: 100%;
  }
}

.ingredient {
  border: 1px solid #fff;
  border-radius: 4px;
  flex-direction: column;
  row-gap: 12px;
  padding: 10px;
  display: flex;
}

.ingredient-properties {
  column-gap: 10px;
  display: flex;
}

.samokat {
  column-gap: 15px;
  display: flex;
}

.samokat-image-wrapper {
  border-radius: 15px;
  display: flex;
  overflow: hidden;
}

.samokat-image {
  object-fit: contain;
  width: 150px;
}

.samokat-properties {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  column-gap: 10px;
  display: grid;
}

.samokat-properties > :first-child {
  grid-column: 1 / -1;
}

.loader-wrapper {
  justify-content: center;
  align-items: center;
  display: flex;
}

.loader {
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: 1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

