


.container-container {
	display: flex;
    margin: 16px;
	gap: 16px;
	
	flex-direction: column;
	
}

/* Container Layouts */
.container {
    display: flex;
    gap: 16px;
   
}



.input-container {
  position: relative;
  height: 400px;
  border-radius: 8px;
  background: #13161b;
  
  display: flex;
  flex-direction: column;
  align-items: center;        /* horizontal centering */
  padding: 14px;
  flex-grow: 1;
}

/* Winrate container */
.winrate-container {
  display: flex;
  justify-content: center;    /* horizontally center */
  align-items: flex-start;    /* keep content at top vertically */
  width: 100%;
}

.coming-soon {
  /* remove absolute positioning */
  position: relative;  /* or just leave out position entirely */
  top: auto;
  left: auto;
  transform: none;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;                 /* expand full width if you like */
  padding: 16px;
  margin-top: 20px;            /* optional spacing */
  border: 1px dashed #383838;
  border-radius: 12px;

  z-index: 1;                  /* no need to force above */
}


/* Coming soon text */
.popup-message {
  font-family: "Changa", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #7DA6FF; /* accent color */
  text-align: center;
  text-shadow: 0 0 4px rgba(125, 166, 255, 0.3);
}


/* Container */
.winrate-stats {
  background: #13161B; /* match your other panels */
  border: 1px solid #383838;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
  color: #edf0f1;
  font-family: "Changa", sans-serif; /* consistent font */
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Main winrate row */
.winrate-main {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 4px;
}

.winrate-label {
  color: #b0b0b0; /* muted gray */
  margin-right: 6px;
  font-weight: 500;
}

.winrate-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #4cff88; /* bright green */
  text-shadow: 0 0 6px rgba(76, 255, 136, 0.5); /* optional glow for emphasis */
}

/* Breakdown row */
.winrate-breakdown {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: center;
}

.wins {
  color: #4cff88;
}

.losses {
  color: #ff4c4c;
}

.draws {
  color: #ffd54c;
}

.total {
  color: #b0b0b0;
}


















#large-container {
    height: 29.3vw;
	flex-grow:1;
    border-radius: 8px;
    background: #13161b;
    

    display: flex;
    flex-direction: column;
	padding-bottom:10px;

  
}

/* Filter Container Styles */
.filter-container {
  background: #13161b;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #333;
}

.filter-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.filter-label {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 4px;
  background: #0D0E12;
  border-radius: 6px;
  padding: 2px;
}

.filter-button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
}

.filter-button:hover {
  background: #3a3a3a;
  color: #fff;
}

.filter-button.active {
  background: #EB4A57;
  color: #fff;
}

/* Filter Input */
.filter-input {
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0D0E12;
  color: #fff;
  font-size: 14px;
  min-width: 200px;
}

.filter-input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.filter-input::placeholder {
  color: #666;
}

/* Filter Select */
.filter-select {
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0D0E12;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.filter-select option {
  background: #0D0E12;
  color: #fff;
}

/* Battle Count Display */
.battle-count {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 15px;
  padding: 10px;
  background: #13161b;
  border-radius: 4px;
  border-left: 3px solid #4a9eff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filter-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-buttons {
    flex-wrap: wrap;
  }
  
  .filter-input,
  .filter-select {
    min-width: auto;
    width: 100%;
  }
}

/* Animation for filter changes */
.battle-row {
  transition: opacity 0.2s ease;
}

.battle-row.filtering {
  opacity: 0.5;
}

/* Clear filters button (optional) */
.clear-filters-btn {
  background: #666;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.clear-filters-btn:hover {
  background: #777;
}

/* Filter status indicators */
.filter-active-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4a9eff;
  border-radius: 50%;
  margin-left: 8px;
}

.filter-group.has-filter .filter-label::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4a9eff;
  border-radius: 50%;
  margin-left: 6px;
}





.battle-container {
    display: flex;
    gap: 1.4vw;
    
}


#userProfile {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15%;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
	
	
}

