/* body {
  background-image: url(../images/icons/iconsLayerBlur.png);
  background-size: 40% 40%;
  background-repeat: repeat; 
} */

@font-face {
  font-family: 'myheading';
  src: url('fonts/an.eot');
  src: url('fonts/an.eot?#iefix') format('embedded-opentype'),
      url('fonts/an.woff2') format('woff2'),
      url('fonts/an.woff') format('woff'),
      url('fonts/an.ttf') format('truetype'),
      url('fonts/an.svg#an') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

h1 {
    font-family: myheading;
}

h2 {
    font-family: myheading;
}

h3 {
    font-family: myheading;
}

h4 {
  font-family: myparagraf;
}

h5 {
  font-family: myheading;
  text-align: center;
  font-size: 12px;
  font-weight: normal;
}

p {
    font-family: myheading;
    text-align: justify;
    font-size: 12px;
}

.navlink {
  text-decoration: none;
}

.navlink:link, .navlink:visited {
  color: blue;
}

.navlink:hover {
  color: red;
}

.text-justify {
    font-family: myparagraf;
    text-align: justify;
}

button {
  font-family: myheading;
  font-size: 12px;
  cursor: pointer;
}

@keyframes marquee {
  0% {
      transform: translateX(100%);
  }
  100% {
      transform: translateX(-100%);
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
}

.about-link, .reload, .basket {
  flex: 1; /* Allocate equal space to each item */
  text-align: center; /* Center the text within each flex item */
  font-size: 12px;
  font-family: myheading;
  text-decoration: none;
  color: black;
  margin: 0; /* Removes default margin */
}

.about-link {
  text-align: left; /* Align 'about' to the left */
  padding-left: 5%;
}

.basket {
  position: fixed;
  right: 5%;
  text-align: right; /* Align 'cart' to the right */
  z-index: 2000;
  cursor: pointer;
}

.reload {
  text-align: center; /* Ensure 'reload archive' is centered */
  order: 2; /* Place it in the middle */
  position: absolute;
  left: 50%; /* Set the element halfway across the navbar */
  transform: translateX(-50%); /* Shift it back by half its own width */
}
  
.basket-icon {
  font-family: myheading;
  font-size: 12px;
}

.basket-count {
  color: black;
  padding: 2px 2px;
  font-size: 12px;
  font-family: myheading;
}

.added { /* Add to basket animation class */
  animation: add-to-basket-animation 0.5s forwards;
}
  
@keyframes add-to-basket-animation { /* Add to basket animation */
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.theendvideo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.video { /* Target the video tag inside the .video div */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  margin-right: 50px;
}

.videodisplay {
  display: flex;
  height: 600px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.videodisplay video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.videotext {
  width: 50%;
  text-align: justify;
  justify-content: center;
  margin-top: 20px;
  margin-left: 50px;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 0 auto;
  text-align: center;
  padding-top: 5%;
}

/* New CSS for reversed order */
.container.reversed .image-gallery {
  order: 2; /* Places image-gallery second in the layout */
}

.container.reversed .product-info {
  order: 1; /* Places product-info first in the layout */
}

/* Ensure the margin-right from image-gallery doesn't affect layout when reversed */
.container .image-gallery, .container .product-info {
  margin-right: 50px;
}

.container.reversed .image-gallery {
  margin-right: 0; /* Remove margin-right for image-gallery in reversed container */
}

.container.reversed .product-info {
  margin-left: 0; /* Ensure there's no left margin on product-info in reversed container */
}

.image-gallery {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  width: 50%;
  margin-right: 50px;
}

.main-display {
  display: flex;
  height: 600px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.main-display img, .main-display video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.main-image {
    display: flex;
    height: 600px;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 10px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scroll-arrow {
  position: absolute;
  top: 93%; /* Adjust this value to align vertically as needed */
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  background-color: transparent; /* Ensures arrow background is invisible */
  border: none; /* Removes any border */
  width: 17px; /* Arrow width */
  height: 17px; /* Arrow height */
  /* Remove or comment out ::before and ::after pseudo-elements */
}

.left-arrow {
  background-image: url('../images/icons/arrow-left.png');
  background-size: cover; /* Ensures the image covers the area */
  left: calc(-25px); /* Adjust this value to align with the left side of the thumbnail container */
}

.right-arrow {
  background-image: url('../images/icons/arrow-right.png');
  background-size: cover; /* Ensures the image covers the area */
  right: calc(-25px); /* Adjust as needed, potentially adding a small offset */
}

.thumbnail img, .thumbnail video {
    width: 80px;
    height: 80px;
    margin-right: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    object-fit: cover; /* Ensures the content covers the full area */
    object-position: center; /* Adjusts the position of the content within the element */
}

.product-info {
    width: 50%;
    text-align: justify;
    justify-content: center;
    margin-top: 20px;
    margin-left: 50px;
}
  
.add-to-basket {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
}

.related-projects {
  margin-top: 7%; /* Adjust as needed */
  margin-bottom: 7%;
}
  
.related-projects p {
  text-align: center;
  flex-direction: column;
  margin-bottom: 4%; /* Adjust as needed */
}
  
.project-items {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px; /* Adjust the space between items as needed */
}
  
.project-item {
  width: 15%; /* Adjust width as needed */
  text-align: center;
  text-decoration: none;
  color: inherit; /* Ensures the color is not changed */
}
  
.project-item img {
  width: 200px;
  height: 200px;
  margin-bottom: 10px; /* Adjust as needed */
}
/*
.project-item img:hover {
  box-shadow: 0 12px 20px 10px rgba(246,233,9,0.24),0 17px 50px 0 rgba(246,233,9,0.24);
}
*/
.project-item p {
  margin: 5px 0; /* Adjust as needed */
}

.footer p {
  text-align: center;
  font-size: 10px;
}

@media screen and (max-width: 500px) {
  h1 { font-size: 120%; }
  h2 { font-size: 110%; }
  h3 { font-size: 80%; }

  p, .about-link p, .basket-icon, .basket-count, .reload p {
    font-size: 10px;
  }

  .breaking-news-bar { height: 10px; }

  .breaking-news-text {
    display: block;
    height: 15px;
    animation: marquee 7s linear infinite;
    scale: 1;
  }

  .navbar, .about-link, .reload, .basket, .basket-icon, .basket-count {
    /* Adjustments for navbar and related elements */
  }

  .theendvideo, .container, .container.reversed {
    flex-direction: column;
    align-items: center;
    width: 95%;
    margin: 0 auto;
    padding-top: 5%;
    padding: 0 30px 0 30px;
    box-sizing: border-box;
  }
  .theendvideo .video, .theendvideo .videotext,
  .container .image-gallery, .container .product-info, 
  .container.reversed .image-gallery, .container.reversed .product-info {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 3%;
  }

  .main-display, .thumbnail-container {
    width: 100%;
    align-items: center;
  }

  .scroll-arrow {
    top: 95%; /* Adjust this value to align vertically as needed */
    width: 12px; /* Arrow width */
    height: 12px; /* Arrow height */
    /* Remove or comment out ::before and ::after pseudo-elements */
  }
  
  .left-arrow {
    left: calc(-17px); /* Adjust this value to align with the left side of the thumbnail container */
  }
  
  .right-arrow {
    right: calc(-17px); /* Adjust as needed, potentially adding a small offset */
  }

  .thumbnail {
    flex: 0 0 auto;
    width: 65px;
    height: 65px;
    margin-right: 10px;
  }

  .thumbnail:last-child { margin-right: 0; }

  .thumbnail img, .thumbnail video {
    width: 100%;
    height: 100%;
  }

  .add-to-basket {
    width: 120px;
    height: 30px;
    font-size: 10px;
  }

  .related-projects {
    margin-top: 50px;
  }

  .project-items {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 50px;
  }

  .project-item {
    width: auto;
    text-align: center;
  }

  .project-item img {
    width: 75px;
    height: 75px;
    margin-bottom: 10px;
  }

  .footer {
    font-size: 8px;
  }

  .footer p {
    text-align: center;
    font-size: 6px;
  }
}