/* Back to Top Button */
.diamond-link {
  position: fixed;
  bottom: 7%; /* Adjust this value as needed */
  right: 1%; /* Adjust this value as needed */
  display: block;
  z-index: 999; /* Ensure it's above other content */
  transition: opacity 0.5s ease;
}

.diamond {
  width: 0;
  height: 0;
  border: 2.25rem solid transparent; /* Enlarged diamond size */
  border-bottom-color: #d4ceacc7;
  position: relative;
  display: block;
  text-indent: -9999rem;
  margin: 0 auto;
  transition: all 0.3s;
  transform: translateY(0); /* Reset the transform on initial state */
  z-index: 9999;
}

.diamond-link:hover .diamond {
  border-bottom-color: #d4ceac;
  transform: translateY(-0.5rem); /* Move the diamond up slightly on hover */
}

.diamond:after {
  content: "";
  position: absolute;
  left: -2.25rem; /* Adjust this value as needed */
  top: 2.4rem; /* Adjust this value as needed */
  width: 0;
  height: 0;
  border: 2.25rem solid transparent; /* Enlarged diamond size */
  border-top-color: #d4ceac89;
  transition: all 0.1s linear;
}

.diamond-link:hover .diamond:after {
  content: "";
  position: absolute;
  left: -2.25rem; /* Adjust this value as needed */
  top: 0.75rem; /* Adjust this value to decrease the gap */
  width: 0;
  height: 0;
  border: 2.25rem solid transparent; /* Enlarged diamond size */
  border-bottom-color: #d4ceac;
}

/* Add this block to create a visible overlay on hover (for testing) */
.diamond-link:hover::before {
  content: "";
  position: absolute;
  top: 0.7rem; /* Adjust this value to cover the diamond completely */
  left: -0.7rem; /* Adjust this value to cover the diamond completely */
  width: 5rem; /* Width of the overlay (including borders) */
  height: 8.6rem; /* Height of the overlay (including borders) */
  pointer-events: pointer; /* Allow pointer to pass through the overlay */
}
/* ////////////////////////////////////////////////////////////////////////////////////// */
@media (max-width: 60em) {
  .diamond {
    display: none;
  }
}
/* ////////////////////////////////////////////////////////////////////////////////////// */

/* Scroll Down Button */

#scroll-down-btn {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 14;
  animation: bro 2s infinite; /* Apply the fade animation */
}
#scroll-down-btn img {
  filter: brightness(0) invert(1);
  width: 100%;
  height: 100%;
}

@keyframes bro {
  0%,
  100% {
    opacity: 0.2; /* Start and end with opacity 0.5 */
  }
  50% {
    opacity: 1; /* Middle of the animation with opacity 1 */
  }
}
@media (max-width: 45em) {
  #scroll-down-btn-main {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 14;
    animation: fade 2s infinite; /* Apply the fade animation */
  }
  @keyframes fade {
    0%,
    100% {
      opacity: 0.2; /* Start and end with opacity 0.5 */
    }
    50% {
      opacity: 1; /* Middle of the animation with opacity 1 */
    }
  }
  #scroll-down-btn-main img {
    filter: brightness(0) invert(1);
    width: 70%;
    height: 70%;
  }
}

/* ////////////////////////////////////////////////////////////////////////////////////// */
/* Scroll Bar */

/* Firefox */
* {
  scrollbar-width: none;
  scrollbar-color: #d4ceac #00000000;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 1.2rem;
}

*::-webkit-scrollbar-track {
  background: #000000;
}

*::-webkit-scrollbar-thumb {
  background-color: #d4ceac;
  border-radius: 0.3rem;
  border: 0.5rem outset #d4ceac;
}
/* ////////////////////////////////////////////////////////////////////////////////////// */
