#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Set the background color of the preloader */
    z-index: 9999; /* Make sure the preloader appears on top of other content */
    
    /* Add styles to center the preloader content */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Add a smooth transition effect */
  }
  
  #preloader.hide {
    opacity: 0;
    pointer-events: none; /* Disable pointer events when the preloader is hidden */
  }
  
  #loader {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 2s linear infinite; /* Add a rotating animation */
  }
  
  .circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffe600; /* Set the color of the circles */
    position: absolute;
    animation: bounce 1.5s ease-in-out infinite; /* Add a bouncing animation */
  }
  
  .circle:nth-child(1) {
    top: 0;
    left: 0;
  }
  
  .circle:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.25s; /* Delay the animation of the second circle */
  }
  
  .circle:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 0.5s; /* Delay the animation of the third circle */
  }
  
  .circle:nth-child(4) {
    bottom: 0;
    right: 0;
    animation-delay: 0.75s; /* Delay the animation of the fourth circle */
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
  }
  
  #content {
    opacity: 0; /* Initially hide the main content */
    transition: opacity 0.5s ease-in-out; /* Add a smooth transition effect */
  }
  
  #content.show {
    opacity: 1;
    transition-delay: 0.5s; /* Delay the transition for a smoother effect */
  }