  body {
      font-family: 'Raleway', sans-serif;
      overflow-x: hidden;
      background-color: #1a202c;
      /* Dark background */
  }

  .font-serif-display {
      font-family: 'Alegreya SC', serif;
  }

  .card-container {
      width: 150px;
      height: 345px;
      /* Updated height */
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
      border-radius: 12px;
      overflow: hidden;
      background: linear-gradient(135deg, #a485ff, #6347c7);
      /* Card background */
      border: 2px solid rgba(255, 255, 255, 0.4);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px;
      /* Add some padding inside the card container */
  }

  .card-image {
      width: 100%;
      height: 288px;
      /* Updated height */
      object-fit: contain;
      /* Use contain to show full image */
      border-radius: 8px;
      background-color: #f3e8ff;
      /* Light background for image area */
  }

  .card-name {
      text-align: center;
      font-size: 1.125rem;
      /* text-lg */
      font-weight: 700;
      /* font-bold */
      font-family: 'Alegreya SC', serif;
      color: #fff;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 4px 8px;
      border-radius: 6px;
      margin-top: 8px;
  }

  

        .card {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s;
        }

        .card.is-flipped {
            transform: rotateY(180deg);
        }

         

        .rotate-180 {
            transform: rotate(180deg);
        }


  /* Modal styles */
  .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      overflow: auto;

  }

  .modal.show {
      opacity: 1;
      visibility: visible;
  }

  .modal-content {
      background-color: rgb(30 41 59 / 70%);
      /* slate-800 */
      /* Glassmorphism effect */
      backdrop-filter: blur(10px);
      border-radius: 12px;
      padding: 2rem;
      max-width: 800px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: #e0e0e0;
      transform: translateY(-20px);
      transition: transform 0.3s ease-in-out;
  }

  .modal.show .modal-content {
      transform: translateY(0);
  }

  .modal-close-btn {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #cbd5e1;
      /* slate-300 */
      cursor: pointer;
      transition: color 0.2s ease;
  }

  .modal-close-btn:hover {
      color: #f87171;
      /* red-400 */
  }

  .modal-body {
      margin-top: 1rem;
      max-height: 70vh;
      overflow-y: auto;

  }

  .modal-body h2 {
      font-size: 2rem;
      font-family: 'Alegreya SC', serif;
      color: #fcd34d;
      margin-bottom: 1rem;
      text-align: center;
  }

  .modal-body p {
      margin-bottom: 0.5rem;
      line-height: 1.6;
  }

  .meaning-section {
      background-color: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
      margin-top: 1.5rem;
      /* my-6 */
      border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .meaning-title {
      font-size: 1.5rem;
      /* text-2xl */
      font-weight: 700;
      /* font-bold */
      font-family: 'Alegreya SC', serif;
      color: #fcd34d;
      /* text-amber-200 */
      margin-bottom: 1rem;
      /* mb-4 */
  }

  .meaning-item {
      background-color: rgba(0, 0, 0, 0.2);
      padding: 1rem;
      /* p-4 */
      border-radius: 0.75rem;
      /* rounded-xl */
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 1rem;
  }

  .meaning-item:last-child {
      margin-bottom: 0;
  }

  .meaning-item h2 {
      font-size: 1.3rem;
      /* text-xl */
      font-weight: 600;
      /* font-semibold */
      color: #fcd34d;
      /* text-amber-200 */
      margin-bottom: 2rem 0 0.7rem 0;
  }

  .meaning-item h3 {
      font-size: 1.25rem;
      /* text-lg */
      font-weight: 500;
      /* font-medium */
      color: #cbd5e1;
      /* text-slate-300 */
      margin: 1.5rem 0 0.5rem 0;

  }

  .meaning-item h4 {
      font-size: 1.2rem;
      /* text-lg */
      font-weight: 500;
      /* font-medium */
      color: #cbd5e1;
      /* text-slate-300 */
      margin: 1.4rem 0 0.5rem 0;

  }

  .meaning-item h4 {
      font-size: 1.15rem;
      /* text-lg */
      font-weight: 500;
      /* font-medium */
      color: #cbd5e1;
      /* text-slate-300 */
      margin: 1.3rem 0 0.5rem 0;

  }


  .meaning-item ul {
      list-style-type: disc;
      padding-left: 1.5rem;
      /* pl-6 */
      margin: 0.6rem 0 1.25rem 0;
  }

  .meaning-item ul li {
      margin-bottom: 0.25rem;
      color: #e2e8f0;
      /* text-gray-100 */
  }

  .meaning-item pre {
      overflow: auto;
      padding: 9px 13px;
      white-space: pre-wrap;
      word-break: break-all;
      margin: 0 !important;
      border: 1px solid #3a4557;
      background-color: #1a202c5b;
      border-radius: 10px;
  }

  .meaning-item hr {
      margin: 32px 0px;
      background-color: #3a4557;
      height: 1px;
      border: none;
      display: block;
  }

  .meaning-type {
      font-size: 1.25rem;
      /* text-xl */
      font-weight: 700;
      /* font-bold */
      font-family: 'Alegreya SC', serif;
      color: #c084fc;
      /* text-purple-300 */
      margin-bottom: 0.5rem;
  }

  .meaning-text {
      font-size: 1rem;
      /* text-base */
      color: #e2e8f0;
      /* text-gray-100 */
  }