.character-tile {
    border: 3px solid orange; /* Orange border */
    padding: 10px;
    text-align: center;
    background-color: #2A2A2A;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease-in-out;
}
.character-tile:hover {
    background-color: #2A2A2A;
    color: white;
    box-shadow: 0 0 20px 5px orange; /* Orange glow effect on hover */
}

      padding: 10px;
      text-align: center;
      background-color: #2A2A2A;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      transition: background-color 0.3s ease;
    }

    .character-tile:hover {
      background-color: #2A2A2A;
      color: white;
    }

    .character-tile img {
      width: 100px;
      height: 100px;
      object-fit: contain;
      background-color: #2A2A2A;
      display: block;
      margin-bottom: 10px;
    }

    .character-grid {
      background-color: #2A2A2A;
    }

    .character-tile h3 {
      margin: 0;
      padding: 2px;
      font-size: 10px;
      background-color: #2A2A2A;
      color: #F1F1F1;
      border-top: 1px solid orange;
      width: 100%;
    }

    @keyframes spinCoin {
      0% {
        transform: rotateY(0);
        background-color: #2A2A2A;
      }
      100% {
        transform: rotateY(360deg);
        background-color: #2A2A2A;
      }
    }

    .character-tile img.spin {
      animation: spinCoin 0.8s ease-in-out;
      background-color: transparent !important;
    }

    .container {
      max-width: 900px;
      margin: 80px auto 20px auto;
      padding: 20px;
      background-color: #2A2A2A;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .character-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 20px;
      margin: 20px 0;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
    }

    table, th, td {
      border: 1px solid #ddd;
    }

    th, td {
      padding: 12px;
      text-align: left;
    }

    th {
      background-color: #3B3B3B;
    }

    tr:nth-child(even) {
      background-color: #333333;
    }

    .hidden {
      display: none;
    }

    .back-button {
      margin-top: 20px;
      padding: 10px 20px;
      background-color: #333333; /* Darker header/footer background */
      color: white;
      border: none;
      cursor: pointer;
      font-size: 16px;
      border-radius: 5px;
    }

    .back-button:hover {
      background-color: #e68a00;
    }

    .search-bar {
      margin-bottom: 20px;
      display: flex;
      justify-content: center;
    }

    .search-bar input {
      padding: 10px;
      width: 300px;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 16px;
    }

    @media (max-width: 768px) {
      nav ul {
        display: none;
      }

      

      .container {
        margin-top: 100px;
      }

      .character-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      }

      .search-bar input {
        width: 200px;
      }

      #characterDetails img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  float: left; /* Align image to the left */
  margin-right: 20px; /* Add padding to the right */
  animation: none; /* Ensure no animation on bio images */
}
    }
    
    .character-tile {
    border: 10px solid #ffcc00; /* Adding a golden border to represent power-up */
    transition: box-shadow 0.3s ease-in-out;
  }

  .character-tile:hover {
    box-shadow: 0 0 20px 5px #ffcc00; /* Glow effect */
  }
.character-tile {
    border: 3px solid black; /* Thick black border like a comic panel */
    box-shadow: 4px 5px 4px 4px black; /* Sharp shadow to mimic manga panels */
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
  }

  .character-tile:hover {
    transform: scale(1.05); /* Slight scaling effect on hover */
    box-shadow: 10px 10px 0px 0px black, 0 0 20px 5px #ffcc00; /* Comic shadow + power-up glow */
  }
.character-tile {
    border: 3px solid black; /* Thick black border like a comic panel */
    box-shadow: 5px 5px 0px 0px black; /* Sharp shadow to mimic manga panels */
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
  }

  .character-tile:hover {
    transform: scale(1.05); /* Slight scaling effect on hover */
    box-shadow: 10px 10px 0px 0px black, 0 0 20px 5px #ffcc00; /* Comic shadow + power-up glow */
  }