@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

nav {
  background-color: #333;
  color: white;
  padding: 10px 0;
}

@media screen and (max-width: 768px) {
  nav {
    display: none !important;
  }

  .nav-links {
    line-height: 1.5;
  }
  .nav-content {
    padding: 0 20px;
  }

  #home-nav-container {
    display: none;
    padding: 0;
}
}

.nav-content {
  display: flex;
  justify-content: end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}


.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4c5760;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.tts-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Poppins', sans-serif;
  }
  
  .tts-input {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    min-height: 80px;
    resize: vertical;
  }
  
  .tts-input:focus {
    border-color: #4c5760;
  }
  
  .tts-select {
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    background-color: white;
    transition: border-color 0.3s;
  }
  
  .tts-select:focus {
    border-color: #4c5760;
  }
  
  .tts-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }
  
  .tts-button {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    background-color: #4c5760;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
  }
  
  .tts-button:hover {
    background-color: #3b434a;
  }


  .result-container {
    display: none;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto;
  }
  
  .tts-audio {
    width: 100%;
    margin-bottom: 15px;
  }
  
  
  .download-btn {
    text-decoration: none;
    width: 90%;
  }

/* Responsive styles */
@media screen and (max-width: 768px) {

  body {
    padding-bottom: 50px;
  }
  .tts-container {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
  }

  .tts-input,
  .tts-select {
    padding: 10px;
    font-size: 14px;
  }

  .tts-button {
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
  }

  .result-container {
    max-width: 90%;
    padding: 15px;
  }

  .tts-audio {
    width: 100%;
  }

  .download-btn {
    width: 100%;
    display: block;
    margin: 10px 0;
  }
}

@media screen and (max-width: 480px) {
  .tts-container {
    margin: 10px auto;
    padding: 15px;
  }

  .tts-label {
    font-size: 14px;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
  }
  .download-btn {
    width: 90%;
  }
}




.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background-color: #ffffff;
  border-top: 1px solid #ddd;
  /* height: 60px; */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 900;
}

.bottom-menu .menu-item {
  text-align: center;
  flex: 1;
}

.bottom-menu .menu-item i {
  font-size: 20px;
  color: #666;
}

.bottom-menu .menu-item span {
  display: block;
  font-size: 12px;
  color: #666;

}

.bottom-menu {
  padding: 10px 20px;
}
.bottom-menu .menu-item {
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.bottom-menu .menu-item.active {
  background-color: #f6f4ff;
}
.bottom-menu .menu-item .b-text {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
}
.bottom-menu .menu-item.active .b-text {
  color: #6447ed;
}
.bottom-menu .menu-item.active .b-image path {
  fill: #6447ed;
}
.bottom-menu .b-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) {
  .bottom-menu {
      display: none;
  }
}