@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

body {
    background: url(/style/bg.png) 0% 0% / 300px 300px repeat;
    margin: 0;
    display: flex;
    justify-content: center;
    height: 100vh; /* Ensure the body takes up the full viewport height */
    background-size: 400px 400px; /* Make the background larger than the viewport */
    animation: moveBackground 10s infinite alternate linear; /* Add animation */
}

@keyframes moveBackground {
    from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 25px;
  margin: 0;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 23px;
  margin: 0; 
}

h3 {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 10px 0;
}

.links {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
}

a:hover {
  color: #9094ff;
}

p {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 20px;
}

small {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 15px;
}

.main {
  border-radius: 5px;
  display: flex;
  flex-direction: row;
  max-width: 2000px;
  width: 100%;
  margin-top: 20px;

  /* Prevent horizontal overflow by wrapping */
  flex-wrap: wrap;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  flex-direction: column;
  border-radius: 20px 0px 0px 20px;
  background: #292F50;
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  width: 250px;
  padding: 20px;
  box-sizing: border-box;
}

.navbar a.active {
  font-weight: bold;
}


.footer {
  font-size: 13px;
  margin-top: auto; /* pushes it to the bottom of navbar */
  opacity: 0.6;
}

.content {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 13px;
  flex: 1;
  padding: 20px;
  border-radius: 0px 20px 20px 0px;
  background: #1C2141;
  box-sizing: border-box;
}

#content {
  width: 100%;
}

.container {
  width: 100%;
  max-width: 2000px;
}

.footer-links {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
}

.footer-links:hover {
  color: #9094ff;
}

.menu-button {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #292F50;
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease;
}

/* Active button color */
.menu-button.active {
  background: #9094ff;
}



@media (max-width: 768px) {
  .navbar .links br {
    display: none;
  }
  .navbar h1, .navbar h3 {
    margin-top: 8px;
    margin-bottom: 8px;
    line-height: 1.1;
  }
  .navbar {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: #292F50;
    border-radius: 20px;
    padding: 5px;
    z-index: 999;
    text-align: center;
    box-sizing: border-box;
  }

  .navbar.show {
    display: flex;
    flex-direction: column;
  }

  .menu-button {
    display: block;
  }

  .main {
    flex-direction: column;
    margin: 0 10px;
  }

  .content {
    border-radius: 20px;
    padding: 15px;
  }

  .links a {
    display: block;
    margin: 10px 0;
  }
}