html, body {
  width: 100%;
  height: 100%;
  font-family: 'Dongle', sans-serif;
  margin: 0;
  padding: 0;
  overflow: auto; /* Prevent scrolling */
}

/* Specific background for the About page */
body.site-pages {
	background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
	height: 100vh;
}

:root {
  --color-bg1: rgb(108, 0, 162);
  --color-bg2: rgb(0, 17, 82);
  --color1: 18, 113, 255;
  --color2: 221, 74, 255;
  --color3: 100, 220, 255;
  --color4: 200, 50, 50;
  --color5: 180, 180, 50;
  --circle-size: 80%;
  --blending: hard-light;
}

/* Menu Content */
.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent white for visibility */
  backdrop-filter: blur(15px); /* Adds frosted glass effect */
  color: white;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0; /* Increases height by adding vertical padding */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow for depth */
}

.menu-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu-bar li {
  margin: 0 20px; /* Adds more spacing between menu items */
}

.menu-bar a {
  color: black; /* Keeps text readable */
  text-decoration: none;
  font-size: 25px; /* Increases font size for better readability */
  line-height: 1.5; /* Adjusts line height for a balanced look */
}

.menu-bar a:hover {
  text-decoration: underline;
}


/* Main Content */
.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
}

.text-container h1 {
  font-size: 48px;
  font-weight: bold;
  margin: 0 0 10px;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
}

.text-container .subtitle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Background and Bubbles */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  overflow: hidden;
}

.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
}

.g1, .g2, .g3, .g4, .g5 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}

.g2 {
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
}

.g3 {
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
}

.g4 {
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}

.g5 {
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
}

/* Keyframes for animations */
@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}


/* Buttons Container */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px; /* Adds space between subtitle and buttons */
}

/* Individual Buttons */
.custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
}

/* Button Specific Styles */
.huggingface-button {
    background-color: rgba(255, 224, 130, 0.7); /* Semi-transparent yellow */
    color: #000; /* Black text */
}

.github-button {
    background-color: rgba(51, 51, 51, 0.7); /* Semi-transparent dark grey */
    color: #fff; /* White text */
}

.discord-button {
    background-color: rgba(88, 101, 242, 0.7); /* Semi-transparent Discord blue */
    color: #fff; /* White text */
}

/* Add Icons to Buttons */
.custom-button img.icon {
    width: 24px;
    height: 24px;
    margin-right: 8px; /* Space between icon and text */
}

/* Hover Effects */
.custom-button:hover {
    border-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white border */
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}


/* Buttons Container */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap to the next line on smaller screens */
}

/* Individual Buttons */
.custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
    flex: 1; /* Make buttons flexible in width */
    max-width: 200px; /* Set a reasonable maximum width */
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border don't affect size */
}

/* Button Specific Styles */
.huggingface-button {
    background-color: rgba(255, 224, 130, 0.7); /* Semi-transparent yellow */
    color: #000; /* Black text */
}

.github-button {
    background-color: rgba(51, 51, 51, 0.7); /* Semi-transparent dark grey */
    color: #fff; /* White text */
}

.discord-button {
    background-color: rgba(88, 101, 242, 0.7); /* Semi-transparent Discord blue */
    color: #fff; /* White text */
}

/* Add Icons to Buttons */
.custom-button img.icon {
    width: 24px;
    height: 24px;
    margin-right: 8px; /* Space between icon and text */
}

/* Hover Effects */
.custom-button:hover {
    border-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white border */
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .buttons-container {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Reduce space between buttons */
        align-items: center; /* Center the buttons */
    }

    .custom-button {
        width: 100%; /* Make buttons full-width */
        max-width: 300px; /* Limit the width to a reasonable size */
    }

    .custom-button img.icon {
        width: 20px; /* Adjust icon size for smaller screens */
        height: 20px;
    }

    .custom-button {
        font-size: 16px; /* Slightly smaller font for smaller screens */
        padding: 8px 16px; /* Adjust padding */
    }
}

/* Background About */
.view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-perspective: 400;
		  perspective: 400;
}

