body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: transparent; /* Make the background transparent for Vanta.js */
  text-wrap: break-word;
  overflow-wrap: break-word;
  height: 100vh; /* Ensure the body takes the full viewport height */
}

header {
  background-color: #333;
  color: #fff;
  padding: 1px;
  text-align: center;
  border-radius: 15px; /* Adjust this value for more or less rounding */
  margin: 10px; /* Adds space around the header */
  overflow: hidden; /* Ensures child elements follow the border-radius */
}
.navbar-brand {
  margin-left: 30px; /* Adjust this value for slight movement */
}


nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline;
  margin-right: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}

#form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Space between input and button */
  margin: 20px auto;
  flex-wrap: wrap; /* Ensures responsiveness */
}

.input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #292524;
  padding: 5px;
  border-radius: 20px;
  height: 45px;
}

.input {
  width: 200px; /* Adjusted width */
  height: 100%;
  border: none;
  outline: none;
  padding-left: 15px;
  background-color: #292524;
  color: white;
  font-size: 1em;
}

.Subscribe-btn {
  height: 45px;
  width: 100px;
  border: none;
  border-radius: 15px;
  color: rgb(0, 0, 0);
  cursor: pointer;
  background-color: #ffffff;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

/* Ensure responsiveness */
@media only screen and (max-width: 600px) {
  #form {
      flex-direction: column;
  }

  .input {
      width: 100%;
  }

  .Subscribe-btn {
      width: 100%;
  }
}

#loading p {
  font-weight: bold;
  font-size: 38px;
  color: #333;
}

#container {
  display: none;
  text-align: center;
  margin: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
}

#thumb img {
  width: 100%;
  height: 300px;
}

.dlbtns {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  text-align: center;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  width: 150px; /* Fixed width */
  transition: background-color 0.3s;
}
#content h2, 
#content p {
  color: #ffffff; /* White text for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Shadow for better visibility */
}

#content {
  background-color: rgba(0, 0, 0, 0.5); /* Optional: Slightly dark background */
  padding: 15px;
  border-radius: 10px; /* Smooth edges */
  display: inline-block;
}

/* Ensure the loading container takes up space and pushes content down */
#loading {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px; /* Add margin to push content down */
  display: none; /* Initially hidden */
}

/* Ensure the loader itself is centered within the #loading container */
.loader {
  position: relative;
  width: 2.5em;
  height: 2.5em;
  transform: rotate(165deg);
  margin: 0 auto; /* Center the loader horizontally */
}

.loader:before,
.loader:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 0.25em;
  transform: translate(-50%, -50%);
}

.loader:before {
  animation: before8 2s infinite;
}

.loader:after {
  animation: after6 2s infinite;
}

@keyframes before8 {
  0% {
      width: 0.5em;
      box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
  }

  35% {
      width: 2.5em;
      box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
  }

  70% {
      width: 0.5em;
      box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
  }

  100% {
      box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
  }
}

@keyframes after6 {
  0% {
      height: 0.5em;
      box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
  }

  35% {
      height: 2.5em;
      box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
  }

  70% {
      height: 0.5em;
      box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
  }

  100% {
      box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
  }
}

/* Responsive styles for smaller screens */
@media only screen and (max-width: 600px) {
  #inputUrl {
      width: 100%;
  }

  nav {
      display: block;
      text-align: center;
  }

  nav li {
      display: block;
      margin: 10px 0;
  }
}

footer {
  position: fixed;
  bottom: 0;
  width: 100vw;
  background-color: #333; /* Ensure background color is applied */
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 15px 15px 0 0; /* Rounded top corners */
  overflow: hidden;
}

#typed-text {
  font-weight: bold;
  font-size: 20px;
  color: #ff3f81; /* Adjust color if needed */
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  border-right: 3px solid white; /* Cursor effect */
  padding-right: 5px;
 animation: blinkCursor 0.8s infinite;
}

/* Cursor blinking effect */
@keyframes blinkCursor {
  50% {
    border-right-color: transparent;
  }
}

/* Fade-in effect for smooth typing */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
