/* Import custom font (keeping Good Bakwan for reference, but not used) */
@font-face {
  font-family: "Good Bakwan";
  src: url("GoodBakwan.otf") format("opentype");
}

/* General body styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: white;
  background-color: #FFA011;
}

/* Prevent scrolling on mobile, but allow touch for specific elements */
html, body {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Apply the Arial Bold font to specific elements */
h1, #dogpop-count, #pop-count, .total-bonks-title {
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: white;
  position: relative;
  z-index: 2;
}

/* Styling for the "BONKIT" title and counter */
.text-outline-blue {
  /* Removed text-shadow */
}

/* Styling for Total Bonks count */
#pop-count {
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: white;
  position: relative;
  z-index: 3;
  font-size: 1.4rem;
  text-align: right;
  padding-right: 15px;
}

/* Styling for TOTAL BONKS text */
.total-bonks-title {
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: white;
  font-size: 1.4rem;
}

/* Adjusted styling for the highlighted element */
div.flex-1.glass-panel {
  height: 63px;
  padding: 15px 20px;
  font-size: 1.4rem;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: white;
}

/* CA: TBA styling - Left-aligned in the header */
.ca-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 25px;
  padding: 20px 30px;
  min-height: 80px;
  margin: 0 10px 10px 10px;
  width: 90%;
  overflow-x: auto;
}

/* Adjust CA Text */
#ca-text {
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: white;
  font-size: 1.8rem;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

/* Adjust CA Icon */
#ca-icon {
  margin-right: 12px;
  height: 28px;
  width: 28px;
}

/* Glass panel styling with small white outline */
.glass-panel {
  color: white;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid white;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  padding: 32px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* Image styles */
.imgBig {
  height: 62%;
  margin-bottom: 150px;
  z-index: 1;
}

.imgSmall {
  height: 60%;
  margin-bottom: 140px;
  z-index: 1;
}

/* Footer styles */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.5);
  color: white;
  z-index: 2;
  border-radius: 15px;
  margin: 0 10px 10px;
  font-size: 5vw;
  font-weight: bold;
}

/* Social media icons */
a svg {
  fill: white !important;
  transition: all 0.3s ease-in-out;
}

a:hover svg {
  opacity: 0.8;
}

/* Leaderboard Styling */
#leaderboard-modal {
  width: 100%;
  max-width: 100%; 
}

#leaderboard-list {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
  color: white;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

#leaderboard-list::-webkit-scrollbar {
  width: 8px;
}

#leaderboard-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

#leaderboard-list::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Leaderboard Items */
.leaderboard-item {
  font-size: 1.4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.left-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.flag {
  width: 30px;
  height: 20px;
  object-fit: cover;
}

.puffs {
  margin-left: 20px;
  white-space: nowrap;
  font-size: 1.4rem;
}

.leaderboard-item span {
  margin-right: 10px;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  #leaderboard-list > div {
    font-size: 1.4rem;
    padding: 8px 10px;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
  }
  #leaderboard-list .flag {
    width: 24px;
    height: 16px;
  }
  #leaderboard-list .puffs {
    min-width: 60px;
  }
}

/* Dog image styles */
#dog-image {
  height: 55%;
  margin-bottom: 130px;
  z-index: 10; /* Increased to prevent overlap */
  transition: transform 0.2s ease-in-out;
  user-select: none;
  position: absolute;
  pointer-events: auto; /* Ensure clickability */
}

#dog-image:active {
  transform: scale(1.1);
}