#userName {
    color: #00aaff;
	text-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
	margin-top: 10px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
	
	font-family: "Changa", sans-serif;
}

.bg-text {
    color: #b0b0b0;
    font-size: clamp(0.9rem, 1vw, 1.2rem);
    font-weight: 400;
    text-decoration: none;
}

#lbDetails {
    width: 100%;
    height: 25%;
    display: flex;
    justify-content: space-around;
	
  
}

.stars-container,
.rank-container,
.position-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #edf0f1;
    font-size: 24px;
    font-weight: 600;
	font-family: "Changa", sans-serif;
}
.rank,
.position,
.stars {
	
	font-family: "Changa", sans-serif;

}
#userFighters {
    width: 100%;
    height: 60%;
   
    display: flex;
    padding: 10px;
    gap: 10px;
}

.fighters {
    flex: 1;
    display: flex;
    flex-direction: column;
  
}

.lvl-container {
    width: 100%;
    height: 12.5%;
   
}

.axie-container {
	
    position: relative;
    width: 100%;
    height: 62.5%;
   
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ghosted, centered background Axie image */
.axieIMG {
	
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%) scaleX(-1);

    height: auto;
    width: 300px; /* or higher, depending on effect */
    overflow: visible;
    z-index: 0;
}

/* Rune on top, right corner */
.rune-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.runeIMG {
  width: 38px;
  height: 40px;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.runeIMG:hover {
  transform: scale(1.2);
  filter:
    drop-shadow(0 0 0 #fff)              /* force layer redraw */
    drop-shadow(0 0 1px #FA8072)         /* tight outline */
    drop-shadow(0 0 2px #FA8072)
    drop-shadow(0 0 3px #DC143C);        /* glow border */
}




/*Card pop up*/

.bodyPartsContainer {
    width: 100%;
    height: 12.5%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}


/* Sizes */

#body-part-back .body-part-img{

}

#body-part-mouth .body-part-img {

}

#body-part-eyes .body-part-img {
	

	
}
#body-part-tail .body-part-img {

}

#body-part-horn .body-part-img {
		
	
}

#body-part-ear .body-part-img {


	
}


.body-part-img {
    width: 26px;
    height: 26px;
	
    object-fit: contain;
}




.charm-container {
    width: 100%;
    height: 12.5%;
    margin-top: 3px;
    display: flex;
    justify-content: center;
    align-items: center; /* Changed from 'bottom' to 'center' */
    gap: 5px;
}

.charm-container .partIcon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.bodyPartIcon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.charm-container .partIcon:hover {
    transform: scale(1.2);
}


.runeIMG {
  width: 38px;
  height: 40px;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.starIMG {
    width: 20px;
    height: 20px;
}


.battle-rune-container {
  position: absolute;
  top: 10%; /* Position near the top of the axie image */
  left: 45%;
  transform: translateX(-50%);
  z-index: 3; /* Must be higher than the Axie image */
  display: flex;
  gap: 8px;
}
/* Main Fighter Rune Stars (Profile Display) */
.rune-container .rune-stars {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 10;
}
.rune-container .rune-stars .star {
    font-size: 11px;
    line-height: 1;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 2px currentColor);
}

/* Battle History Rune Stars (Smaller) */
.battle-rune-wrapper {
    position: relative;
    display: inline-block;
}

.battle-rune-wrapper .rune-stars {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1px;
    padding: 1px 4px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.battle-rune-wrapper .rune-stars .star {
    font-size: 10px;
    line-height: 1;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

/* Optional: Add hover effects */
.rune-container:hover .rune-stars,
.battle-rune-wrapper:hover .rune-stars {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}
.battle-rune-img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}





#battle-content {
    
    min-height: 200px;
	width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    background: #13161B;
    display: block;
    flex-direction: column;
	
	padding: 10px;
	gap: 10px;
}

.battle-row {
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center; /* changed from space-between */
  width: 100%;
  border-bottom: 1px solid #383838;
  gap: 40px; /* Add a controlled gap */
}





