body, html {
  background-color: #121212;
  color: lightgray;
  font-family: "Cutive Mono", monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  margin: 0;
  font-weight: 400;
}


.header-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.footer{
  color: #414040;
  font-size: 12px;


}

nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Ensure positioning context for absolute children */
}

.navbar-nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex; /* Keep the list inline on larger screens */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-nav li {
  margin: 0 15px;
}

.navbar-nav li a {
  text-decoration: none;
  font-weight: 500;
  color: #ad152e;
  transition: color 0.3s ease;
}

.navbar-nav li a:hover {
  color: #bb86fc;
}

.navbar-nav li  .active{
  color: #bb86fc ;
}

.navbar-toggler {
  display: none; /* Hide the toggle button by default */
  background-color: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.navbar-toggler-icon {
  width: 30px;
  height: 3px;
  background-color: #ffffff;
  display: block;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.page{
  width:80%;
  margin-top: 40px;
}

.list-group-item {
  background-color: transparent !important;
  border: none; /* Optional: Remove border if you want a completely clean look */
}

/* Optional: Remove hover background color */
.list-group-item:hover {
  background-color: transparent !important;
}
.grid-item { width: 20%; }

.image-text{
color:#ad152e;
position: fixed;

right:100px;

}

.image-container {
  position: relative; /* Add this to create a positioning context */

  max-width: 80%;

  justify-content: center;
  align-items: center;
  margin-top: 50px;
  display: inline-block
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.text-overlay {
  position: absolute; /* Position relative to .image-container */
  top: 5px; /* Distance from the top of the container */
  right: -5%; /* Moves text slightly outside the image width */
  color: #ad152e; /* Text color */
  font-size: 24px; /* Font size */
  font-weight: bold; /* Makes text bold */
  font-family: 'Arial', sans-serif; /* Font family */
  white-space: nowrap; /* Prevents text from wrapping */
  z-index: 400;

}

/* Animation for fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@media (max-width: 768px) {
  body, html {
    justify-content: flex-start;
  }

  .header-container {
    justify-content: space-between; /* Space between the title and the toggler */
    padding: 10px 20px; /* Add some padding */
  }
  .header-container h1{
    margin-right: 15px;
  }
  nav {
    justify-content: flex-start; /* Align nav items to the top */
  }

  .navbar-nav {
    display: none; /* Hide the navbar by default on smaller screens */
    flex-direction: column; /* Stack items vertically on smaller screens */
    background-color: #1f1f1f;

    margin-top: 60px; /* Adjust top position to be below the toggler */
    right: 0;
    left: 0;
    padding: 0px;
    margin:0px;

    border-radius: 5px;
    width: 100%; /* Full width */
    justify-content: flex-start; /* Align items to the top */
    align-items: center; /* Center the nav items */

  }
 

  .navbar-nav li {
    margin: 10px 0;
  }

  .navbar-toggler {
    display: block; /* Show the toggle button on smaller screens */
    position: relative;
    right: 0; /* Align right within the header container */
  }

  .navbar-nav.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
  }

  .image-container {
    max-width: 90%;
    display: block;
  }

  .navbar-toggler.collapsed .navbar-toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar-toggler.collapsed .navbar-toggler-icon:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggler.collapsed .navbar-toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}