
.word-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 82vh; /* Adjust height to maintain balance */
    margin-top: 0; /* Remove top margin */
    margin-bottom: 0; /* Remove bottom margin */
    padding: 1vh 20px; /* Add padding at the top to move the form slightly up and horizontal padding */
    padding-bottom: 0; /* Remove bottom padding */
    background-color: #f9f9f9; /* Light background */
    overflow: hidden; /* Prevent scrolling within the form */
}
  
  
  .main-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    color: Black; /* Green text color */
    white-space: normal; /* Allow wrapping */
    word-wrap: break-word; /* Break long words */
    overflow: hidden; /* Ensure no overflow issues */
    text-overflow: ellipsis; /* Add ellipsis if the text overflows */
  }
  
  .subtitle {
    font-size: 20px;
    /* font-weight: bold; */
    color: Black; /* Slightly darker text */
    margin-bottom: 20px;
    white-space: normal; /* Allow wrapping */
    word-wrap: break-word; /* Break long words */
    overflow: hidden; /* Ensure no overflow issues */
    text-overflow: ellipsis; /* Add ellipsis if the text overflows */
  }
  
.form-container {
  width: 100%;
  max-width: 500px; /* Optional: Restricts the form width */
}

  .input-group {
    display: flex;
    width: 100%;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Prevent overflow issues */
  }
  
  .top-input input {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: 2px  solid #57BD91; /* Black border */
    border-radius: 6px 0 0 6px; /* Round left side by 6px */
    outline: none;
    background-color: #fff; /* White background */
    color: #333; /* Dark text color */
  }
  
  .search-icon {
    background-color: #57BD91; /* Green background */
    border: none;
    padding: 0 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 0 6px 6px 0; /* Round right side by 6px */
    color: #fff; /* White text */
  }
  
  .filter-box {
    background: white; /* Light green background */
    color: #333; /* Dark text color */
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #57BD91;
     border-radius: 6px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .input-row input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease; /* Smooth transition for border color */
}

.input-row input:focus {
    border-color: #57BD91; /* Change border color to green on focus */
    outline: none; /* Remove the default outline */
}
  
  .dict-label {
    text-align: left;
    display: block;
    font-size: 14px;
    margin: 10px 0 5px;
  }
  
  .dict-select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  .submit-btn {
    background-color: #57BD91; /* Green background */
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    color: #fff; /* White text */
  }
  
  @media (max-width: 500px) {
    .input-row {
      flex-direction: column;
    }

    .word-form {
        padding: 0 20px; /* Remove top padding for mobile view */
        height: auto; /* Allow height to adjust naturally */
    }

    .main-title {
        font-size: 30px; /* Adjust font size for smaller screens */
    }

    .subtitle {
        font-size: 16px; /* Adjust font size for smaller screens */
    }

    .input-group {
        flex-wrap: nowrap; /* Ensure inputs stay in one line */
        justify-content: space-between; /* Distribute space evenly */
    }

    .top-input input {
        width: calc(100% - 60px); /* Adjust width to fit alongside button */
    }

    .search-icon {
        width: 60px; /* Fixed width for button */
    }
  }