.battle-axie-container {
  position: relative;
  width: 100%;
  height: 200px; /* Or fixed height */
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.battleDetails {
	width:150px;
    font-size: 1.2rem;
    z-index: 99;
    text-align: center;
    color: #edf0f1; /* light text for contrast */
    font-family: "Changa", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 6px; /* spacing between result, time, and buttons */
    align-items: center;
	
}


.user-side {
	
    display: flex;
    gap: 0; /* reduce gap */
    flex: 2;
    justify-content: center;
    position: relative;
	
	flex-direction: column;
	
}
.enemy-side {
	
	
    display: flex;
    gap: 0; /* reduce gap */
    flex: 2;
    justify-content: center;
    position: relative;
    flex-direction: column;
	
}


.battle-axie-img {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 256px;
  height: auto;

 
}


/* Result text will keep its color from script */
.result {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.05); /* subtle glow */
}

/* Time container */
.time-container {
    font-size: 1rem;
    color: #b0b0b0;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}



.replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px 6px;
  border-radius: 8px;
  background: #282C34;               
  color: #7DA6FF;                    
  font-family: "Changa", sans-serif; /* match site font */
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5); /* subtle depth */
  transition: background 0.25s ease, transform 0.15s ease;
}

.replay-btn:hover {
  background: #2f2f2f;
  transform: translateY(-2px);       /* subtle lift */
}




