/* Fonts */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2'),
        url('../fonts/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2'),
        url('../fonts/Poppins-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Italic.woff2') format('woff2'),
        url('fonts/Poppins-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}



/* Reset default browser styles */
body, h1, h2, h3, ul, li, p, form, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
@media only screen and (max-width: 767px) {
  body {
    font-size: 0.875rem; /* 14px for smaller screens */
  }
}

/* Example of setting font size for specific elements */
.header h1 {
  font-size: 2rem; /* 32px */
}

.header p {
  font-size: 1.25rem; /* 20px */
}

.search-form input[type="text"] {
  font-size: 1em; /* Adjust as needed */
}
body {
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
        font-size: 1.125rem;
          overflow-x: hidden; /* Added for menu */
  margin: 0; /* Added for menu */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.footer {
        max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
footer a {
  color: #ccc;
}
footer a:hover {
  color: #8d85ff;
}
.copyright p {
    font-size: 2em;
}
/* Header styles */
header {
    background-color: #333;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
      display: flex;
  justify-content: center; /* Center align content horizontally */
  align-items: center; /* Center align content vertically */
}
header h1 a {
        font-family: "Lora", Arial, sans-serif;
        margin-bottom: 30px;
        color: #FFF;
        text-decoration: none;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}
header p, a {
        color: #FFF;
}

/* Search container styles */
.search-container {
    margin-bottom: 30px;
    
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-input-container {
    display: flex;
    align-items: center;
    width: 80%;
    position: relative;
    
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    padding-right: 40px; /* Adjust to make space for the clear icon and submit button */
    font-size: 1.125rem;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
    border-radius: 5px 0 0 5px;
        font-family: "Poppins", Arial, sans-serif;
}

.clear-icon {
    position: absolute;
    right: 50px; /* Adjust based on the width of the search button */
    cursor: pointer;
    font-size: 1.125rem;
    color: #aaa;
    padding: 10px;
}

.clear-icon:hover {
    color: #000;
}

.search-button {
    background-color: #e5e5e5; /* Change this to your preferred color */
    border: 1px solid #f5f5f5;
    padding: 13px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-button img {
    width: 20px;
    height: 20px;
}

.search-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

input:focus {
  outline: none;
}

/* Alphabetical listing */
.alphabetical-listing {
    margin-top: 20px;
    text-align: center; /* Center the heading */
}

.alphabet-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the list items */
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.alphabet-list li {
    margin: 5px;
}

.alphabet-list a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #8d85ff;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

.alphabet-list a:hover {
    background-color: #8d85ff;
    color: #000;
}
/* Alphabetical listing Ends */

/* Entries listing starts */

.entries-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.entries-list li {
    margin-bottom: 10px; /* Add some space between entries */
    text-align: left; /* Align text to the left */
        border-bottom: 1px solid #ccc;
}

.entries-list li strong {
    font-size: 18px;
}

/* Entries listing Ends */

/* Autocomplete starts */

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    position: relative;
}

#search {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestions-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}

.suggestions-list li:hover {
    background-color: #f0f0f0;
}

/* Autocomplete ends */

/* Page of about, preface, foreword starts */

.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: justify;
}

.page h1, h2 {
    color: #333;
}

.page p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 1em;
}

.page ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page a {
    color: purple;
}

/* Page ends */

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    color: #333;
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination a.active {
    background-color: #333;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}
/* Pagination ends */

/* Word of the Day Starts */


.word-of-the-day {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin: 20px auto;
    max-width: 600px;
}

.word-of-the-day h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color:#ddd;
}

.word-of-the-day h3 {
    font-size: 22px;
    color: #333;
}

.word-of-the-day p {
    font-size: 18px;
    color: #555;
}

.word-of-the-day em {
    color: #777;
}

/* Word of the Day Ends */


/* Navigation Menu with Hamburger Menu Starts */

/* Navigation Menu with Hamburger Menu Ends */


nav {
  background-color: #333;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative; /* Ensure relative positioning for absolute children */
  width: 60%;
}

.nav-links {
  display: none; /* Hide by default */
  position: absolute;
  top: 100%; /* Position below the navbar */
  left: 0;
  width: 100%;
  background-color: #333;
  z-index: 1;
}

.nav-links a {
  display: block;
  color: #e5e5e5;
  text-decoration: none;
  padding: 1rem;
  text-align: center; /* Center align links */
  font-weight: bold;
}
.nav-links a:hover {
  color: #8d85ff;
}

/* Hamburger icon and menu for smaller screens */
.checkbtn {
  font-size: 1.5rem; /* Adjust icon size */
  cursor: pointer;
  display: none; /* Hide by default */
}

.checkbtn .fa-times {
  display: none; /* Hide close icon by default */
}

.check-input {
  display: none; /* Hide checkbox */
}

/* Show hamburger icon and toggle menu when checkbox is checked */
#check:checked ~ .nav-links {
  display: block;
}

#check:checked ~ .checkbtn .fa-bars {
  display: none; /* Hide hamburger icon when checked */
}

#check:checked ~ .checkbtn .fa-times {
  display: inline-block; /* Show close icon when checked */
}

@media only screen and (max-width: 767px) {
  .checkbtn {
    display: block; /* Show hamburger icon for smaller screens */
  }

  .nav-links {
    display: none; /* Ensure links are hidden by default for smaller screens */
  }
}

@media only screen and (min-width: 768px) {
  .checkbtn {
    display: none; /* Hide hamburger icon in larger screens */
  }

  .nav-links {
    display: flex !important; /* Ensure links are always displayed in larger screens */
    position: static;
    width: auto;
    background-color: transparent;
    z-index: initial;
  }

  .nav-links a {
    padding: 1rem 2rem; /* Adjust padding */
  }
}

/* first letter style */
.drop-cap::first-letter {
  -webkit-initial-letter: 2;
          initial-letter: 2;
  font-weight: bold;
  margin-right: .5em;
}