    .center-buttons {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin: 20px 0;
    }

    .center-buttons button {
      padding: 12px 25px;
      background-color: #007bff;
      color: white;
      border: none;
      font-size: 18px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .center-buttons button:hover {
      background-color: #0056b3;
    }

    /* Grid styling */
    .grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      grid-gap: 10px;
      margin: 0 auto;
      padding: 0;
      justify-content: center;
      max-width: 700px;
    }

    .grid-item {
      background-color: #007bff;
      color: white;
      text-align: center;
      padding: 10px;
      font-size: 20px;
      font-weight: 600;
      border: 1px solid black;
      border-radius: 10px;
      transition: transform 0.3s ease, background-color 0.3s ease;
      cursor: pointer;
      font-size: 16px;

    }


    .grid-item:hover {
      transform: scale(1.1);
      background-color: #0056b3;
    }

    @media (max-width: 768px) {
      .grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 576px) {
      .grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 576px) {
      .word-display,
  .image-display {
    max-width: 90%; /* Reduce width on smaller screens */
  }
    }

    .hidden {
      display: none;
    }

    .center-container {
      display: flex;
      justify-content: center; /* Centers items horizontally */
      align-items: center; /* Centers items vertically */
      gap: 20px; /* Spacing between word, video, and image */
      width: 100%; /* Full width to center properly */
      margin: 0 auto; /* Centers the container itself */
      text-align: center; /* Align text in the container */
    }

    .image-display {
      margin-top: 20px;
      text-align: center;
    }

    .word-display {
      margin-top: 20px;
      text-align: left;
    }

    .image-display img {
      max-width: 100%;
      height: auto;
      border: 2px solid #007bff;
      border-radius: 10px;
    }

    /* Modal Styles */
    .modal {
      display: none;
      position: fixed;
      z-index: 1050;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background-color: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      display: flex;
      /* Flexbox layout for side-by-side alignment */
      flex-direction: row;
      /* Ensure image and text are in a row */
      align-items: center;
      /* Vertically center the content */
      position: relative;
      padding: 20px;
      max-width: 90vw;
      /* Limit modal width */
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      gap: 100px;
      /* Add spacing between image and text */
    }

    .modal-content img {
      max-width: 40%;
      /* Limit the image to 40% of the modal width */
      height: auto;
      /* Maintain aspect ratio */
      border-radius: 10px;
    }

    .close {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 24px;
      cursor: pointer;
      color: #333;
    }

    .modal-content div {
      flex-grow: 1;
      /* Ensure text takes up remaining space */
      font-size: 24px;
      font-weight: bold;
      color: #333;
      text-align: left;
      /* Align text to the left */
    }



    /* Tab Button Styling */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.tab-buttons button {
  padding: 10px 20px;
  background-color: #270bdc;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-buttons button:hover {
  background-color: #270bdc;
}

/* Card Container Styling */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
}

.card {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card button {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.card button:hover {
  background-color: #0056b3;
}



.image-display {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 80%; /* Restrict width for consistent alignment */
  justify-content: center;  /* Centers the content horizontally */
  align-items: center;      /* Centers the content vertically if the container height is fixed */
}

.word-display {
  margin-top: 20px;
  text-align: left;
  padding: 10px; /* Optional: Adds padding to the word display box */
  border: 2px solid #007bff; /* Blue border (same as image) */
  border-radius: 10px; /* Rounded corners (same as image) */
  background-color: white; /* Optional: You can add a background color if needed */
  font-size: 20px;
  font-weight: bold;
  color: #333;
  justify-content: center;  /* Centers the content horizontally */
  align-items: center;      /* Centers the content vertically if the container height is fixed */
}

.navmenu ul li a.active {
  font-weight: bold;
  color: #007bff; /* Highlight color */
}