.replay-text {
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.copy-link-btn {
  margin-left: 3px;
  background: #0D0E12;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  color: #7DA6FF;
  font-family: "Changa", sans-serif;
  transition: background 0.25s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: #2a2a2a;
  transform: scale(1.05);
}








.user-axie-team {
  display: flex;
  width: 100%;
  
	
}

.user-axie-team .battle-axie-container {
	
  transform: scaleX(-1);
	
}

.enemy-axie-team {
  display: flex;
  width: 100%;
}


/* Container for player/enemy names above Axie teams */
.player-name-container {
   
    display: flex;
    justify-content: flex-end; /* align to the right */
  
}

.enemy-name-container {
    display: flex;
    justify-content: flex-start; /* align to the left */
    
}

/* Style for clickable names */
.player-name-link {
    
    font-size: 1rem;
    font-weight: 600;
    color: #00aaff;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.enemy-name-link {
    font-size: 1rem;
    font-weight: 600;
    color: #FA8072; /* Accent color */
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.enemy-name-link:hover {
    color: #ff9985; /* lighter salmon on hover */
    text-shadow: 0 0 6px rgba(250, 128, 114, 0.7); /* glow in accent color */
}



/* Hover effect for links */
.player-name-link:hover {
	
  color: #66d9ff;
  text-shadow: 0 0 6px rgba(0, 170, 255, 0.7);
	
	
}









/* Popup Container */
.rune-charm-popup {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 310px;
    border-radius: 12px;
    background: transparent;
}

.rune-charm-popup.visible {
    opacity: 1;
    animation: popupFadeIn 0.2s ease;
}

.popup-content {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Full-size background image */
.popup-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.popup-base-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}




/* Overlay images */
.popup-class-image {
    position: absolute;
    top: 5.25%;
    left: 19.5%;
    width: 40px;
    height: 40px;
    object-fit: contain;
    z-index: 2;
    background: transparent;
    box-shadow: none; /* Remove box shadow */
    border: none;     /* Ensure there's no border */
    border-radius: 0; /* Optional: remove rounding if not circular */
}


.popup-item-image {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    background: transparent;
    z-index: 2;
}

/* Overlay text */
.popup-name,
.popup-description,
.popup-rarity {
    position: absolute;
    width: 65%;
    left: 17.5%;
    text-align: center;
    z-index: 3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-family: "Changa", sans-serif;

    background: transparent;
}

.popup-rarity {
    position: absolute;
    top: 38.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    line-height: 1;
    width: fit-content; /* Explicitly set width to fit content */
    max-width: none; /* Remove any max-width constraints */
}


.popup-rarity .star {
    font-size: 16px;
    line-height: 1;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Rarity colors */
.star-common {
    color: #888888;
    text-shadow: 0 0 6px #888888;
}
.star-rare {
    color: #32CD32;
    text-shadow: 0 0 6px #32CD32;
}
.star-epic {
    color: #1E90FF;
    text-shadow: 0 0 6px #1E90FF;
}
.star-mystic {
    color: #BA55D3;
    text-shadow: 0 0 6px #BA55D3;
}



.popup-name {
    bottom: 33%;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.popup-description {
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: #ccc;
    line-height: 1.3;
    width: 65%;
    max-height: none;
    overflow: visible;
    position: absolute;
    text-align: center;
}


/* Rarity backgrounds */
.popup-rarity.mystic {
    background: linear-gradient(135deg, #BA55D3, #9370DB);
    color: white;
}

.popup-rarity.epic {
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: white;
}

.popup-rarity.rare {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
}

.popup-rarity.common {
    background: linear-gradient(135deg, #888888, #666666);
    color: white;
}

/* Hover effect */
.battle-rune-img[data-type="rune"],
.runeIMG[data-type="rune"],
.partIcon[data-type="charm"] {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.battle-rune-img[data-type="rune"]:hover,
.runeIMG[data-type="rune"]:hover,
.partIcon[data-type="charm"]:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}















/* Card Popup Styles */

.cardPopup {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;

}

.cardPopup.visible {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    
}

.card-image-container {
    position: relative;
    width: 260px;
    height: 395px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Card art - goes at the bottom */
.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Frame - goes on top of card image */
.card-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.card-class-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
   
    padding: 2px;
}

.card-name {
    position: absolute;
    top: 57%;
    left: 38.5%;
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    text-align: left;
    z-index: 4;
    font-family: "Changa", sans-serif;
}


.card-description {
    position: absolute;
    top: 72.5%;
    left: 17%;              /* center horizontally */
    
    width: 200px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    z-index: 4;
}


/* Style for card description HTML content */
.card-description strong {
    color: #fff;
}

.card-description em {
    color: #ffeb3b;
    font-style: normal;
}




/* --- ADD THESE STYLES FOR THE PROFILE ID POPUP --- */

/* This will be the main container, inheriting from your existing .popup-overlay */
#profile-id-popup-overlay {
  display: none; /* Initially hidden */
  z-index: 9; /* Ensure it's on top of everything */
}

/* The box containing the content */
.profile-id-popup-box {
  background: #13161B;
  border-radius: 15px;
  padding: 3rem 3.5rem;
  max-width: 450px;
  width: 90%;
  color: #edf0f1;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Style for the main error message */
.profile-id-popup-box .popup-message {
  font-weight: 600;
  font-size: clamp(16px, 18px, 20px);
  color: #4CAF50;
 /* Use your theme's accent color */
  margin-bottom: 8px;
}

/* Style for the instructional sub-message */
.profile-id-popup-box .popup-sub-message {
  font-size: clamp(10px, 12px, 14px);
  color: #bbb;
  margin-bottom: 20px;
}

/* Flex container for the input field and button */
.profile-id-input-group {
  display: flex;
  gap: 10px;
}

/* The input field */
#profile-id-input {
  flex-grow: 1; /* Allows the input to take up available space */
  padding: 6px 14px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #13161B;
  color: #fff;
  font-size: clamp(10px, 12px, 14px);
  
}

#profile-id-input:focus {
  outline: none;
  border-color: var(--primary-accent);
}

/* The submit button */
#profile-id-submit-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: var(--primary-accent);
  color: #fff;
  font-weight: 600;
  font-size: clamp(16px, 18px, 20px);
  cursor: pointer;
  transition: background 0.2s ease;
}

#profile-id-submit-btn:hover {
  background: var(--primary-accent-dark);
}







/* Wrapper for pagination buttons and dropdown */
.pagination-wrapper {
  position: relative;   /* positioning context for absolute dropdown */
  min-height: 60px;     /* enough height to fit buttons and dropdown */
  width: 100%;          /* full width container */
  margin-top: 2rem;     /* spacing above */
}

/* Pagination container */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;  /* center buttons horizontally */
  align-items: center;
  flex-wrap: wrap;
  margin: 0;               /* remove top margin here */
}

/* Pagination buttons */
.pagination button {
  width: 40px;          /* fixed width, adjust as needed */
  min-width: 40px;      /* ensures buttons don’t shrink smaller */
  text-align: center;   /* center the text inside */

  background: #1d1d1d;
  color: #ccc;
  border: 1px solid #2a2a2a;
  padding: 8px 0;       /* remove horizontal padding, keep vertical */
  border-radius: 10px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}


.pagination button:hover:not(:disabled) {
  background: #EB4A57;
  color: #fff;
  border-color: #DC143C;
  box-shadow: 0 0 12px rgba(250, 128, 114, 0.25);
}

.pagination button.active {
  background: #EB4A57;
  color: white;
  border-color: transparent;
  box-shadow: 0 0 8px rgba(235, 74, 87, 0.5);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Input number for pagination */
.pagination input[type="number"] {
  width: 60px;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #1d1d1d;
  color: #eee;
  font-size: 12px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease;
}

.pagination input[type="number"]:focus {
  border-color: #EB4A57;
  box-shadow: 0 0 6px rgba(235, 74, 87, 0.4);
}




/* Logs per page dropdown container */
.page-size-selector {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 10px;
  padding: 0.5rem 1rem;
  
}

/* Label style inside dropdown */
.page-size-selector label {
  font-weight: 500;
}

/* Dropdown select style */
.page-size-selector select {
  background-color: #1d1d1d;
  color: #eee;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.page-size-selector select:hover {
  border-color: #EB4A57;
}

.page-size-selector select:focus {
  border-color: #EB4A57;
  box-shadow: 0 0 6px rgba(235, 74, 87, 0.4);
}












@media screen and (max-width: 1024px) {
	



}

/* Media Queries for Mobile */
@media screen and (max-width: 768px) {
    /* Header adjustments */


    .page-size-selector {
		
		
		bottom: -50px;
		
	}

    .winrate-label{
		
		font-size: 12px;
		
	}

    .coming-soon .popup-message {
		
		font-size: 12px;
		
	}


    .rune-container {
		
		right: 10px;
		
		
	}
    /* Hide desktop navigation */
    .nav_links {
        display: none;
		
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }


    .container {
		
		flex-direction: column;
		
	}
	
    .container-container {
    	display: flex;
        margin: 12px;
    	gap: 12px;
    	
    	flex-direction: column;
    	
    }
    
    /* Container Layouts */
    .container {
        display: flex;
        gap: 12px;
       
    }
	
    #large-container {
        height: 60vw;

      
    }
	.bg-text {
		
		font-size: 1.5rem;
		
	}


    

    
    .popup-message {
	    
	    font-size: 2rem;
	    
    }
    
	.input-container {
		
		height: 220px;
		
	}
	

    .star {
        font-size: 111px;
		
    }
    
    .starIMG {
        width: 16px;
        height: 16px;
    }
    .axieIMG {
    	
        position: absolute;
        top: 50%;
        left: 40%;
        transform: translate(-50%, -50%) scaleX(-1);
    
        height: auto;
        width: 40vw; /* or higher, depending on effect */
        overflow: visible;

        z-index: 0;
    }	


    .body-part-img .charm-container{
		
		width: 3.5vw;
		
	}
	
    .bodyPartsContainer {
		
		gap: 4px;
		
	}
	
    .charm-container {
		
		gap: 4px;	
		
	}
	
    .charm-container .partIcon {
        width: 4vw;
        height: 4vw;

    }

    
    #battle-content {
        
        min-height: 200px;
    	width: 100%;
        display: block;
    	padding: 10px;
    	gap: 10px;
    }
    
    .battle-row {
      display: flex;
      align-items: center;
      justify-content: center; /* changed from space-between */
      width: 100%;
      border-bottom: 1px solid #383838;
      gap: 10px; /* Add a controlled gap */
    }
    

    
    
    .battle-axie-container {
      position: relative;
      width: 100%;
      height: 160px; /* Or fixed height */
      overflow: visible;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .battle-axie-img {
      position: absolute;
      top: 65%;
      left: 50%;
      transform: translate(-50%, -50%);
      
      width: 27vw;
      height: auto;
    
    

     
    }

    .battle-rune-container {
      position: absolute;
      top: 10%; /* Position near the top of the axie image */
      left: 45%;
      transform: translateX(-50%);
      z-index: 3; /* Must be higher than the Axie image */
      display: flex;
      gap: 8px;
    }
    /* Main Fighter Rune Stars (Profile Display) */
    .rune-container .rune-stars {
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 1px;
        padding: 2px 4px;
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        z-index: 10;
    }
    .rune-container .rune-stars .star {
        font-size: 10px;
        line-height: 1;
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
        filter: drop-shadow(0 0 2px currentColor);
    }
    
    /* Battle History Rune Stars (Smaller) */
    .battle-rune-wrapper {
        position: relative;
        display: inline-block;
    }
    
    .battle-rune-wrapper .rune-stars {
        position: absolute;
        bottom: 3px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 1px;
        padding: 1px 4px;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        z-index: 5;
    }
    
    .battle-rune-wrapper .rune-stars .star {
        font-size: 10px;
        line-height: 1;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    }
    
    /* Optional: Add hover effects */
    .rune-container:hover .rune-stars,
    .battle-rune-wrapper:hover .rune-stars {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    }
    .battle-rune-img {
      width: 32px;
      height: 32px;
      filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
    }
	
	
	.user-axie-team {
		

	}
    
	.enemy-axie-team {
		

		
	}
    
    .battleDetails {
        width: 70px;
        font-size: 1.2rem;
        z-index: 99;
        text-align: center;
        color: #edf0f1; /* light text for contrast */
        font-family: "Changa", sans-serif;
        display: flex;
        flex-direction: column;
        gap: 6px; /* spacing between result, time, and buttons */
        align-items: center;
    }
    
    /* Result text will keep its color from script */
    .result {
        font-size: 1.8rem;
        font-weight: 700;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.05); /* subtle glow */
    }
    
    /* Time container */
    .time-container {
        font-size: 1.275rem;
        color: #b0b0b0;
        font-weight: 500;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    }
    
    .enemy-name-link, .player-name-link {
		
		font-size: 14px;
		
	}
    
   
    .replay-text, .copy-link-btn {
		
		font-size: 14px;		
	}
   

}

