/* From Uiverse.io by Yaya12085 */ 

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
}

.title {
  font-family: Lato, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.57px;
  color: rgb(212 212 212);
}

.icon {
  width: 20px;
  transition: .2s ease;
}

.icon:hover {
  cursor: pointer;
  border-radius: 50px;
  background-color: #6e7281;
}

.editor-content {
  margin: 0 10px 10px;
  color: white;
}
a{
  color: white;
}
.property {
  margin-left: 30px;
}

.property:hover {
  cursor: text;
}

.editor-content .color-0 {
  color: rgb(86 156 214);
}

.editor-content .color-1 {
  color: rgb(182 206 168);
}

.editor-content .color-2 {
  color: rgb(156 220 254);
}

.editor-content .color-3 {
  color: rgb(207 146 120);
}

.color-preview-1,.color-preview-2 {
  height: 8px;
  width: 8px;
  border: 1px solid #fff;
  display: inline-block;
  margin-right: 3px;
}

.color-preview-1 {
  background-color: #1d1e22;
}

.color-preview-1 {
  background-color: rgba(0, 0, 0, 0.5);
}
#sidebar {
  position: fixed;
  width: 15rem;
  height: 100%;
  background-color: #212529;
  padding: 1rem;
  z-index: 1000;
  overflow-y: auto;
}
#sidebar .nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.05rem;
  font-size: 1.1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
#mobileMenuToggle {
  position: fixed;
  
  z-index: 1060; 
  top: 0.1rem;
  right: 2rem !important;
}

.hamburger {
  position: fixed;
  
  width: -webkit-fill-available;
  height: 2.5rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
button#closeMobileMenu {
  position: absolute;
  top: 3rem;
  right: 2rem;
   padding: 0 !important;
   margin: 0;
  font-size: 2rem;
}
/* Hover glow effects for each nav item */
#sidebar .nav-item:nth-child(1) .nav-link:hover, #mobileMenu .nav-item:nth-child(1) .nav-link:hover {
  color: #0ff;
  text-shadow: 0 0 0.5rem #0ff, 0 0 1rem #0ff;
}
#sidebar .nav-item:nth-child(2) .nav-link:hover, #mobileMenu .nav-item:nth-child(2) .nav-link:hover {
  color: #0f0;
  text-shadow: 0 0 0.5rem #0f0, 0 0 1rem #0f0;
}
#sidebar .nav-item:nth-child(3) .nav-link:hover, #mobileMenu .nav-item:nth-child(3) .nav-link:hover {
  color: #f0f;
  text-shadow: 0 0 0.5rem #f0f, 0 0 1rem #f0f;
}
#sidebar .nav-item:nth-child(4) .nav-link:hover, #mobileMenu .nav-item:nth-child(4) .nav-link:hover {
  color: #ff0;
  text-shadow: 0 0 0.5rem #ff0, 0 0 1rem #ff0;
}
#sidebar .nav-item:nth-child(5) .nav-link:hover, #mobileMenu .nav-item:nth-child(5) .nav-link:hover {
  color: #f0c;
  text-shadow: 0 0 0.5rem #f0c, 0 0 1rem #f0c;
}
#sidebar .nav-item:nth-child(6) .nav-link:hover, #mobileMenu .nav-item:nth-child(6) .nav-link:hover {
  color: #f03737;
  text-shadow: 0 0 0.5rem #f03737, 0 0 1rem #f03737;
}

#sidebar .nav-link::after,  #mobileMenu .nav-link::after {
  content: "";
  display: block;
  height: 0.15rem;
  width: 0%;
  background: currentColor;
  transition: width 0.4s ease;
}
#sidebar .nav-link:hover::after , #mobileMenu .nav-link:hover::after {
  width: 100%;
}

.contact-link {
  color: #00ffe7;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  transition: color 0.3s ease;
}
.contact-link i {
  margin-right: 0.5rem;
}
.contact-link:hover {
  color: #ffffff;
}

form input,
form textarea {
  font-family: 'Fira Code', monospace;
  background-color: #1e1e1e;
  border: 0.1rem solid #444;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem;
  width: 100%;
}

form input:focus,
form textarea:focus {
  border-color: #00ffe7;
  box-shadow: 0 0 0.5rem rgba(0, 255, 231, 0.3);
}

.play-now-btn {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  text-decoration: none;
  font-weight: bold;
  color: #0ff;
  border: 0.15rem solid #0ff;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 0.6rem rgba(0, 255, 255, 0.3);
  background-color: transparent;
}

.play-now-btn:hover {
  background-color: #0ff;
  color: #000;
  box-shadow: 0 0 1.2rem rgba(0, 255, 255, 0.5), 0 0 0.3rem rgba(0, 255, 255, 0.4) inset;
  transform: translateY(-0.2rem);
}

.game-embed-wrapper {
  display: flex;
  justify-content: center;
}

