@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Pacifico&display=swap");
:root {
  --bg-color: #000;
  --text-color: #e0e0e0;
  --accent-color: #4a00e0;
  --secondary-color: #8e2de2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.navbar {
  background-color: transparent;
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  font-family: "Pacifico", cursive;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-color);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  backdrop-filter: blur(50px);
  background: linear-gradient(135deg, var(--bg-color), var(--secondary-color));
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Cursive", sans-serif;
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--secondary-color);
}

.generator {
  padding: 80px 0;
}

.generator h2 {
  text-align: center;
  margin-bottom: 40px;
  font-family: "Montserrat", serif;
}

.generator-container {
  max-width: 600px;
  margin: 0 auto;
}

#inputText {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-color);
  border-radius: 5px;
  margin-bottom: 20px;
  outline: none;
}

#fontDropdown {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);

  color: var(--text-color);
  border-radius: 5px;
  max-height: 300px;

  overflow-y: auto;
}

.font-option {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.font-option:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.info {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.info h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-family: "Montserrat", sans-serif;
}
h2 .logoAbout {
  font-family: "Pacifico", cursive;
  color: var(--accent-color);
  text-decoration: underline;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.info-item {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

.info-item h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-family: "Montserrat", serif;
}

.info-item p {
  font-size: 1.1rem;
}

/* Updated Footer styles */
.footer {
  background-color: var(--bg-color);
  padding: 60px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
  font-family: "Montserrat", sans-serif;
}
.footer .footLogo {
  font-family: "Pacifico", cursive;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.social-links a {
  color: var(--text-color);
  margin-right: 15px;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

#fontDropdown:empty {
  display: none;
}
.tooltip {
  position: fixed;
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip.show {
  opacity: 1;
}
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--accent-color) transparent transparent transparent;
}
.input-container {
  position: relative;
  margin-bottom: 20px;
}

.tip {
  position: absolute;
  background-color: rgba(74, 0, 224, 0.9);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 8px solid transparent;
  border-top-color: rgba(74, 0, 224, 0.9);
  transform: translateX(-40%);
}

.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

#inputText {
  padding: 10px 30px 10px 10px; /* Added right padding for the clear button */
  font-size: 1rem;
}

#clearButton {
  position: absolute;
  right: 10px;
  top: 30%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ddd;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

#clearButton:hover {
  color: var(--accent-color);
}

/* Responsive styles */
@media (min-width: 768px) {
  .generator-container {
    max-width: 500px;
  }
}

@media (min-width: 1024px) {
  .generator-container {
    max-width: 600px;
  }
}

@media (min-width: 1200px) {
  .generator-container {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .tip {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .tip {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-color);
    width: 100%;

    text-align: left;
    padding: 1.8rem;
    transition: left 0.3s;
  }

  .nav-links.active {
    left: 0;
  }
  .navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
    transform: translateX(1rem);
  }
  .navbar.active {
    background-color: var(--bg-color);
  }
  .logo {
    transform: translateX(-1rem);
  }
  .logo img {
    width: 70%;
    vertical-align: middle;
  }
  .footer-section h3 img {
    width: 50%;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .hamburger.active .bar {
    transform: translateX(1rem);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
