/* === Shared Share Button Styles === */

.share-header {
  display: flex;
  justify-content: flex-end; /* align button right */
  padding: 0.5rem 1rem;
  margin-bottom: 1rem; /* spacing below header */
}

/* Core Share Button */
.share-btn {
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 5px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  gap: 4px;
}

.share-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.share-icon {
  font-size: 32px;
  color: #000;
  line-height: 1;
}

.share-label {
  font-family: 'Patrick Hand', Arial, sans-serif;
  font-size: 0.75rem;
  color: #000;
  user-select: none;
}

/* Modal container */
.share-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
}

/* Modal content */
.share-modal .modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.share-modal .close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.share-modal #gameLink {
  width: 90%;
  padding: 10px;
  font-size: 1rem;
  margin: 10px 0;
}

.copy-confirm {
  display: none;
  color: green;
  font-size: 0.9rem;
  margin-top: 5px;
}

.home-button {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  z-index: 1100;
  transition: 
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.home-button:hover {
  background-color: rgba(85, 85, 85, 0.15);
  box-shadow: 0 0 8px rgba(85, 85, 85, 0.4);
}

.home-button img {
  display: block;
  width: 100px; /* adjust as needed */
  height: auto;
  pointer-events: none;
  transition: transform 0.2s ease;
  border-radius: 8px;
}

.home-button:hover img {
  transform: scale(1.2);
}
