@font-face {
    font-family: 'Roboto';
    src: url('../fonts/english/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Roboto';
    src: url('../fonts/english/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  
  /* Persian Fonts */
  @font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/persian/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/persian/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  
  /* French Fonts */
  @font-face {
    font-family: 'Merriweather';
    src: url('../fonts/french/Merriweather-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Merriweather';
    src: url('../fonts/french/Merriweather-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  
  /* Apply the fonts based on language */
  body[data-lang="en"] {
    font-family: 'Roboto', Arial, sans-serif;
  }
  
  body[data-lang="fa"] {
    font-family: 'Vazirmatn', Arial, sans-serif;
  }
  
  body[data-lang="fr"] {
    font-family: 'Merriweather', Arial, sans-serif;
  }



body, html {
    margin: 0;
    padding: 0;
    background-color: #4a148c;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.product-page {
    position: relative;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin: 0;
    min-height: calc(100vh - 150px); /* Adjust height to fill the space */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1; /* Lower z-index */
}

.content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
}


h1 {
    position: relative;
    z-index: 2; /* Above the background but below other elements */
    padding: 10px;
    display: inline-block;
    font-size: 2em; /* Increase the font size by 1.2x */
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

h1::before {
    content: "";
    position: absolute;
    top: -100vh; /* This ensures it extends all the way to the top of the screen */
    left: 0;
    right: 0;
    height: 101vh; /* This ensures it covers the height from the title to the top of the page */
    background: transparent;
    z-index: -1; /* Behind the title but above the background */
}

h1, h1::before{
    background-image: url('../images/123.png');
    background-repeat: repeat;
    background-size: 6px 6px; /* Size of each repeating block */
    
}


h2 {
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block; /* Ensure h2 width can be calculated */

}

hr {
    border: 0;
    height: 1px;
    background: white;
    margin: -15px auto 20px auto; /* Center the hr element */
    display: block;
}


p {
    margin: -5px 0 10px 0;
    line-height: 1.5;
}



/* Default background for devices larger than 800px */
.product-page {
    background-image: url('../images/B1_W_CP.jpg');
}

/* Background for devices up to 800px width */
@media (max-width: 1367px) {
    .product-page {
        background-image: url('../images/B2_W_CP.jpg');
    }
}

/* Background for devices up to 500px width */
@media (max-width: 626px) {
    .product-page {
        background-image: url('../images/B3_W_CP.jpg');
    }
}

/* Existing CSS */




/* New styles for the scrollable book details section */
/* New styles for the scrollable book details section */
/* New styles for the scrollable book details section */
/* New styles for the scrollable book details section */
/* New styles for the scrollable book details section */
/* New styles for the scrollable book details section */
/* New styles for the scrollable book details section */
/* New styles for the scrollable book details section */

  .persian-description{
    font-family: 'Vazirmatn', Arial, sans-serif;
    direction:rtl;
}


#site-link{
    color:#007BFF;
}

table {
    border-collapse: collapse;
    width: 80%; /* Optional: Adjust width to your needs */
    margin: auto;
  }
  
  th, td {
    border: 1px solid rgb(119, 119, 119);
    padding: 10px;
    text-align: center;
  }
  
  .table-header {
    background-color:  rgb(26, 8, 59);;
    color: white;
  }
  
  .table-content {
    background-color: rgb(35, 40, 78);
    color: white;
  }
  


  .external-links {
    display: flex;
    justify-content: center; /* Center the entire flex container */
    align-items: center;
    background-color: #ffffff2a;
    border: 1px solid #888888;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
}

.image-container1 img {
    max-width: 120px;
    margin-right: 20px; /* Add margin to the right of the first image */
}

.image-container2 img {
    max-width: 100px;
}

.image-container3 img {
    max-width: 70px;
    margin-left: 20px; /* Add margin to the left of the third image */
}

@media(max-width:800px){
    .image-container1 img {
        max-width: 100px;
        margin-right: 20px; /* Add margin to the right of the first image */
    }
    
    .image-container2 img {
        max-width: 83px;
    }
    
    .image-container3 img {
        max-width: 57px;
        margin-left: 20px; /* Add margin to the left of the third image */
    }
}
@media(max-width:600px){
    .image-container1 img {
        max-width: 80px;
        margin-right: 20px; /* Add margin to the right of the first image */
    }
    
    .image-container2 img {
        max-width: 67px;
    }
    
    .image-container3 img {
        max-width: 46px;
        margin-left: 20px; /* Add margin to the left of the third image */
    }
}

#sampleButton{
    display: none;
}


/* Gallery Container */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    margin: 10px 30px;
}

/* Thumbnails */
.gallery-thumbnail {
    width: 80px;
    height: 60px;
    margin: 5px;
    cursor: pointer;
    object-fit: cover;
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1500; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 


}

.modal-content {
    z-index: 1501; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 70%;
    display: block;
}

.close, .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 2000;
}

.close {
    right: 15px;
    top: 15px;
    transform: translateY(0);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}


.rtl-special[data-lang="fa"] {
    direction: rtl;
   }