.footer-icons .icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.4rem;
  font-size: 1.2rem;
  color: #000;
  position: relative;
  transition: all 0.3s ease;
}
.footer-icons .icon-wrapper:hover {
  color: #fff;
  transform: translateY(-0.2rem);
}
.icon-wrapper.github:hover { background-color: #000; }
.icon-wrapper.linkedin:hover { background-color: #0077b5; }
.icon-wrapper.email:hover { background-color: #c23a2b; }
.icon-wrapper.itch:hover { background-color: #fa5c5c; }
.icon-wrapper.orcid:hover { background-color: #f0c; }
.icon-wrapper.behance:hover { background-color: #00bfff; }


.icon-wrapper[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0.95;
}



.video-container {
  display: flex;
  flex-direction: row;
  padding: 2vw;
}
.video-container iframe {
  max-width: 100%;
  height: 300px !important;
}



.go-to-top, .go-home, .go-contact {
  position: fixed;
  width: 2.2rem;
  height: 2.2rem;
  background-color: #fff;
  color: #0077b5;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 1rem rgba(117, 117, 117, 0.6);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
}
.go-to-top-container {
  position: fixed;
  bottom: 3.1rem;
  right: 1.6rem;
  background-color: #0080ff;
  height: 9rem;
  width: 3rem;
  border-radius: 2rem;
}

.go-to-top {
  bottom: 3.5rem;
  right: 2rem;
}
.go-home {
  bottom: 9.5rem;
  right: 2rem;
}
.go-contact {
  bottom: 6.5rem;
  right: 2rem;
}
.go-to-top:hover, .go-home:hover, .go-contact:hover {
  background: #000;
  color: #fff;
}

/* Modal Styles */
.contact-modal {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.contact-content {
  background: #c5c5c54b;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  color: white;
  position: relative;
  z-index: 1000;
}
.close-contact {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.d-none {
  display: none;
}



.offcanvas-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #212529;
  overflow-y: auto;
  transition: left 0.3s ease-in-out;
  z-index: 1050;
}
.offcanvas-menu.show {
  left: 0;
}


@media (max-width: 991px) {
  body > .flex-grow-1, .main-content {
    
    padding: 0 !important;
    padding-top: 3rem !important;
    margin-left: 0.7rem !important;
    margin-right: 1rem !important;
  }
  .video-container {
    flex-direction: column;
    width: 90vw;
  }
  #sidebar {
    display: none !important;
    
  }
  .code-block {
    
    margin: 1.2rem auto;
    padding: 1rem;
    font-size: 0.9rem;
  
    justify-content: center;
    
    overflow-x: hidden;
  }
  
}
@media (max-width: 576px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  }
  .gallery-item img {
    height: 10rem;
  }
  .play-now-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}
@media (max-width: 400px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  }
  .gallery-item img {
    height: 8rem;
  }
  .play-now-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
#sidebar::before, #mobileMenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #00ffe7, #0f0, #f0f, #f03737);
  background-size: 300% 300%;
  filter: blur(20px);
  animation: animateGradient 15s ease infinite;
  z-index: -1;
  opacity: 0.25;
}
@keyframes animateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#sidebar::after, #mobileMenu::after {
  content: "✨";
  position: absolute;
  top: 10%;
  left: 10%;
  font-size: 1.2rem;
  animation: sparkleMove 10s linear infinite;
  opacity: 0.5;
  z-index: 0;
}

@keyframes sparkleMove {
  0% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(20px, 40px); opacity: 1; }
  100% { transform: translate(-10px, -10px); opacity: 0.5; }
}

.star-border-container {
  display: inline-block;
  padding: 1px 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.border-gradient-bottom {
  position: absolute;
  width: 300%;
  height: 50%;
  opacity: 0.7;
  bottom: -11px;
  right: -250%;
  border-radius: 50%;
  animation: star-movement-bottom linear infinite alternate;
  z-index: 0;
}

.border-gradient-top {
  position: absolute;
  opacity: 0.7;
  width: 300%;
  height: 50%;
  top: -10px;
  left: -250%;
  border-radius: 50%;
  animation: star-movement-top linear infinite alternate;
  z-index: 0;
}

.inner-content {
  position: relative;
  border: 1px solid #222;
  background: #000;
  color: white;
  font-size: 16px;
  text-align: center;
  padding: 16px 26px;
  border-radius: 20px;
  z-index: 1;
}

@keyframes star-movement-bottom {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(-100%, 0%);
    opacity: 0;
  }
}

@keyframes star-movement-top {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(100%, 0%);
    opacity: 0;
  }
}
.social-preheader {

  display: flex;
  justify-content: center;
  place-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color: #ccc;
 
}

.social-preheader .icon-wrapper {
  height: 1.5rem;
  width: 1.5rem;
  align-items: center;
  border-radius: 100%;
  color: #ccc;
  transition: color 0.3s ease;
}

.social-preheader .icon-wrapper:hover {
  color: #00ffff; /* Aqua hover */
  text-align: center;
}

.social-preheader .github:hover   { color: #6e5494; }
.social-preheader .linkedin:hover { color: #ffffff; }
.social-preheader .email:hover    { color: #ffffff; }
.social-preheader .itch:hover     { color: #ffffff; }

.label {
  font-family: 'Fira Code', monospace;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.outline{
  display: inline-block;
  font-family: 'Fira Code', monospace;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  background-color: transparent;
  border: 0.15rem solid #ffffff;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.outline:hover {
  background-color: #ffffff;
  color: rgba(0, 0, 0, 0.5);

  transform: translateY(-0.2rem);
}
.live-button {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 5;
}

.live-button:hover {
  color: #fff;
  background-color: #0056b3;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
  transform: translateY(-2px);
}

.live-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
  z-index: 0;
}

.live-button:hover::before {
  left: 120%;
}
.category-text {
  position: absolute;
  bottom: 0; /* Position it below the description */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: none;
  background-color: #f0f0f01a; /* A light grey background color */
  color: #ffffff; /* Darker text for contrast */
  padding: 5px 10px; /* Some padding for spacing */
  margin-top: 10px; /* Space it below the description */
  font-size: 0.9em; /* Make the font a little smaller */
  border-radius: 5px; /* Rounded corners */
  text-align: center; /* Center the text */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
 
}

.grid-item:hover .category-text {
  display: block;
  background-color: #007bff; /* A blue background on hover */
  color: #fff; /* White text on hover */
}

.bottom-items {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 
  margin-top: 0.5rem;
}

