.top-image-container {
  width: 100%;
  height: 600px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  position: relative;
  margin-top: 80px;

}

.top-image-container p {
  font-size: 30px;
  font-weight: bold;
  color: white;
  text-align: center;
  margin: 20px 0;
  width: 80%;
  position: absolute;
  letter-spacing: 3px;
}

.top-image-container p:nth-child(1) {
  top: 30%;
}

.top-image-container p:nth-child(2) {
  top: 40%;
}

.top-image-container p:nth-child(3) {
  top: 50%;
}

.top-image-container p:nth-child(4) {
  top: 60%;
}

.top-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

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


/* Products */

.product {
  margin-top: 110px;
}

.product .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product-box {
  width: 650px;
  height: 365px;
  margin: 0 25px 25px 0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  display: inline-block;
  position: relative;
}

.product-box .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-name {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  padding: 10px;
  color: black;
  font-size: 20px;
  font-weight: bold;
  box-sizing: border-box;
  pointer-events: none;
}

.product-box:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.product-box:hover .product-image img {
  opacity: 0.5;
}

.product-box:hover .product-name {
  display: block;
}

@media screen and (max-width: 1024px) {

  .top-image-container img {
    width: 100%;
    height: 100%;
  }

  .top-image-container {
    width: 100%;
    height: 100%;
  }

  .product-box {
    margin: 0;
    margin-bottom: 50px;
  }

  .product {
    margin-top: 50px;
  }

  .product-image img {
    vertical-align: middle;
  }

}

@media screen and (max-width: 648px) {
  .product-box {
    height: 100%;
  }

  .product-image {
    height: 100%;

  }
}

@media (max-width: 818px) {

  .top-image-container p {
    font-size: 24px;

  }
}

@media screen and (max-width: 768px) {
  .top-image-container p {
    margin: 20px 0; /* Kenar boşluğunu ayarlayın */
    width: 100%; /* Genişliği tamamen kapla */
    text-align: center; /* Metni ortala */
    letter-spacing: 0; /* Harf aralığını sıfırla */
    font-size: 20px; /* Yazı boyutunu küçült */
    margin-top: 20px; /* Paragraflar arasındaki boşluğu ayarlayın */
  }
}

@media screen and (max-width: 426px) {
  .top-image-container p {
    
    margin: 30px 0; /* Kenar boşluğunu ayarlayın */
    width: 100%; /* Genişliği tamamen kapla */
    text-align: center; /* Metni ortala */
    letter-spacing: 0; /* Harf aralığını sıfırla */
    font-size: 18px; /* Yazı boyutunu küçült */
    line-height: 1.5; /* Satır arası boşluğu artır */
  }

    .top-image-container p:nth-child(1) {
      top: 5%;
    }
    
    .top-image-container p:nth-child(2) {
      top: 20%;
    }
    
    .top-image-container p:nth-child(3) {
      top: 35%;
    }
    
    .top-image-container p:nth-child(4) {
      top: 50%;
    }
  
}

@media screen and (max-width: 378px) {
  .top-image-container p {
    
    margin: 30px 0; /* Kenar boşluğunu ayarlayın */
    width: 100%; /* Genişliği tamamen kapla */
    text-align: center; /* Metni ortala */
    letter-spacing: 0; /* Harf aralığını sıfırla */
    font-size: 14px; /* Yazı boyutunu küçült */
    line-height: 1.5; /* Satır arası boşluğu artır */
  }

    .top-image-container p:nth-child(1) {
      top: 0%;
    }
    
    .top-image-container p:nth-child(2) {
      top: 15%;
    }
    
    .top-image-container p:nth-child(3) {
      top: 30%;
    }
    
    .top-image-container p:nth-child(4) {
      top: 45%;
    }
  
}

