.results-section {
    padding: 20px;
    background-color: transparent; /* Remove white background */
    margin-top: 0; /* Remove top margin */
    padding-top: 0; /* Remove top padding */
    /* border-radius: 12px;  */
    /* box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);  */
    font-family: 'Georgia', serif; /* Use a classy serif font */
    line-height: 1.8; /* Improve readability */
    width: 80%; /* Set width to 80% for larger screens */
    margin: 0 auto; /* Center the results section horizontally */
}

.word-category {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 10px;
    background-color: #e6ffe6; /* Light green background */
    color: #333; /* Dark text color */
    border: 1px solid #57BD91; /* Add a subtle border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.word-category:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.word-category h2 {
    font-size: 24px; /* Larger font size for category titles */
    font-family: 'Arial', sans-serif;
    color: #2c3e50; 
    font-weight: bold; /* Emphasize category titles */
} 

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* Align words to the left */
}

.word-item {
    background-color: #d9f2d9; /* Light green background */
    padding: 10px 15px;
    border-radius: 5px;
    color: #333; /* Dark text color */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content inside each word item to the left */
    text-align: left; /* Ensure text is aligned to the left */
    cursor: pointer;
    border: 1px solid #ccc; /* Add a border for definition */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
}

.word-item:hover {
    background-color: #c8e6c9; /* Slightly darker green on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

.word {
    font-size: 18px; /* Slightly larger font for emphasis */
    font-weight: bold;
    color: #2c3e50; /* Elegant dark blue color */
}

.points {
    font-size: 14px;
    font-style: italic; /* Add a classy italic style */
    color: #888; /* Softer gray for a subtle look */
}

.no-results-message {
    text-align: center;
    font-size: 18px;
    color: #333; /* Dark text color */
    margin-top: 20px;
    padding: 20px;
    background-color: #e6ffe6; /* Match light green background */
    border-radius: 10px; /* Optional: Add rounded corners */
    font-family: 'Georgia', serif; /* Match the classy font */
    font-style: italic; /* Add a refined italic style */
    border: 1px dashed #57BD91; /* Add a dashed border for emphasis */
}

@media (max-width: 500px) {
    .results-section {
        margin-top: 20px; /* Add spacing between WordForm and results */
    }
}

@media (max-width: 768px) {
    .results-section {
        width: 100%; /* Full width on mobile devices */
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for a classy look */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal-content {
    background-color: #f9f9f9; /* Light neutral background */
    padding: 25px;
    border-radius: 12px;
    color: #2c3e50; /* Elegant dark blue text */
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow for depth */
    font-family: 'Georgia', serif; /* Classy serif font */
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 26px;
    color: #57BD91; /* Match theme's green color */
    font-weight: bold;
  }
  
  .close-btn {
    background: none;
    border: none;
    color: #888; /* Subtle gray for close button */
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close-btn:hover {
    color: #2c3e50; /* Darker color on hover */
  }
  
  .modal-body {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.8; /* Improve readability */
    color: #333; /* Dark text color */
  }
  
  .modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .loading-message {
    font-style: italic;
    color: #57BD91; /* Match theme's green color */
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% {
      opacity: 0.5;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0.5;
    }
  }
  
  
