/* Desktop Layout - Content with fixed left margin and responsive right margin */
    /* Memory List Styles */
    .memory-list-container {
      margin: 20px 0;
    }

    .memory-list-container h2 {
      text-align: center;
      margin-bottom: 20px;
      color: rgb(230, 230, 230);
    }

    .memory-grid-container {
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
    }

    .memory-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 15px;
      padding: 20px;
      justify-items: center;
    }

    /* Mobile hamburger menu spacing */
    /* Responsive Design für verschiedene BildschirmgröÃÅ¸en */
    @media (max-width: 1200px) {
      .memory-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 12px;
        padding: 15px;
      }
    }

    @media (max-width: 768px) {
      .memory-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
        padding: 10px;
      }
    }

    @media (max-width: 480px) {
      .memory-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
        padding: 8px;
      }
    }

    /* Memory Card Styles - angepasst für Grid (horizontal) - 15% gröÃÅ¸er */
    .Memory-UR, .Memory-SSR, .Memory-SR, .Memory-SP, .Memory-Memory {
      width: 160px !important;
      height: 120px !important;
      margin: 0 !important;
      transition: all 0.3s ease;
    }

    /* VergröÃÅ¸erte Memory Cards für alle Rarities (Desktop) - 15% gröÃÅ¸er */
    @media (min-width: 1201px) {
      .Memory-UR, .Memory-SSR, .Memory-SR, .Memory-SP, .Memory-Memory {
        width: 207px !important;
        height: 138px !important;
      }
    }

    /* Auf kleineren Bildschirmen alle Karten gleich groÃÅ¸ - 15% gröÃÅ¸er */
    @media (max-width: 1200px) {
      .Memory-UR, .Memory-SSR, .Memory-SR, .Memory-SP, .Memory-Memory {
        width: 161px !important;
        height: 115px !important;
      }
    }

    .Memory-UR:hover, .Memory-SSR:hover, .Memory-SR:hover, .Memory-SP:hover, .Memory-Memory:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    /* Rarity-spezifische Styles und Backgrounds */
    .Memory-UR {
      background-image: url("https://ik.imagekit.io/frnrxcqkq/Haikyu-FlyHigh/img/BackroundUR.png?tr=w-300,h-300,q-85") !important;
      background-size: cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      box-shadow: 0 3px 6px rgba(255, 68, 68, 0.3);
      border: 2px solid #e04444 !important;
    }

    .Memory-SSR {
      background-image: url("https://ik.imagekit.io/frnrxcqkq/Haikyu-FlyHigh/img/BackroundSSR.png?tr=w-300,h-300,q-85") !important;
      background-size: cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      box-shadow: 0 3px 6px rgba(255, 215, 0, 0.3);
      border: 2px solid #ebac43 !important;
    }

    .Memory-SR {
      background-image: url("https://ik.imagekit.io/frnrxcqkq/Haikyu-FlyHigh/img/BackroundSR.png?tr=w-300,h-300,q-85") !important;
      background-size: cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      box-shadow: 0 3px 6px rgba(153, 50, 204, 0.3);
      border: 2px solid #bc72e7 !important;
    }

    .Memory-SP {
      background-image: url("https://ik.imagekit.io/frnrxcqkq/Haikyu-FlyHigh/img/BackroundSP.png?tr=w-300,h-300,q-85") !important;
      background-size: cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      box-shadow: 0 3px 6px rgba(153, 50, 204, 0.3) !important;
      position: relative !important;
      border: 2px solid #c6e3ff !important;
    }

    /* Global Tooltip Styles */
    #global-tooltip {
      position: fixed;
      background: rgba(34, 24, 36, 0.95);
      color: rgb(230, 230, 230);
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      z-index: 99999 !important;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
      pointer-events: none;
      max-width: 200px;
      word-wrap: break-word;
    }

    #global-tooltip::before {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-top: 6px solid rgba(34, 24, 36, 0.95);
    }

    /* Global tooltip wird per JavaScript gesteuert */



    /* Info Container Styles */
    .info-container {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      margin: 20px 0;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .info-section {
      padding: 20px;
      text-align: center;
    }

    .info-section h3 {
      color: rgb(230, 230, 230);
      margin: 0 0 15px 0;
      font-size: 24px;
      font-weight: bold;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .info-text {
      color: rgb(230, 230, 230);
      font-size: 16px;
      margin: 10px 0;
      font-weight: 500;
    }

    .warning-text {
      color: #ffcc00;
      font-size: 14px;
      margin: 10px 0;
      font-style: italic;
    }

    .discord-buttons-container {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 15px;
      flex-wrap: wrap;
    }

    .discord-button {
      text-decoration: none;
      display: inline-block;
    }

    .discord-btn {
      background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    }

    .discord-btn:hover {
      background: linear-gradient(135deg, #4752c4 0%, #5b6eae 100%);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    }

    .discord-btn:active {
      transform: translateY(0);
    }

    .discord-btn i {
      font-size: 18px;
    }

    /* Responsive für Discord Buttons */
    @media (max-width: 768px) {
      .discord-buttons-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
      }

      .discord-btn {
        width: 100%;
        max-width: 280px;
      }
    }

    /* Verschiedene Button-Farben für unterschiedliche Server */
    .krill-btn {
      background: linear-gradient(135deg, #7a5af8a1 0%, #8b6af8a1 100%);
    }

    .krill-btn:hover {
      background: linear-gradient(135deg, #6a4ae8a1 0%, #7b5ae8a1 100%);
    }

    .server-btn {
      background: linear-gradient(135deg, #7a5af8a1 0%, #8b6af8a1 100%);
    }

    .server-btn:hover {
      background: linear-gradient(135deg, #6a4ae8a1 0%, #7b5ae8a1 100%);
    }

    /* Memory Modal Styles */
    .memory-modal {
      display: none;
      position: fixed;
      z-index: 10000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(5px);
    }

    /* Ensure modal overlay is above everything */
    .memory-modal.show {
      z-index: 10001;
    }

    .memory-modal-content {
      background: linear-gradient(135deg, #1A1A1D 0%, #2D2D30 100%);
      margin: 5% auto;
      padding: 0;
      border: 2px solid #3c3c3f;
      border-radius: 15px;
      width: 90%;
      max-width: 800px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
      animation: modalFadeIn 0.3s ease-out;
      position: relative;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    .memory-modal-close {
      position: absolute;
      right: 20px;
      top: 15px;
      color: #ffffff;
      font-size: 32px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 10002;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      border: 2px solid rgba(255, 255, 255, 0.4);
      backdrop-filter: blur(5px);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .memory-modal-close:hover {
      color: #ff6b35;
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.1);
    }

    .memory-modal-close:active {
      transform: scale(0.95);
    }

    .memory-modal-header {
      padding: 20px 30px;
      border-bottom: 2px solid #3c3c3f;
      text-align: center;
    }

    .memory-modal-header h2 {
      color: rgb(230, 230, 230);
      margin: 0 0 10px 0;
      font-size: 28px;
      font-weight: bold;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .memory-modal-character {
      color: #cccccc;
      font-size: 16px;
      font-weight: 500;
    }

    .memory-modal-body {
      display: flex;
      flex-direction: column;
      padding: 30px;
      gap: 20px;
      align-items: center;
    }

    .memory-modal-image {
      flex: 0 0 250px;
      text-align: center;
    }

    .memory-modal-image img {
      width: 300px;
      height: 200px;
      object-fit: contain;
      border-radius: 10px;
      border: 3px solid #3c3c3f;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease;
    }

    .memory-modal-image img:hover {
      transform: scale(1.05);
    }

    .memory-modal-description {
      flex: 1;
    }

    .memory-modal-description h3 {
      color: rgb(230, 230, 230);
      margin: 0 0 15px 0;
      font-size: 20px;
      font-weight: bold;
    }

    .memory-modal-description p {
      color: #e0e0e0;
      font-size: 16px;
      line-height: 1.6;
      margin: 0;
      text-align: justify;
    }

    .memory-modal-description p strong {
      font-weight: bold;
      color: #ffffff;
    }

    /* Responsive Modal */
    @media (max-width: 768px) {
      .memory-modal-content {
        margin: 10% auto;
        width: 95%;
      }

      .memory-modal-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        right: 15px;
        top: 10px;
      }

      .memory-modal-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
      }

      .memory-modal-image {
        flex: none;
      }

      .memory-modal-image img {
        width: 150px;
        height: 150px;
      }

      .memory-modal-header {
        padding: 15px 20px;
      }

      .memory-modal-header h2 {
        font-size: 24px;
      }
    }

    @media (max-width: 480px) {
      .memory-modal-content {
        margin: 5% auto;
        width: 98%;
      }

      .memory-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        right: 10px;
        top: 8px;
      }

      .memory-modal-body {
        padding: 15px;
      }

      .memory-modal-image img {
        width: 120px;
        height: 120px;
      }
    }


