@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body{
    font-family: 'Pacifico', cursive;
    font-size: 16px;
}

image{
    max-width: 100%;
}

.navbar-items{
    display: flex;
    justify-content:space-around;
}

ul{
    border-bottom: 2px solid black;
}

li{
    padding: 10px;
}

#start{
    background-image: url('images/donuts-head.png');
    background-repeat: no-repeat;
    background-position: center;
}

.logo{
    display: flex;
    justify-content: end;
}

.logo-img{
    width: 15vw;
    height: 30vh;
    background-size: cover;
}

.introduccion{
    display: grid;
    align-content: center;
    align-items: center;
    text-align: center;
}
/*-------------------------Section1----------------------------------*/
.pastelera{
    width: 460px;
    height: 600px;
    border-radius: 10px; /* Add rounded corners */
    box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.2); /* Add floating shadow */
}

.section1{
    padding: 5% 24%;
    display: flex;
    justify-content: center;
    gap: 2em;
    text-align: center;
}

.nuestraHistoria{
    display: grid;
    align-content: center;
}

.nuestraHistoria > :nth-child(1){
    font-size: 3em;
}

.linea{
    background-color: black;
    width: 3cm;
    height: 2px;
    margin: 10px auto;
}

/*--------------------Imagen Previa a Section2-----------------*/
.cheesecake{
    width: 100%;
    background-size: cover;
    background-position: center;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
}

@media (max-width: 767px) {
    footer section {
        width: 100%;
        text-align: center;
    }

    footer section:first-child {
        order: 2;
    }

    footer section:last-child {
        order: 1;
    }
}

/*-----------------------------Sección de productos----------------------------*/
.product-section{
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-items: center;
    align-items: center;
    gap: 2em;
    padding-top: 5%;
    
}

.product-card img{
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* Styles for the Reseñas section */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.grid-item {
  margin: 10px;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.review-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.review-card h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
}

.review-card p {
  font-size: 0.9em;
  text-align: center;
  margin-bottom: 10px;
}

.review-card .rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.review-card .rating img {
  width: 20px;
  height: 20px;
  margin: 0 2px;
}

.review-card .date {
  font-size: 0.8em;
  color: #999;
}

/* Media queries for different screen sizes */

@media (max-width: 767px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .review-card {
    padding: 10px;
  }

  .review-card img {
    width: 75px;
    height: 75px;
  }

  .review-card h3 {
    font-size: 1em;
  }

  .review-card p {
    font-size: 0.8em;
  }

  .review-card .rating img {
    width: 15px;
    height: 15px;
  }

  .review-card .date {
    font-size: 0.7em;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .review-card {
    padding: 5px;
  }

  .review-card img {
    width: 50px;
    height: 50px;
  }

  .review-card h3 {
    font-size: 0.8em;
  }

  .review-card p {
    font-size: 0.7em;
  }

  .review-card .rating img {
    width: 10px;
    height: 10px;
  }

  .review-card .date {
    font-size: 0.6em;
  }
}