/* Project Page CSS */

* { cursor: none !important; }
    
body {
    background-image: url('../../Images/background.jpg');
    overflow-x: hidden;
}

.project-page-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px; /* Increased padding for the entire container */
}

.top-button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

a.artstation-button, a.home-button {
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 10px;
  padding: 10px 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

a.artstation-button {
  font-size: 1.3em;
  padding: 15px 25px;
  background-color: #ff8ee0;
  color: #1a1a2e !important;
}
a.artstation-button:hover {
  background-color: #ffd6ff;
  transform: scale(1.05);
}

a.home-button {
  background-color: #fcb1ff;
  color: #1a1a2e !important;
}
a.home-button:hover {
  background-color: #ffd6ff;
}

a.download-button {
  font-size: 1.3em;
  padding: 15px 25px;
  background-color: #8ee0ff;
  color: #1a1a2e !important;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 10px;
  display: inline-block;
}
a.download-button:hover {
  background-color: #d6f7ff;
  transform: scale(1.05);
}

a.youtube-button {
  font-size: 1.3em;
  padding: 15px 25px;
  background-color: #f74518;
  color: #1a1a2e !important;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 10px;
  display: inline-block;
}
a.youtube-button:hover {
  background-color: #ee1e1e;
  transform: scale(1.05);
}

.carousel-container {
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-container img,
.carousel-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.carousel-container img.active,
.carousel-container video.active {
  display: block;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  color: white;
  font-size: 1.5em;
  user-select: none;
}

.arrow-btn.left { left: 10px; }
.arrow-btn.right { right: 10px; }

.description-box {
  background-color: rgba(26,26,46,0.8);
  color: #fceaff;
  padding: 30px; /* Increased padding */
  border-radius: 15px;
  margin: 40px auto; /* Added margin for spacing */
  line-height: 1.8; /* Increased line height */
  font-size: 1.1em; /* Slightly larger font size */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.description-box h1 {
  text-align: center; /* Center-align the title */
  font-size: 2em; /* Larger font size for the title */
  margin-bottom: 20px; /* Add spacing below the title */
}

.description-box p {
  margin-bottom: 20px; /* Add spacing between paragraphs */
}

.inline-image {
  margin: 30px 0;
  text-align: center;
}

.inline-image img,
.inline-image video {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  width: auto;
  margin: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 176, 255, 0.3);
  object-fit: contain;
  cursor: zoom-in;
}

.inline-image .caption {
  font-size: 0.9em;
  color: #c9aaff;
  margin-top: 8px;
  font-style: italic;
}

#custom-cursor {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  opacity: 0;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 20, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* Adjust styles for mobile devices */
@media (max-width: 768px) {
  /* Ensure the body doesn't overflow horizontally */
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  /* Hide the custom cursor on mobile */
  #custom-cursor {
    display: none;
  }

  /* Make the slideshow buttons smaller */
  .arrow-btn {
    width: 50px;
    height: 50px;
    font-size: 1em;
  }

  /* Ensure the carousel fits within the screen */
  .carousel-container {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }

  /* Adjust padding and margins for better spacing */
  .description-box {
    padding: 20px;
    margin: 20px auto;
    font-size: 1em;
  }

  .inline-image {
    margin: 20px 0;
  }

  .inline-image img,
  .inline-image video {
    max-height: 300px; /* Reduce max height for smaller screens */
  }

  /* Ensure the project page container fits within the screen */
  .project-page-container {
    padding: 10px;
    box-sizing: border-box;
  }

  /* Adjust grid layout for mobile */
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 10px;
    overflow-x: hidden; /* Prevent horizontal scrolling in the grid */
  }

  /* Hide desktop-specific elements */
  .flame-overlay,
  .cursor-container,
  .corner-icons {
    display: none !important;
  }

  /* Footer adjustments */
  .footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    padding-bottom: 10px;
  }
}