/* Media Queries for Mobile */
@media screen and (max-width: 648px) {



    /* Hide desktop navigation */
    .nav_links {
        display: none;
		
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }


    .container {
		
		flex-direction: column;
		
	}
	

	.bg-text {
		
		font-size: 1.5rem;
		
	}


    
    .popup-message {
	    
	    font-size: 2rem;
	    
    }
    
	.input-container {
		
		height: 220px;
		
	}
    #userName {
        font-size: 4vw;

    }
	
    .bg-text {
        font-size: 2vw;
    }
    
    
    .stars-container,
    .rank-container,
    .position-container {
        font-size: 3.8vw;
    }

    #userFighters {
        width: 100%;
        height: 60%;
       
        display: flex;
        padding: 0px;
        gap: 0px;
    }
	

    .star {
        font-size: 111px;
		
    }
    
    .starIMG {
        width: 16px;
        height: 16px;
    }
    .axieIMG {
    	
        position: absolute;
        top: 50%;
        left: 40%;
        transform: translate(-50%, -50%) scaleX(-1);
    
        height: auto;
        width: 45vw; /* or higher, depending on effect */
        overflow: visible;

        z-index: 0;
    }	


    .body-part-img{
		
		width: 4.5vw;
		
	}
	
    .bodyPartsContainer {
		
		gap: 2px;
		
	}
	
    .charm-container {
		
		gap: 0px;	
		
	}
	
	
    .charm-container .partIcon {
        width: 4.5vw;
        height: 4.5vw;

    }

    
	.runeIMG{
		
		height: 6vw;
		width: 6vw;
		
	}
	
    #battle-content {
        
        min-height: 200px;
    	width: 100%;    	
    	padding: 10px;
    	gap: 10px;
    }
    
    .battle-row {
      display: flex;
      align-items: center;
      justify-content: center; /* changed from space-between */
      width: 100%;
      border-bottom: 1px solid #383838;
      gap: 10px; /* Add a controlled gap */
    }
    
   
    
    
    .battle-axie-container {
      position: relative;
      width: 100%;
      height: 155px; /* Or fixed height */
      overflow: visible;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .battle-axie-img {
      position: absolute;
      top: 65%;
      left: 50%;
      transform: translate(-50%, -50%);
      
      width: 27vw;
      height: auto;
    
    

     
    }

    .battle-rune-container {
      position: absolute;
      top: 10%; /* Position near the top of the axie image */
      left: 45%;
      transform: translateX(-50%);
      z-index: 3; /* Must be higher than the Axie image */
      display: flex;
      gap: 8px;
    }
    /* Main Fighter Rune Stars (Profile Display) */
    .rune-container .rune-stars {
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 1px;
        padding: 2px 4px;
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        z-index: 10;
    }
	
	
    .rune-container .rune-stars .star, .battle-rune-wrapper .rune-stars .star {
        font-size: 1.5vw;
        line-height: 1;
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
        filter: drop-shadow(0 0 2px currentColor);
    }
    
    /* Battle History Rune Stars (Smaller) */
    .battle-rune-wrapper {
        position: relative;
        display: inline-block;
    }
    
    .battle-rune-wrapper .rune-stars {
        position: absolute;
        bottom: 3px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 1px;
        padding: 1px 4px;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        z-index: 5;
    }
    

	
	
    
    /* Optional: Add hover effects */
    .rune-container:hover .rune-stars,
    .battle-rune-wrapper:hover .rune-stars {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    }
    .battle-rune-img {
      height: 6vw;
	  width: 6vw;
      filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
    }
	
	
	.user-axie-team {
		

	}
    
	.enemy-axie-team {
		

		
	}
    
    .battleDetails {
        width: 70px;
        font-size: 1.2rem;
        z-index: 99;
        text-align: center;
        color: #edf0f1; /* light text for contrast */
        font-family: "Changa", sans-serif;
        display: flex;
        flex-direction: column;
        gap: 6px; /* spacing between result, time, and buttons */
        align-items: center;
    }
    
    /* Result text will keep its color from script */
    .result {
        font-size: 13px;
        font-weight: 700;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.05); /* subtle glow */
    }
    
    /* Time container */
    .time-container {
        font-size: 13px;
        color: #b0b0b0;
        font-weight: 500;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    }
    
    .enemy-name-link, .player-name-link {
		
		font-size: 13px;
		
	}
    
	
    .enemy-name-link, .player-name-link {
		
		font-size: 12px;
		
	}
    
   
    .replay-text, .copy-link-btn {
		
		font-size: 12px;		
	}
    

  
}

