/* General Styles */
body {
    margin: 0;
    font-family: "Arial", sans-serif;
    color: #fff;
    background-color: #000;
    min-height: 100vh;
    width: 100%;
    padding-top: 80px; /* Adjust this value based on your header's height */
  }
  
  /* Header Styles */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 10px 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #061f20;
    margin-top: 0; /* Remove any margin that might create a gap */
  }
  
  .logo img {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .nav-container {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav-links li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ff0077;
    transition: width 0.3s ease;
  }
  
  .nav-links li a:hover::after {
    width: 100%;
  }
  
  /* Hamburger Menu */
  .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
  }
  
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  
  /* Mobile Navigation */
  @media (max-width: 768px) {
    .header {
      flex-direction: column;
      padding: 20px 5px 10px;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background-color: #061f20;
      margin-top: 0; /* Remove any margin that might create a gap */
    }

    body {
      padding-top: 100px; /* Adjust based on header height */
    }

    .logo img {
      max-width: 180px;
      margin-bottom: 15px;
    }

    .hamburger {
      display: block;
      position: absolute;
      top: 20px;
      right: 20px;
    }

    .nav-container {
      width: 100%;
    }

    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      flex-direction: column;
      background: #000;
      padding: 20px 0;
      z-index: 1000;
      text-align: center;
    }

    .nav-links.active {
      display: flex;
    }

    .nav-links li {
      margin: 10px 0;
    }

    .nav-links li a {
      font-size: 18px !important;
      padding: 10px 20px;
      display: block;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(8px, 6px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -5px);
    }
  }
  
  /* Hero Section Styles */
  .hero {
    text-align: center;
    background: linear-gradient(135deg, #061f20, #061f20);
    padding: 50px 0px 20px 0px;
    position: relative;
    margin-bottom: 20px;
    min-height: 60vh;
    box-sizing: border-box;
    width: 100%;
    margin-top: -1px; /* Slightly negative margin to remove any potential gap */
  }
  
  .hero h2 {
    font-size: 25px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
  }
  
  .hero p {
    font-size: 20px;
    margin-bottom: 40px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
  }
  
  /* Input Container Styles */
  .input-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  #input-text {
    width: 60%;
    max-width: 1000px;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    resize: none;
    height: 120px;
    box-sizing: border-box;
  }
  
  #input-text:focus {
    outline: none;
    border-color: #db253d;
    box-shadow: 0 4px 12px rgba(214, 16, 108, 0.728);
  }

  #input-text::-webkit-scrollbar {
    width: 16px;
  }
  
  #input-text::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #1b1a1a;
    border: 1px solid #cacaca;
  }
  
  #input-text::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: content-box;
    background-color: #d55959;
  }
  
  .button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  #clear-button {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    font-size: 20px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    order: 1;
  }
  
  #clear-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  /*Get IPA button*/
  #search-button {
    background-color: #ff0077;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 2;
  }
  
  #search-button:hover {
    background-color: #ff1a8c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 0, 119, 0.3);
  }
  
  #search-button:active {
    transform: translateY(0);
  }
  
  /* Ensure proper layout on mobile */
  @media (max-width: 768px) {
    .input-container {
      flex-direction: column;
      align-items: center;
      padding: 0 20px;
    }
  
    #input-text {
      width: 100%;
    }
  
    .button-wrapper {
      width: 100%;
      flex-direction: row;
      justify-content: center;
      gap: 15px;
    }
  
    #clear-button {
      order: 1;
    }
  
    #search-button {
      order: 2;
    }
  }
  
  /* Output and Ads Section */
  .output-and-ads {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  .output-section {
    flex: 1;
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .transcription-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    display: none;
    width: 100%;
  }
  
  #output-container.active + .transcription-title {
    display: block;
  }
  
  #output-container {
    display: none;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    color: #000;
    width: 22cm;
    max-height: 25cm;
    margin: 20px 20px 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  #output-text {
    max-height: calc(20cm - 120px);
    overflow-y: auto;
    padding: 20px 0;
    position: relative;
    white-space: pre-wrap;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #1f1f1f;
    font-weight: 800;
    line-height: 1.4;
    margin-top: 30px;
    width: 21cm;
  }
  
  #output-text::-webkit-scrollbar {
    width: 16px;
  }
  
  #output-text::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #e7e7e7;
    border: 1px solid #cacaca;
  }
  
  #output-text::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: content-box;
    background-color: #d55959;
  }
  
  .output-header {
    position: sticky;
    top: 0;
    background-color: #2d2d2d;
    z-index: 10;
    padding: 10px 0;
    border-radius: 8px;
  }
  
  @media (max-width: 768px) {
    .output-section {
      width: 95%;
    }
  
    .transcription-title {
      font-size: 20px;
      margin-bottom: 15px;
    }
  
    #output-container {
      padding: 15px;
      margin: 15px auto 40px;
    }
  
    #output-text {
      font-size: 14px;
    }
  }
  
  .advertisement-left,
  .advertisement-right {
    width: 120px;
    max-height: 1200px;
  }
  
  @media (max-width: 1024px) {
    .advertisement-left,
    .advertisement-right {
      display: none;
    }
  
    #output-container {
      width: 90%;
      margin: 0 auto;
    }
  }
  
  /* Button Groups in Output */
  .button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }
  
  @media (max-width: 480px) {
    .button-container {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      gap: 8px;
      width: 100%;
      position: relative;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: #888 #f1f1f1;
    }
  
    .button-container::-webkit-scrollbar {
      height: 16px;
      width: 16px;
    }
  
    .button-container::-webkit-scrollbar-track {
      border-radius: 8px;
      background-color: #e7e7e7;
      border: 1px solid #d55959;
    }
  
    .button-container::-webkit-scrollbar-thumb {
      border-radius: 8px;
      border: 3px solid transparent;
      background-clip: content-box;
      background-color: #d55959;
    }
  
    .button-group {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: flex-start;
      align-items: center;
      gap: 8px;
      min-width: max-content;
    }
  
    .toggle-container {
      position: static;
      flex-shrink: 0;
    }
  }
  
  /* Features Section Styles */
  .features {
    background-color: #000000;
    padding: 20px 20px;
    height: 600px;
    text-align: center;
    width: 100%;
    position: relative;
    flex-grow: 1;
  }
  
  .features h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #cccccc;
    font-weight: normal;
  }
  
  /* Copy and PDF Button Styles */
  .button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  /* Copy and PDF Button Styles */
  .button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  #copy-button,
  #pdf-button,
  #copy-highlighted-button,
  #download-highlighted-button {
    background-color: rgba(255, 0, 119, 0);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 20px;
    width: 40px;
    transition: all 0.3s ease;
  }
  
  #copy-button:hover,
  #pdf-button:hover,
  #copy-highlighted-button:hover,
  #download-highlighted-button:hover {
    background-color: #d10069;
    transform: translateY(-2px);
  }
  
  .text-column {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    color: #ffffff;
    font-size: 14px;
  }
  
  .text-column span {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
  }
  
  .color-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 5px;
  }
  
  /* Back to top button */
  .top {
    --offset: 100px;
    position: sticky;
    bottom: 30px;
    left: calc(100% - 70px);
    margin-right: 20px;
    place-self: end;
    margin-top: calc(100vh + var(--offset));
    width: 45px;
    height: 45px;
    background: #ff0077;
    border-radius: 50%;
    font-size: 0;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 119, 0.3);
  }
  
  .top:before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(-45deg) translateY(2px);
  }
  
  .top:hover {
    background: #ff1a8c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 119, 0.4);
  }
  
  .top:hover::after {
    content: "Back to top";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .top:hover::after {
    opacity: 1;
  }
  
  /* remove the below if you don't want smooth scrolling */
  html,
  body {
    scroll-behavior: smooth;
  }
  
  /* Footer  Styling Section */
  @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
  
  body {
    line-height: 1.5;
    font-family: "Poppins", sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .container {
    max-width: none;
    margin: auto;
    width: 100%;
  }
  
  .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  ul {
    list-style: none;
  }
  
  .footer {
    background-color: #ffffff !important;
    padding: 40px 0;
    color: #212529 !important;
  }
  
  .footer-col {
    width: 25%;
    padding: 0 15px;
  }
  
  .footer-col h4 {
    font-size: 18px;
    color: #212529;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
  }
  
  .footer-col h4::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #e91e63;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
  }
  
  .footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
  }
  
  .footer-col ul li a {
    font-size: 16px;
    text-transform: capitalize;
    color: #212529;
    text-decoration: none;
    font-weight: 300;
  }
  
  .footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #212529;
    transition: all 0.5s ease;
  }
  
  .footer-col ul li a:hover {
    color: #494242;
    transform: translateX(5px);
  }
  
  .footer-col .social-links a:hover {
    color: #ffffff;
    background-color: #212529;
  }
  
  /* Responsive */
  @media (max-width: 767px) {
    .footer-col {
      width: 50%;
      margin-bottom: 30px;
    }
  }
  
  @media (max-width: 574px) {
    .footer-col {
      width: 50%;
    }
  }
  
  /* Custom Checkbox Styles */
  .checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
  }
  
  .checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .checkbox-container:hover input ~ .checkmark {
    opacity: 0.8;
    transform: scale(1.05);
  }
  
  .checkbox-container input:checked ~ .checkmark {
    background-color: currentColor;
  }
  
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  .checkbox-container input:checked ~ .checkmark:after {
    display: block;
  }
  
  .checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  .checkbox-container .checkbox-label {
    color: #f3f0eb;
    margin-left: 5px;
    font-size: 13px;
    font-weight: 500;
  }
  
  /* Mobile Styles */
  @media (max-width: 480px) {
    .checkbox-container {
      padding-left: 22px;
      margin: 0 3px;
      font-size: 13px;
    }
  
    .checkmark {
      height: 16px;
      width: 16px;
    }
  
    .checkbox-container .checkmark:after {
      left: 4px;
      top: 1px;
      width: 3px;
      height: 8px;
    }
  
    .checkbox-label {
      font-size: 12px;
    }
  }
  
  .phrasal-verb-checkbox input[type="checkbox"] {
    margin-right: 10px;
  }
  
  .checkbox-container
    input[type="checkbox"]
    + .checkmark[style*="rgb(255, 165, 0)"] {
    border-color: rgb(4, 4, 4) !important;
  }
  
  /* Toggle Switch Styles */
  .toggle-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0 12px;
    cursor: pointer;
  }
  
  .toggle-container input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: rgba(
      67,
      198,
      172,
      0.3
    );
    border-radius: 20px;
    transition: 0.4s;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ff0077;
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .toggle-container input:checked + .toggle-slider {
    background-color: #4ca2cd;
  }
  
  .toggle-container input:checked + .toggle-slider:before {
    transform: translateX(20px);
  }
  
  .toggle-container .toggle-label {
    color: #f3f0eb;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
  }
  
  
  .highlighted-verb {
    border: 1px solid #007bff;
    padding: 2px 4px;
    border-radius: 4px;
    background-color: rgba(
      0,
      123,
      255,
      0.1
    );
  }
  
  /* Phrasal verb toggle javascript styles*/
  .phrasal-verb-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .phrasal-verb-checkbox input[type="checkbox"] {
    margin-right: 10px;
    accent-color: black;
  }
  
  .phrasal-verb-checkbox .checkmark {
    border-color: black !important;
  }
  
  /* End Phrasal verb toggle */
  
  /* Mobile Styles */
  @media (max-width: 480px) {
    .toggle-container {
      margin: 0 5px;
    }
  
    .toggle-slider {
      width: 36px;
      height: 18px;
    }
  
    .toggle-slider:before {
      height: 14px;
      width: 14px;
    }
  
    .toggle-label {
      font-size: 13px;
    }
  }
  