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

.display-recipe {
  display: none;
}

html,
body {
  overflow-x: hidden;
}

.container {
  text-align: center;
  max-width: 100%;
}

.section1 {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  flex-wrap: wrap;
}

.section1 {
  background-color: #ff8400;
  padding: 40px 0;
}

.section2,
.section4 {
  width: 100%;
  height: 360px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section2 {
  background-image: url(/image/first.gif);
}

.section4 {
  background-image: url(/image/second.gif);
}

.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.section3 {
  background-color: #ff8400;
  color: white;
  padding: 15px;
  font-size: 20px;
  line-height: 1.5;
}

.section3 h2 {
  font-family: "Agbalumo", serif;
  font-size: 40px;
  margin: 35px 5px 10px;
}

.image-section1 {
  background: black;
  border-radius: 0 50% 50% 0;
  padding-left: 8vw;
  z-index: 2;
  /* Coloca la imagen sobre el texto */
}

.image-section1 img {
  max-width: 100%;
  width: 40vw;
  height: auto;
  min-width: 300px;
}

.text-section1 {
  flex: 1;
  background-color: white;
  color: #ff8400;
  font-size: clamp(30px, 5vw, 60px);
  /* Se ajusta a diferentes pantallas */
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  z-index: 1;
  /* Mantiene el texto debajo de la imagen */
  padding: 4vw;
  padding-left: 160px;
  width: 100%;
  margin-left: -9vw;
  /* Superpone el borde del texto sobre la imagen */
}

.text-ramen {
  color: #ff8400;
  font-size: 45px;
  font-family: "Kaushan Script", serif;
  font-weight: 400;
  padding: 15px;
  z-index: 2;
}

/*Tipe Ramen*/
.ramen-type-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.type-ramen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.type-ramen .ramen {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.323);
  position: relative;
  background: white;
  width: 100%;
}

.ramen .type-ramen-image {
  width: 100%;
  height: 270px;
}

.type-ramen-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.ramen .type-ramen-text {
  width: 100%;
  padding: 10px;
  background-color: white;
  position: absolute;
  bottom: 0;
  transform: translateY(100%);
  transition: transform 0.6s ease-in-out;
}

.ramen:hover .type-ramen-image img {
  transform: scale(1.05);
}

.ramen:hover .type-ramen-text {
  transform: translateY(0);
}

.type-ramen-text h3 {
  color: #ff8400;
  margin-top: 5px;
}

.type-ramen-text p {
  color: black;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Recipe Button*/
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

a {
  text-decoration: none;
}

.recipe-button,
.more-information {
  padding: 10px 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 150ms ease-in-out;
}

.more-information {
  background-color: black;
  color: #ff8400;
}

.recipe-button {
  background-color: #ff8400;
  color: white;
}

.recipe-button:hover {
  background-color: black;
  color: #ff8400;
}

.more-information:hover {
  background-color: #ff8400;
  color: white;
}

/*Recipe-section*/

.recipe-container {
  margin: 40px;
  text-align: center;
}

.recipe-items {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;

  background-color: white;
  border-radius: 15px;
  margin: 20px 20px 45px;
  padding: 25px 20px;
}

.recipe-items.active {
  opacity: 1;
  transform: translateY(0);
}

.recipe-items h3 {
  font-size: 45px;
  color: #ff8400;
}

.type-recipe {
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.type-recipe h4 {
  color: #ff8400;
  font-size: 25px;
}

.recipe-box {
  flex-grow: 1;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.323);
  border-radius: 10px;
  font-size: 15px;
  color: black;
  padding: 30px;
  max-width: 550px;
}

.recipe-box p {
  font-size: 15px;
  font-weight: bold;
  margin-top: 15px;
}

.icon {
  margin: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.icon img {
  width: 45px;
}

.icon strong {
  color: #ff8400;
}

li {
  list-style: none;
}

/*Footer*/
footer {
  background-color: black;
  color: #ff8400;
  padding: 35px;
}

footer p,
footer span,
.code {
  color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 40px;
}

.about-me h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.about-website h3 {
  font-size: 15px;
  margin-bottom: 15px;
}

.about-me p {
  font-size: 13px;
  line-height: 1.5;
}

.about-website span {
  font-size: 12px;
}

.about-me {
  padding: 0 85px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 25px;
}

.social-icons a {
  font-size: 20px;
  color: #ff8400;
}

/*Adaptaciona varias pantallas - Adapt multiple screens*/

@media (max-width: 1200x) {
  .type-ramen {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .type-ramen-image {
    width: 100%;
    height: 250px;
  }

  .type-recipe {
    flex-direction: column;
    margin-top: 10px;
  }

  .recipe-box {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .text-ramen {
    font-size: 30px;
  }

  .section2,
  .section4 {
    height: 300px;
  }

  .image-section1 {
    padding-left: 5px;
  }

  .text-section1 {
    padding-left: 100px;
  }

  .image-section1 img {
    max-width: 100%;
    width: 350px;
    height: auto;
    min-width: 200px;
  }

  .type-ramen {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-recipe {
    flex-direction: column;
    margin-top: 10px;
  }

  .recipe-box {
    width: 100%;
    max-width: none;
    font-size: 14px;
    padding: 20px;
  }

  .recipe-items h3 {
    font-size: 35px;
  }

  .type-recipe h4 {
    font-size: 20px;
  }

  .about-content {
    padding: 20px;
  }

  .about-me {
    padding: 0 20px;
  }

  .about-me h3 {
    font-size: 17px;
  }

  .about-me p {
    font-size: 11px;
  }

  .about-website h3 {
    font-size: 11px;
  }

  .about-website span {
    font-size: 10px;
  }

  .social-icons a {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .image-section1 img {
    width: 200px;
    height: auto;
    min-width: 100px;
  }

  .section2,
  .section4 {
    height: 200px;
  }

  .text-ramen {
    font-size: 15px;
  }

  .type-ramen {
    grid-template-columns: 1fr;
  }

  .text-section1 {
    font-size: 19px;
    padding-left: 35px;
  }

  .recipe-button,
  .more-information {
    padding: 10px 5px;
    font-size: 12px;
  }

  .type-recipe {
    flex-direction: column;
  }

  .recipe-container {
    margin: 15px;
  }

  .recipe-box {
    width: 100%;
    max-width: none;
  }

  .recipe-items {
    margin: 10px 0 45px;
  }

  .about-content {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .about-me {
    padding: 0 10px;
  }

  .about-me h3 {
    font-size: 15px;
  }

  .about-me p {
    font-size: 10px;
  }

  .about-website h3 {
    font-size: 10px;
  }

  .about-website span {
    font-size: 8px;
  }

  .social-icons a {
    font-size: 15px;
  }
}