.plane {
  width: 120px;
  height: 120px;
  -webkit-transform-style: preserve-3d;
		  transform-style: preserve-3d;
}
.plane.main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  -webkit-transform: rotateX(60deg) rotateZ(-30deg);
		  transform: rotateX(60deg) rotateZ(-30deg);
  -webkit-animation: rotate 20s infinite linear;
		  animation: rotate 20s infinite linear;
}
.plane.main .circle {
  width: 120px;
  height: 120px;
  position: absolute;
  -webkit-transform-style: preserve-3d;
		  transform-style: preserve-3d;
  border-radius: 100%;
  box-sizing: border-box;
  box-shadow: 0 0 60px #ef00d7, inset 0 0 60px #00adef;
}
.plane.main .circle::before, .plane.main .circle::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 10%;
  height: 10%;
  border-radius: 100%;
  background: #00ef288f;
  box-sizing: border-box;
  box-shadow: 0 0 60px 2px #00adef;
}
.plane.main .circle::before {
  -webkit-transform: translateZ(-90px);
		  transform: translateZ(-90px);
}
.plane.main .circle::after {
  -webkit-transform: translateZ(90px);
		  transform: translateZ(90px);
}
.plane.main .circle:nth-child(1) {
  -webkit-transform: rotateZ(72deg) rotateX(63.435deg);
		  transform: rotateZ(72deg) rotateX(63.435deg);
}
.plane.main .circle:nth-child(2) {
  -webkit-transform: rotateZ(144deg) rotateX(63.435deg);
		  transform: rotateZ(144deg) rotateX(63.435deg);
}
.plane.main .circle:nth-child(3) {
  -webkit-transform: rotateZ(216deg) rotateX(63.435deg);
		  transform: rotateZ(216deg) rotateX(63.435deg);
}
.plane.main .circle:nth-child(4) {
  -webkit-transform: rotateZ(288deg) rotateX(63.435deg);
		  transform: rotateZ(288deg) rotateX(63.435deg);
}
.plane.main .circle:nth-child(5) {
  -webkit-transform: rotateZ(360deg) rotateX(63.435deg);
		  transform: rotateZ(360deg) rotateX(63.435deg);
}

