/* Web rules*/

.stopped:hover .flip-card-inner {
  transform: rotateY(180deg) !important;
  transition: none !important;
}

.fl-page-nav-wrap {
    margin-top: 50px;
}

.post-thumbnail-back {
  height: 100%;
  width: 100%;
}

.post-thumbnail-container {
  display: flex;
  width: 500px;
  height: auto;
  justify-content: center;
  align-items: center;
}

.post-thumbnail-image-container {
  position: relative;
  width: 100%;
  margin: 0 auto; /* Add this line to center the image */
}


.post-thumbnail-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Container */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  margin: 0 15px 30px; /* Add margin to create space between carousel items */
}

/* Flip card inner */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  display: flex; /* add flex */
  align-items: center; /* add align-items */
  justify-content: center; /* add justify-content */
}

/* Flip card front */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

/* Flip card front */
.flip-card-front {
  background-color: transparent;
  z-index: 2;
}

/* Flip card back */
.flip-card-back {
  background-color: black;
  color: white;
  transform: rotateY(180deg);
  z-index: 1;
  text-align: center;
}


/* On mouse-over, add a deeper shadow */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg) !important;
}

/* Show back of card when it is clicked */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-description {
  padding: 10px;
  text-align: left;
  font-size: 16px;
}

.flip-card-description {
  padding: 10px;
  text-align: center;
  font-size: 16px;
}

/* Image description */
.image-description {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
  white-space: nowrap;
}

/* Title */
.flip-card-title {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

/*containers*/

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}


/* Containers */

.flip-card-description-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
}

.logo-buttons-container {
  width: 100%; 
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-columns: repeat(3, 1fr); /* Create 3 columns with equal width */
  gap: 4px; /* Add gap between items */
  margin: 0 auto 40px; /* Add bottom margin of 20px */
}

.click-container {
  width: 100%; 
  display: grid;  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  grid-template-columns: repeat(2, 1fr); /* Create 2 columns with equal width */
  grid-auto-rows: minmax(0, auto); /* Set a minimum height of 0 for each row, and allow them to expand as needed */
  grid-auto-flow: dense; /* Enable auto-placement and fill any empty grid cells */
  gap: 10px; /* Add gap between items */
  margin: 0 auto;
}

/* Buttons */

.click-button {
  gap: 10px; /* Add gap between items */
  padding: 4px 8px; /* Increase padding */
  border: none;
  background-color: black;
  color: white;
  font-size: 13px; /* Increase font size */
  margin-bottom: 10px;
}

.chemicals-button-container {
  display: flex;
  justify-content: center;
  background-color: black;
  color: white;
  font-size: 13px; /* Increase font size */
  }

.click-button:hover {
  background-color: rgba(255, 255, 255, 0.7); /* Change the opacity value (0.7) as needed */
}

@media (max-width: 480px) {
  .on-premise-button,
  .coin-operated-button,
  .chemicals-button {
    font-size: 8px;
    padding: 1px;
    margin: 0 2px;
  }
}

.logo-button {
  width: 90px;
  height: auto;
  background-color: white;
  display: flex;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.logo-button:hover {
  background-color: #BFBFBF;
}

.logo-buttons img {
  background-color: white;
}

@media screen and (max-width: 480px) {
  .logo-buttons {
    flex-direction: column;
    align-items: center;
  }
  .logo-buttons a {
    margin: 2px;
    padding: 5px;
    grid-column: span 2; /* Span across 2 columns */
  }
}

.carousel {
  height: 300px; /* set the desired height */
  overflow: hidden; /* hide overflowing images */
}

.carousel img {
  height: 100%; /* set the image height to fill the container */
  object-fit: cover; /* make sure the entire image is visible */
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


.tabs-container {
  position: relative;
  overflow: hidden;
}

.tabs {
  /* Add the following lines to hide the scrollbar */
  -ms-overflow-style: none;  /* Internet Explorer and Edge */
  scrollbar-width: none;  /* Firefox */

  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
}

/* Add this rule to hide the scrollbar in Chrome, Safari, and newer Edge versions */
.tabs::-webkit-scrollbar {
  display: none;
}


.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: lightgray;
  padding: 5px;
  cursor: pointer
}

#scroll-left {
  left: 0; /* Add this line to position the left arrow */
}

#scroll-right {
  right: 0; /* Add this line to position the right arrow */
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.featured-post-title {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #333;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  white-space: nowrap;
}

.featured-posts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.post-thumbnail-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  max-width: 1200px; /* Set a maximum width */
  margin: 0 auto; /* Add this line to center the container */
}

.post-flip-card {
  width: 300px;
  height: 300px;
  perspective: 1000px;
  margin-bottom: 2rem;
}

.post-flip-card .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
}

.post-flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.post-flip-card .flip-card-front,
.post-flip-card .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.post-flip-card .flip-card-front {
  background-color: #ffffff;
  color: black;
}

.post-flip-card .flip-card-back {
  background-color: #000; /* Change the background color to black */
  color: white;
  transform: rotateY(180deg);
  font-size: 5rem; /* Adjust the font size as needed */
  padding: 1rem; /* Add padding to the content */
}

.post-flip-card .image-container img {
  width: 100%;
  height: auto;
}

.post-flip-card .image-description {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem;
}

.post-flip-card .post-card-description {
  font-size: 1rem;
  padding: 1rem;
}

.post-flip-card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
  padding: 2rem;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
  .post-flip-card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .post-flip-card-container {
    grid-template-columns: 1fr;
  }
}
