/* Projects Page Specific Styles */

/* Project Boxes */
.box4,
.gameBox,
.box2:hover {
  background: white;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0.5rem;
  text-align: center;
  margin: 0.5rem;
  padding: 0.2rem;
}

.box {
  background: white;
  max-width: 50%;
  justify-self: center;
  text-align: center;
  justify-content: center;
  max-width: 70%;
  width: 30rem;
}

.box3 {
  background: white;
  max-width: 70%;
  align-items: center;
  justify-self: center;
  text-align: center;
  justify-content: center;
  max-width: 95%;
  width: 105rem;
}

.box4 {
  max-width: 70%;
  width: 20rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.gameBox {
  width: 100%;
  max-width: 90%;
  margin: 0 auto 0.5rem auto;
  padding: 1rem;
}

.box2:hover {
  width: 30rem;
}

/* Project Titles */
.projectsBtn h8,
.dashboard h8 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4188eb;
  text-align: center;
  margin: 0.3rem;
  display: block;
  text-shadow: 0 0.2rem 0.4rem rgba(65, 136, 235, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* Project Links */
.project-links a {
  justify-self: center;
  justify-content: center;
  align-items: center;
  margin: 0.15rem;
  padding: 0.75rem 1.5rem;
  background: #4188eb;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.project-links a:hover {
  background: #65dfc9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-links a i {
  margin-right: 0.5rem;
}

/* Project Sub-titles */
.projectsBtn h2 {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin: 0.3rem 0;
  text-shadow: 0.05rem 0.05rem 0.05rem rgba(0, 0, 0, 0.1);
}

/* Slideshow Styles */
.slideshow-container,
.slideshow {
  position: relative;
  max-width: 100%;
  width: 65rem;
  margin: auto;
}

.mySlides {
  display: none;
  position: relative;
  text-align: center;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 1rem;
  margin-top: -1.5rem;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  transition: 0.6s ease;
  border-radius: 0 0.2rem 0.2rem 0;
  user-select: none;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.prev {
  border-radius: 0 0.2rem 0.2rem 0;
}

.next {
  border-radius: 0.2rem 0 0 0.2rem;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.text {
  color: #f2f2f2;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0.3rem;
  z-index: 10;
  max-width: 60%;
  word-wrap: break-word;
}

.numbertext {
  color: #f2f2f2;
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  position: absolute;
  top: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.5rem 0 0.5rem 0;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 0.75rem;
  width: 0.75rem;
  margin: 0 0.125rem;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

.fade,
.slide {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.slideshow-container {
  max-width: 100%;
}

.slideshow {
  position: relative;
  max-width: 100%;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
}

/* Project Images */
.imgProj {
  max-width: 75%;
  width: 65rem;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Page-specific slideshow positioning */
/* For projects2.html (mobile app) - 30% container with 75% images */
.slideshow-container[style*="width: 30%"] .prev {
  left: 12.5%;
}

.slideshow-container[style*="width: 30%"] .next {
  right: 12.5%;
}

.slideshow-container[style*="width: 30%"] .text {
  left: 12.5%;
  max-width: 50%;
}

.slideshow-container[style*="width: 30%"] .numbertext {
  left: 12.5%;
}

/* For other project pages (full width images) */
.slideshow-container:not([style*="width: 30%"]) .prev {
  left: 0;
}

.slideshow-container:not([style*="width: 30%"]) .next {
  right: 0;
}

.slideshow-container:not([style*="width: 30%"]) .text {
  left: 0.5rem;
  max-width: 60%;
}

.slideshow-container:not([style*="width: 30%"]) .numbertext {
  left: 0;
}

/* Game Button */
.gameButton {
  display: inline-block;
  padding: 0.3rem;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.projectsBtn {
  display: flex;
  gap: 1rem;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 1rem;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

/* Responsive Design for Projects */
@media only screen and (max-width: 768px) {
  .box {
    max-width: 90%;
    width: auto;
  }
  
  .project-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .box4,
  .gameBox {
    max-width: 90%;
    width: auto;
  }
  
  .box3 {
    max-width: 95%;
    width: auto;
  }
  
  .prev,
  .next {
    padding: 0.5rem;
    font-size: 1rem;
  }
  
  .text {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}

@media only screen and (min-width: 2000px) {
  .box,
  .box4,
  .gameBox {
    max-width: 60%;
  }
  
  .project-links a {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .box3 {
    max-width: 80%;
  }
}

@media only screen and (max-width: 480px) {
  .box {
    max-width: 95%;
    width: auto;
  }
  
  /* Make the first slideshow-container (NovaHouse) larger on mobile */
  .slideshow-container {
    width: 50vw !important;
    max-width: 90vw !important;
    min-width: 200px;
    margin: 0 auto;
  }
  
  .projectsBtn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .dashboard h8,
  .projectsBtn h8 {
    font-size: 1.1rem;
    padding: 0.3rem 0.5rem;
  }
  
  .projectsBtn h2 {
    font-size: 1rem;
    margin: 0.2rem 0;
  }

  .project-links {
    gap: 0.1rem;
    margin-top: 0.2rem;
    width: 90vw !important;
  }
  
  .project-links a {
    font-size: 1em;
    padding: 0.2rem 0.4rem;
  }

  .gameButton {
    font-size: 1.8rem;
    padding: 0.1rem 0.2rem;
  }
  
  .project-links a i,
  .project-links a .fa-paperclip {
    font-size: 0.7rem;
    margin-right: 0.1rem;
  }
  
  .gameButton i {
    font-size: 1.3rem;
  }
  
  .gameBox {
    max-width: 95%;
    width: auto;
  }
  
  .box2:hover {
    width: auto;
  }
  
  .prev,
  .next {
    padding: 0.3rem;
    font-size: 0.8rem;
  }
  
  .text {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
  
  .numbertext {
    font-size: 0.6rem;
    padding: 0.3rem 0.5rem;
  }
} 