@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.8);
    font-size: 0.95rem;
}

@media (max-width:600px){

  .content {
    font-size: 0.85rem;
}

}


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.3rem;
    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;
}


.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    color: black;
    background-color: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 70%; /* Adjust width to center elements properly */
    max-width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%); /* Center horizontally and move 5% upwards */
}



.purchase-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}



.external-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: relative;
    display: inline-block;
}

#Google-container {
    background-image: url('../images/Brush.png');
    background-size: cover;
    background-position: center;
    margin: 20px 0 0 0;
}


#Amazon-container {
    background-image: url('../images/Brush.png');
    background-size: cover;
    background-position: center;
    margin: 10px 0 0 0;
}


.external-links img {
    height: 90%;
    width: 90%;
    max-width: 450px;
    max-height: 90px;
}



/* Default background for devices larger than 800px */
.product-page {
    background-image: url('../images/B1_RAT.jpg');
}

/* Background for devices up to 800px width */
@media (max-width: 1367px) {
    .product-page {
        background-image: url('../images/B2_RAT.jpg');
    }
}

/* Background for devices up to 500px width */
@media (max-width: 626px) {
    .product-page {
        background-image: url('../images/B3_RAT.jpg');
    }
}

/* Existing CSS */

button {
    margin: 0px 10px 10px 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
}


@media (max-width: 490px) {
    #purchaseButton,
    #sampleButton{
        font-size: 0.8rem;
    }
}


#orderButton {
  background-color: darkgreen; /* Dark green background */
  color: white;               /* White text */
  margin-top: 10px;
  margin-bottom: -5px;
  padding: 20px 30px;
  cursor: pointer;            /* Add a pointer cursor on hover */
  border-radius: 5px;         /* Optional: Add rounded corners */
}

#orderButton:hover {
  background-color: green;    /* Slightly lighter green on hover */
}

/* Styles for modal buttons */
.response-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    font-size: 0.9rem;
}

@media (max-width: 490px) {
  .response-button {
    font-size: 0.8rem;
}
}

.response-button:hover {
    background-color: #0056b3;
}


.payment-info {
    line-height: 1.2;
}

.modal-content .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* 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 */
#isbn-small {
    margin-top: 2px;
    font-size: 0.8rem;
}

.scroll-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    margin: 0 auto; /* Center the container within the parent */
    padding: 10px 0;
    width: 700px;
    display: flex;
    scroll-behavior: smooth; /* Add smooth scrolling */
}


  @media (max-width: 800px) {
    .scroll-container {
      width: 700px; /* Adjust width to 300px */
    }
  }
  @media (max-width: 750px) {
    .scroll-container {
      width: 650px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 700px) {
    .scroll-container {
      width: 600px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 650px) {
    .scroll-container {
      width: 550px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 600px) {
    .scroll-container {
      width: 500px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 550px) {
    .scroll-container {
      width: 450px; /* Adjust width to 300px */
    }
  }
  @media (max-width: 500px) {
    .scroll-container {
      width: 400px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 450px) {
    .scroll-container {
      width: 350px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 400px) {
    .scroll-container {
      width: 300px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 350px) {
    .scroll-container {
      width: 250px; /* Adjust width to 300px */
    }
  }

  @media (max-width: 300px) {
    .scroll-container {
      width: 200px; /* Adjust width to 300px */
    }
  }


  .scroll-item {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Transparent olive color */
    margin: 0 5px;
    padding: 10px;
    border: 1px solid white;
    border-radius: 5px;
  }

  .scroll-item[data-lang="fa"]{
    direction: rtl;
  }
  
  .scroll-item img {
    width: 32px;
    height: 32px;
    margin: 15px 0 10px 0;
}
  
  /* Optional: Styling for the scrollbar */
  .scroll-container::-webkit-scrollbar {
    height: 8px; /* Height of horizontal scrollbar */
  }
  
  .scroll-container::-webkit-scrollbar-thumb {
    background: #ffffff; /* Color of scrollbar thumb */
    border-radius: 4px; /* Round corners of scrollbar thumb */
  }
  
  .scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555; /* Darker color on hover */
  }
  
  .scroll-container::-webkit-scrollbar-track {
    background: #0000007a; /* Background color of scrollbar track */
  }
  
  
  .number103-title-fancy{
    font-family: 'Merriweather', Arial, sans-serif;
   }

   .rtl-special[data-lang="fa"] {
    direction: rtl;
   }

   .number103e-book-des-p{
    font-family: 'Roboto', Arial, sans-serif;
    direction: ltr;
   }


  button[data-lang="en"] {
    font-family: 'Roboto', Arial, sans-serif;
  }
  
  button[data-lang="fa"] {
    font-family: 'Vazirmatn', Arial, sans-serif;
  }
  
  button[data-lang="fr"] {
    font-family: 'Merriweather', Arial, sans-serif;
  }

  .colorful-stock{
    color: rgb(30, 255, 0);
  }



  .purchase-image-2 {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }


  /* 1. Customize the Checkbox Size */
.custom-checkbox {
  /* Scale the checkbox */
  transform: scale(1.2); /* Adjust the scale factor as needed */
  
  /* Optional: Adjust spacing */
  margin-right: 5px;
  
  /* Align vertically with the label text */
  vertical-align: middle;
  
}

/* 2. Customize the Checkbox Label Font Size */
.custom-checkbox-label {
  font-size: 0.9rem; /* Set your desired font size */
  color: #333; /* Optional: Set label text color */
  cursor: pointer; /* Change cursor to pointer on hover */
 
  align-items: center; /* Vertically center the checkbox and text */
}

/* 3. Customize the Input Field Size */
.custom-input {
  width: 240px; /* Set desired width */
  height: 40px; /* Set desired height */
  padding: 10px; /* Inner padding for better text spacing */
  font-size: 16px; /* Font size for input text */
  border: 2px solid #ccc; /* Border styling */
  border-radius: 4px; /* Rounded corners */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  
  /* Optional: Add transition for focus effects */
  transition: border-color 0.3s;

  margin-top: 3px;
}

.custom-input:focus {
  border-color: #66afe9; /* Change border color on focus */
  outline: none; /* Remove default outline */
}

/* 4. Customize the Disabled Input Field */
.custom-input:disabled {
  background-color: #e0e0e0; /* Dark grey background */
  color: #fff; /* White text for better readability */
  cursor: not-allowed; /* Change cursor to indicate non-interactive state */
}

.green-success{
  color: white;
  background-color: #0c8f00;
  padding: 5px;
  border-radius: 5px;
}


.persian-description{
  font-family: 'Vazirmatn', Arial, sans-serif;
  direction:rtl;
}