:root {
  --pokemon-red: #FF0000;
  --pokemon-blue: #0075BE;
  --pokemon-yellow: #FFCC00;
  --pokemon-white: white;
  --pokemon-black: black;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #222;
    color: #333;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .deck-details-container {
    max-width: 1400px;
    margin: 120px auto 40px;
    padding: 0 2rem;
  }

  .deck-header {
    background: #333;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
  }

  .deck-title-section h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    margin: 0 0 1rem;
    font-weight: 800;
    background: linear-gradient(45deg, #e3350d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .deck-meta-info {
    color: #666;
    font-size: 1.1rem;
  }

  .deck-stats-overview {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
  }

  .deck-stat {
    background: #f8f9fa;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
  }

  .cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #333;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #444;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .card-image {
    width: 100%;
    aspect-ratio: 1/1.4;
    border-radius: 8px;
    overflow: hidden;
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .card-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
  }

.modal1 {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
  }
  
  .modal1-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
  }
  
  .modal1-content img {
    width: 45%;
    border-radius: 20px;
    height: auto;
  }
  
  .close-modal1 {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .cards-section {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .deck-header {
      flex-direction: column;
      text-align: center;
    }

    .deck-stats-overview {
      justify-content: center;
      flex-wrap: wrap;
    }
      .modal1-content img {
    width: 100%;
    border-radius: 20px;
    height: auto;
  }
  }

  .like-button {
    background: none;
    border: 2px solid #ee1515;
    color: #ee1515;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
    margin-left: auto;
  }
  
  .like-button:hover {
    background: #ee1515;
    color: white;
  }
  
  .like-button i {
    font-size: 16px;
  }
  
  .like-count {
    font-weight: bold;
  }
  
  .deck-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }