header, footer {
  background-color: #3f3f3f;
  padding: 15px 30px;
  border-bottom: 1px solid #444;
  text-align: center; /* Center content inside header and footer */
}

header h1 {
  color: #ff9900;
  margin: 0 auto;
}

nav {
  text-align: center; /* Center all links inside nav */
}

nav a {
  color: #000000;
  margin: 0 20px; /* Equal spacing left and right */
  text-decoration: none;
  display: inline-block; /* Ensures spacing works properly */
}

nav a:hover {
  color: #ff0000;
}

.nav-button,
.login-container button,
.register-container button,
.new-topic button {
  background: linear-gradient(to right, #ff9900, #ffb84d);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-button:hover,
.login-container button:hover,
.register-container button:hover,
.new-topic button:hover {
  transform: scale(1.05);
  background-color: #ff0000;
}


.advent-button img {
  width: 25px;   /* change to any size you want */
  height: 25px;  /* or use auto to keep proportions */
}

nav a:hover {
  color: #ff0000;
}


    body {
      background: #414141;
      font-family: "Courier New", monospace;
      color: #222;
      padding-bottom: 40px;
    }
    .wrap {
      border: 3px solid #000;
      background: #fff;
      max-width: 750px;
      margin: 40px auto;
      padding: 20px;
    }
    h1 {
      text-align: center;
      border-bottom: 2px dashed #000;
      padding-bottom: 10px;
      margin-bottom: 25px;
    }
    .info {
      font-size: 15px;
      line-height: 1.4;
    }
    .download-box {
      border: 2px solid #000;
      padding: 15px;
      margin-top: 25px;
      background: #f4f4f4;
    }
    a {
      color: #0000aa;
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    pre {
      background: #f0f0f0;
      border: 1px solid #000;
      padding: 10px;
      overflow-x: auto;
      margin-top: 20px;
    }
    .back {
      margin-top: 30px;
      text-align: center;
    }
    .crt {
      position: relative;
      width: 100%;
      max-width: 100%;
      border: 4px solid #000;
      padding: 10px;
      background: #111;
      box-shadow: 0 0 25px #0f0 inset, 0 0 12px #0f0;
    }
    .crt img {
      width: 100%;
      display: block;
      filter: contrast(1.2) brightness(0.9) saturate(1.3);
      border: 2px solid #333;
    }


 /* From Uiverse.io by Madflows */ 
.button {
  position: relative;
  overflow: hidden;
  height: 3rem;
  padding: 0 2rem;
  border-radius: 1.5rem;
  background: #3d3a4e;
  background-size: 400%;
  color: #fff;
  border: none;
  cursor: pointer;
}

.button:hover::before {
  transform: scaleX(1);
}

.button-content {
  position: relative;
  z-index: 1;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(
    82.3deg,
    rgba(150, 93, 233, 1) 10.8%,
    rgba(99, 88, 238, 1) 94.3%
  );
  transition: all 0.475s;
}



/* From Uiverse.io by Madflows */ 
.button {
  position: relative;
  overflow: hidden;
  height: 3rem;
  padding: 0 2rem;
  border-radius: 1.5rem;
  background: #3d3a4e;
  background-size: 400%;
  color: #fff;
  border: none;
  cursor: pointer;
}

.button:hover::before {
  transform: scaleX(1);
}

.button-content {
  position: relative;
  z-index: 1;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(
    82.3deg,
    rgba(150, 93, 233, 1) 10.8%,
    rgba(99, 88, 238, 1) 94.3%
  );
  transition: all 0.475s;
}






/* From Uiverse.io by nima-mollazadeh */ 
#down-button {
  position: relative;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
  padding: 14px 25px;
  border-radius: 10px;
  font-size: 1.25em;
  cursor: pointer;
}

#down-button span {
  position: relative;
  z-index: 1;
}

#down-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #ffffff;
  border-radius: 9px;
  transition: 0.5s;
}

#down-button:hover::before {
  opacity: 0.7;
}

#down-button::after {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
  border-radius: 9px;
  transition: 0.5s;
  opacity: 0;
  filter: blur(20px);
}

#down-button:hover:after {
  opacity: 1;
}