@media screen and (max-width: 600px) {


    /* Hide desktop navigation */
    .nav_links {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }

    .enemy-name-link, .player-name-link {
		
		font-size: 11px;
		
	}

    .battle-row {
      display: flex;
      align-items: center;
      justify-content: center; /* changed from space-between */
      width: 100%;
      border-bottom: 1px solid #383838;
      gap: 10px; /* Add a controlled gap */
    }    
	
    .battle-axie-container {
      position: relative;
      width: 100%;
      height: 26vw; /* Or fixed height */
      overflow: visible;
      display: flex;
      justify-content: center;
      align-items: center;
    }
	
    .battleDetails {
        width: 10vw;
        font-size: 1.2rem;
        z-index: 99;
        text-align: center;
        color: #edf0f1; /* light text for contrast */
        font-family: "Changa", sans-serif;
        display: flex;
        flex-direction: column;
        gap: 6px; /* spacing between result, time, and buttons */
        align-items: center;
    }

 
}


@media screen and (max-width: 480px) {
 
 
    .container-container {
    	display: flex;
        margin: 8px;
    	gap: 8px;
    	
    	flex-direction: column;
    	
    }
    
    /* Container Layouts */
    .container {
        display: flex;
        gap: 8px;
       
    }
 
    .rune-container {
		
		right: 0px;
		
		
	}

    .starIMG {
        width: 13px;
        height: 13px;
    }

    .axieIMG {
    	
        position: absolute;
        top: 48%;
        left: 40%;
        transform: translate(-50%, -50%) scaleX(-1);
    
        height: auto;
        width: 50vw; /* or higher, depending on effect */
        overflow: visible;

        z-index: 0;
    }	

    .body-part-img{
		
		width: 4vw;
		
	}
	
    .bodyPartsContainer {
		
		gap: 2px;
		
	}
	
    .charm-container {
		
		gap: 0px;	
		
	}
	
	
    .charm-container .partIcon {
        width: 4.5vw;
        height: 4.5vw;

    }
	

    /* Hide desktop navigation */
    .nav_links {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }

    .rune-charm-popup {
        width: 280px;
    }

    .enemy-name-link, .player-name-link {

		
	}

    .battle-row {
      display: flex;
      align-items: center;
      justify-content: center; /* changed from space-between */
      width: 100%;
      border-bottom: 1px solid #383838;
      gap: 10px; /* Add a controlled gap */

    }    

  
	

    /* Result text will keep its color from script */
    .result {
        font-size: 12px;
        font-weight: 700;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.05); /* subtle glow */
    }
    
    /* Time container */
    .time-container {
        font-size: 11px;
        color: #b0b0b0;
        font-weight: 500;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    }
    
    .enemy-name-link, .player-name-link {

		
	}
	
    
   
    .replay-text, .copy-link-btn {
		
		font-size: 11px;		
	}
    
   
}

