* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1c1e21, #3a4b63);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.player-card {
    background-color: #1d2744;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    width: 750px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.6);
    position: relative; /* To allow positioning the background feature */
    overflow: hidden; /* Hide the parts of background that overflow */
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 162, 232, 0.3), rgba(255, 255, 255, 0.05));
    clip-path: polygon(100% 0, 100% 60%, 60% 100%, 0 100%, 0 0); /* Creates a large triangle-like effect */
    z-index: 0;
}

.player-card:hover {
    transform: translateY(-10px) scale(1.02); /* Slight lift and zoom on hover */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.8); /* Enhanced shadow on hover */
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  z-index: 2;
}

.back-link {
  display: flex; /* Flex for aligning content */
  align-items: center; /* Center icon vertically */
  text-decoration: none;
  color: #55A630; /* Original text color */
  transition: color 0.3s ease;
}

.back-icon {
  background-color: blue; /* Circle background color */
  color: white; /* Icon color */
  border-radius: 50%; /* Circular shape */
  width: 50px; /* Fixed width for a perfect circle */
  height: 50px; /* Fixed height for a perfect circle */
  display: flex; /* Flex to center the content */
  align-items: center; /* Center icon vertically */
  justify-content: center; /* Center icon horizontally */
  transition: background-color 0.3s; /* Smooth background transition */
  font-size: 24px; /* Larger font size for the icon */
  margin-right: 10px; /* Space between icon and text */
  line-height: 1; /* Ensures the icon stays centered */
}

.back-link:hover .back-icon {
  background-color: darkblue; /* Darker blue on hover */
}

.back-text {
  font-size: 16px; /* Font size for the text */
  color: #55A630; /* Original text color */
  transition: color 0.3s ease;
}

.back-link:hover .back-text {
  color: #0096c7; /* Change text color on hover */
}

.player-header h1 {
  font-size: 38px;
  color: white;
  font-weight: 600;
} 

.player-number {
    color: #55A630;
    font-weight: 500;
}

.player-content {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.player-image img {
    width: 220px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

.player-details {
    flex: 1;
}

.player-details p {
    margin-top: 10px;
    font-size: 16px;
}

.player-details strong {
    color: #55A630;
}

.player-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    z-index: 2;
}

.stat-block {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease-in-out;
}

.stat-block:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-block h2 {
    font-size: 28px;
    color: #D4D700;
}

.stat-block p {
    font-size: 14px;
    color: #ccc;
}
@media screen and (max-width: 768px) {
    .player-card {
      width: 100%;
      padding: 20px;
    }
  
    .player-header h1 {
      font-size: 2rem;
    }
  
    .player-header .player-number {
      font-size: 1.2rem;
    }
  
    .player-stats {
      flex-direction: column;
      gap: 15px;
    }
  
    .stat-block h2 {
      font-size: 1.8rem;
    }
  
    .stat-block p {
      font-size: 0.85rem;
    }
  }

  .share-container {
    position: relative;
    display: inline-block;
    padding-top: 10px;
  }
  
  .share-container button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .share-container .dropdown {
    position: absolute;
    display: none; /* Hidden by default */
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    margin-top: 5px;
    border-radius: 5px;
  }
  
  .share-container .dropdown ul {
    list-style-type: none;
    padding: 10px;
    margin: 0;
  }
  
  .share-container .dropdown ul li {
    padding: 8px;
  }
  
  .share-container .dropdown ul li a {
    text-decoration: none;
    color: black;
  }
  
  .share-container .dropdown ul li a:hover {
    background-color: #007bff;
    border-radius: 10px;
    padding: 5px;
    color: white;
  }
  .pitch {
    width: 100%;
    height: 100%;
  }

  #heatmap {
    padding-top: 15px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  #snackbar {
    visibility: hidden; /* Hidden by default */
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    transform: translateY(100px); /* Move off-screen initially */
    opacity: 0; /* Invisible initially */
    transition: opacity 0.3s, transform 0.3s; /* Smooth transition */
  }
  
  #snackbar.show {
    visibility: visible; /* Show the snackbar */
    opacity: 1; /* Fade-in effect */
    transform: translateY(0); /* Bring it back on-screen */
  }
  .certified-badge {
    display: inline-block;
    padding: 8px 12px;
    background-color: #28a745; /* Green color for certified status */
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
  }
  
  .certified-badge span {
    display: block;
  }
  
  .player-card .certified-badge {
    position: relative;
    top: 10px;
  }
  .certified-badge #certificate-id {
    margin-top: 8px;
    font-size: 12px;
    font-family: "Courier New", Courier, monospace; /* For a digital certificate look */
    color: #e0e0e0;
  }
      
  @media screen and (max-width: 768px) {
    .player-card {
        width: 100%;
        padding: 20px;
    }
  
    .player-header h1 {
        font-size: 2rem;
    }
  
    .player-number {
        font-size: 1.2rem;
    }
  
    .player-content {
        flex-direction: column; /* Stack content vertically on tablets */
    }

    .player-image img {
        width: 100%; /* Image takes full width in smaller screens */
    }
  
    .player-stats {
        flex-direction: column;
        gap: 15px;
    }
  
    .stat-block h2 {
        font-size: 1.8rem;
    }
  
    .stat-block p {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .player-card {
        padding: 20px;
    }
  
    .player-header h1 {
        font-size: 1.5rem;
    }
  
    .player-number {
        font-size: 1rem;
    }
  
    .player-details p {
        font-size: 0.8rem;
    }
    .pitch{
      display: none;
    }
    #player-image{
      display: none;
    }
    .player-card:hover {
      transform: none;
  }
  .player-stats{
    display: none;
  }
  .share-container{
    display: none;
  }
  #heatmap {
    display: none;
  }
  .back-icon{
    display: none;
  }

}