@-webkit-keyframes rotate {
  0% {
	-webkit-transform: rotateX(0) rotateY(0) rotateZ(0);
			transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
	-webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
			transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

@keyframes rotate {
  0% {
	-webkit-transform: rotateX(0) rotateY(0) rotateZ(0);
			transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
	-webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
			transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

/* Specific styling for the 404 page */
body.not-found-page {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.progress-bar {
  width: 100%;
  background: #ffffff33;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar > div {
  height: 20px;
  width: 50%;
  background: #4caf50;
  transition: width 0.3s ease-in-out;
}

/* Style the paragraph */
.contact {
  font-size: 1em;
  margin-top: 20px;
}

/* Style the link */
.contact a {
  color: #4caf50; 
  text-decoration: none; 
  font-weight: bold; 
  cursor: pointer; 
}

/* Add hover effect */
.contact a:hover {
  text-decoration: underline; 
  color: #388e3c; 
}

.error404page {
  width: 400px;
  height: 800px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.5; /* Optional for a translucent effect */
}

.body404,
.head404,
.eyes404,
.leftarm404,
.rightarm404,
.chair404,
.leftshoe404,
.rightshoe404,
.legs404,
.laptop404 {
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/15979/404-character-new.png)
      0 0 no-repeat;
  width: 200px;
  height: 200px;
}

.newcharacter404,
.torso404,
.body404,
.head404,
.eyes404,
.leftarm404,
.rightarm404,
.chair404,
.leftshoe404,
.rightshoe404,
.legs404,
.laptop404 {
  background-size: 750px;
  position: absolute;
  display: block;
}

.newcharacter404 {
  width: 400px;
  height: 800px;
  left: 50%;
  top: 20px;
  margin-left: -200px;
}

.torso404 {
  position: absolute;
  display: block;
  top: 138px;
  left: 0px;
  width: 389px;
  height: 252px;
  animation: sway 20s ease infinite;
  transform-origin: 50% 100%;
}

.body404 {
  position: absolute;
  display: block;
  top: 0px;
  left: 0px;
  width: 389px;
  height: 253px;
}

.head404 {
  position: absolute;
  top: -148px;
  left: 106px;
  width: 160px;
  height: 194px;
  background-position: 0px -265px;
  transform-origin: 50% 85%;
  animation: headTilt 20s ease infinite;
}

.eyes404 {
  position: absolute;
  top: 92px;
  left: 34px;
  width: 73px;
  height: 18px;
  background-position: -162px -350px;
  animation: blink404 10s steps(1) infinite, pan 10s ease-in-out infinite;
}

.leftarm404 {
  position: absolute;
  top: 159px;
  left: 0;
  width: 165px;
  height: 73px;
  background-position: -265px -341px;
  transform-origin: 9% 35%;
  animation: typeLeft 0.4s linear infinite;
}

.rightarm404 {
  position: absolute;
  top: 148px;
  left: 231px;
  width: 157px;
  height: 91px;
  background-position: -442px -323px;
  transform-origin: 90% 25%;
  animation: typeLeft 0.4s linear infinite;
}

.chair404 {
  position: absolute;
  top: 430px;
  left: 55px;
  width: 260px;
  height: 365px;
  background-position: -12px -697px;
}

.legs404 {
  position: absolute;
  top: 378px;
  left: 4px;
  width: 370px;
  height: 247px;
  background-position: -381px -443px;
}

.leftshoe404 {
  position: absolute;
  top: 591px;
  left: 54px;
  width: 130px;
  height: 92px;
  background-position: -315px -749px;
}

.rightshoe404 {
  position: absolute;
  top: 594px;
  left: 187px;
  width: 135px;
  height: 81px;
  background-position: -453px -749px;
  transform-origin: 35% 12%;
  animation: tapRight 1s linear infinite;
}

.laptop404 {
  position: absolute;
  top: 186px;
  left: 9px;
  width: 365px;
  height: 216px;
  background-position: -2px -466px;
  transform-origin: 50% 100%;
  animation: tapWobble 0.4s linear infinite;
}

@keyframes sway {
  0% {
      transform: rotateZ(0deg);
  }
  20% {
      transform: rotateZ(0deg);
  }
  25% {
      transform: rotateZ(4deg);
  }
  45% {
      transform: rotateZ(4deg);
  }
  50% {
      transform: rotateZ(0deg);
  }
  70% {
      transform: rotateZ(0deg);
  }
  75% {
      transform: rotateZ(-4deg);
  }
  90% {
      transform: rotateZ(-4deg);
  }
  100% {
      transform: rotateZ(0deg);
  }
}

@keyframes headTilt {
  0% {
      transform: rotateZ(0deg);
  }
  20% {
      transform: rotateZ(0deg);
  }
  25% {
      transform: rotateZ(-4deg);
  }
  35% {
      transform: rotateZ(-4deg);
  }
  38% {
      transform: rotateZ(2deg);
  }
  42% {
      transform: rotateZ(2deg);
  }
  45% {
      transform: rotateZ(-4deg);
  }
  50% {
      transform: rotateZ(0deg);
  }
  70% {
      transform: rotateZ(0deg);
  }
  82% {
      transform: rotateZ(0deg);
  }
  85% {
      transform: rotateZ(4deg);
  }
  90% {
      transform: rotateZ(4deg);
  }
  100% {
      transform: rotateZ(0deg);
  }
}

@keyframes typeLeft {
  0% {
      transform: rotateZ(0deg);
  }
  25% {
      transform: rotateZ(7deg);
  }
  75% {
      transform: rotateZ(-6deg);
  }
  100% {
      transform: rotateZ(0deg);
  }
}

@keyframes typeRight {
  0% {
      transform: rotateZ(0deg);
  }
  25% {
      transform: rotateZ(-6deg);
  }
  75% {
      transform: rotateZ(7deg);
  }
  100% {
      transform: rotateZ(0deg);
  }
}

@keyframes tapWobble {
  0% {
      transform: rotateZ(-0.2deg);
  }
  50% {
      transform: rotateZ(0.2deg);
  }
  100% {
      transform: rotateZ(-0.2deg);
  }
}

@keyframes tapRight {
  0% {
      transform: rotateZ(0deg);
  }
  90% {
      transform: rotateZ(-6deg);
  }
  100% {
      transform: rotateZ(0deg);
  }
}

@keyframes blink404 {
  0% {
      background-position: -162px -350px;
  }
  94% {
      background-position: -162px -350px;
  }
  98% {
      background-position: -162px -368px;
  }
  100% {
      background-position: -162px -350px;
  }
}

@keyframes pan {
  0% {
      transform: translateX(-2px);
  }
  49% {
      transform: translateX(-2px);
  }
  50% {
      transform: translateX(2px);
  }
  99% {
      transform: translateX(2px);
  }
  100% {
      transform: translateX(-2px);
  }
}
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