@media screen and (max-width: 400px) {
 
 

    /* This will be the main container, inheriting from your existing .popup-overlay */
    #profile-id-popup-overlay {
      display: none; /* Initially hidden */
      z-index: 9; /* Ensure it's on top of everything */
    }
    
    /* The box containing the content */
    .profile-id-popup-box {
      background: #13161B;

    }
    
    /* Style for the main error message */
    .profile-id-popup-box .popup-message {
      font-weight: 600;
      font-size: 14px;

    }
    
    /* Style for the instructional sub-message */
    .profile-id-popup-box .popup-sub-message {
      font-size: 11px;
      margin-bottom: 20px;
    }
    
    /* Flex container for the input field and button */
    .profile-id-input-group {
      display: flex;
      gap: 10px;
    }
    
    /* The input field */
    #profile-id-input {
      flex-grow: 1; /* Allows the input to take up available space */
      padding: 6px 14px;
      border: 1px solid #444;
      border-radius: 8px;
      background: #13161B;
      color: #fff;
      font-size: 11px;
    }
    
    #profile-id-input:focus {
      outline: none;
      border-color: var(--primary-accent);
    }
    
    /* The submit button */
    #profile-id-submit-btn {
      padding: 6px 14px;
      font-size: 13px;


    }
    
    .body-part-img{
		
		width: 4vw;
		
	}
	
    .bodyPartsContainer {
		
		gap: 3px;
		
	}
	
    .charm-container {
		
		gap: 0px;	
		
	}
	
	
    .charm-container .partIcon {
        width: 5vw;
        height: 5vw;

    }
	

    /* Hide desktop navigation */
    .nav_links {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }

    .rune-charm-popup {
        width: 280px;
    }

    .enemy-name-link, .player-name-link {
		

	}

    .battle-row {
      display: flex;
      align-items: center;
      justify-content: center; /* changed from space-between */
      width: 100%;
      border-bottom: 1px solid #383838;
      gap: 10px; /* Add a controlled gap */

    }   


    .replay-text, .copy-link-btn {
		
		font-size: 9px;		
	}
	

}

