body {
  text-align: center;
  background-color: snow;
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: bold;
  font-size: 20px;
  font-style: normal;
  margin: 0;
}

.level-bar-container {
  width: 200px;
  height: 30px;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.level-bar {
  height: 30px;
  border-radius: 5px;
  text-align: center;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s ease;
}

.level-bar-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  padding: 0 5px;
}

.level-bar.low {
  background-color: red;
  color: red;
}

.level-bar.low-medium {
  background-color: orange-red;
}

.level-bar.medium {
  background-color: orange;
}

.level-bar.high {
  background-color: yellow;
  color: black;
}

.level-bar.full {
  background-color: green;
}

#cleanButton {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#northernLightsButton {
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #9b5de5, #f15bb5, #00bbf9, #00f5d4);
  background-size: 400% 400%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  animation: gradientAnimation 5s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#northernLightsButton:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

.sparkleContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, white 50%, transparent 50%);
  border-radius: 50%;
  animation: sparkle 1s ease-out forwards;
  pointer-events: none;
}

@keyframes sparkle {
  from {
      transform: scale(0.3);
      opacity: 1;
  }
  to {
      transform: scale(1.5);
      opacity: 0;
  }
}

#petpic {
  border-radius: 3px;
  border: 2px solid biege;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background-color: #2c3e50;
  color: white;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  overflow-y: auto; /* This makes the sidebar scrollable if there’s too much content */
}

#oa {
  position: absolute;
  top: 0;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Ensure horizontal scrolling if needed */
}

.sidebar ul li {
  padding: 10px;
  text-align: center;
}

.sidebar ul li:hover {
  background-color: #34495e;
  cursor: pointer;
}

.content {
  margin-left: 30%;
  padding: 20px;
}
.buyi {
  width: 80%;
  background-color: #546271;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  word-wrap: break-word; /* Ensures long words break to the next line */
  word-break: break-word; /* Optional for even stronger word wrapping */
}

.buyi:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.buyi label {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.buyi label .smalltoken {
  margin-left: 10px;
}

.buyi p {
  font-size: 14px;
  color: #dcdcdc;
  text-align: center;
  margin-bottom: 15px;
  word-wrap: break-word; /* Allows text to wrap within the paragraph */
}

.buy-button {
  background-color: #9b5de5;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.buy-button:hover {
  background-color: #f15bb5;
  transform: scale(1.1);
}

#items {
  text-align: center;
}

.smalltoken {
  width: 25px;
  height: 25px;
}
/* Base styling for inventory items */
.inventory {
  width: 200px;
  margin: 15px;
  border-radius: 20px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.inventory:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Common rarity - subtle gradient */
.inventory[data-rarity="common"] {
  background: linear-gradient(135deg, #d3d3d3, #a6a6a6);
}
.inventory[data-rarity="event-uncommon"] {
  background: linear-gradient(135deg, #9dc2ff, #6a9ed8);
}

/* Event Rare rarity */
.inventory[data-rarity="event-rare"] {
  background: linear-gradient(135deg, #6a9ed8, #476ba5);
}

/* Event Legendary rarity */
.inventory[data-rarity="event-legendary"] {
  background: linear-gradient(135deg, #ffb85f, #ff8851);
}

/* Event Mythical rarity */
.inventory[data-rarity="event-mythical"] {
  background: linear-gradient(135deg, #ff88f7, #d354b3);
}

/* Medicine rarity */
.inventory[data-rarity="medicine"] {
  background: linear-gradient(135deg, #95e18e, #5bb36b);
}
/* Uncommon rarity - green gradient */
.inventory[data-rarity="uncommon"] {
  background: linear-gradient(135deg, #b4ec51, #429321);
}

/* Rare rarity - blue gradient */
.inventory[data-rarity="rare"] {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}

/* Legendary rarity - orange gradient */
.inventory[data-rarity="legendary"] {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

/* Mythical rarity - purple/pink gradient */
.inventory[data-rarity="mythical"] {
  background: linear-gradient(135deg, #ff6fd8, #3813c2);
}
.satisfying-save-button {
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width:100%;
}

.satisfying-save-button:active {
  transform: scale(0.95);
}

.satisfying-save-button.saving {
  background-color: #00b894;
}

.satisfying-save-button.saving::after {
  content: '✓ Saved!';
  display: inline-block;
  margin-left: 10px;
  color: #fff;
  font-size: 16px;
  animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
/* Sidebar Button Styles */
.sidebar-btn {
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  margin: 10px 0;
}

.sidebar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Primary Button */
.sidebar-btn.primary {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
}

/* Secondary Button */
.sidebar-btn.secondary {
  background: linear-gradient(45deg, #ff8a00, #e52e71);
}

/* Red Button */
.sidebar-btn.red {
  background: linear-gradient(45deg, #ff5f6d, #ffc371);
}

/* Blue Button */
.sidebar-btn.blue {
  background: linear-gradient(45deg, #36d1dc, #5b86e5);
}

/* Green Button */
.sidebar-btn.green {
  background: linear-gradient(45deg, #11998e, #38ef7d);
}

/* Orange Button */
.sidebar-btn.orange {
  background: linear-gradient(45deg, #f7971e, #ffd200);
}
/* Trade Request Container */
#trs {
  padding: 10px;
}
#petpic {
  width:200px;
  height:150px;
}
.aura-levels-container {
  width: 100%;
  background-color: #d3d3d3; /* Grey background for possible levels */
  border-radius: 10px;
  overflow: hidden;
  height: 30px;
  position: relative;
  margin: 10px 0;
}

.aura-level-bar {
  height: 100%;
  width: 0%; /* This will change based on level */
  background: linear-gradient(90deg, #a64ac9, #ff8bff); /* Purple magical gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  transition: width 0.3s ease-in-out;
}

#aura-level-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 0px; /* Match the height of the level bar */
  color: black; /* Ensures text color remains visible */
  font-weight: bold;
}
#game {
  margin: 20px;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
}

#game h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

#game p {
  margin-bottom: 10px;
}

#game button {
  padding: 10px 15px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

#game button:hover {
  background-color: #45a049;
}
.bl {
  color:black;
}
/* Styling for the Accept button */
#trs button {
  background: linear-gradient(90deg, #4CAF50, #81C784); /* Gradient background */
  color: white; /* White text */
  padding: 12px 24px; /* Comfortable padding */
  border: none; /* No border */
  border-radius: 50px; /* Fully rounded corners for a pill-shaped button */
  font-size: 18px; /* Larger text size */
  font-weight: bold; /* Bold text */
  cursor: pointer; /* Pointer cursor on hover */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  transition: all 0.3s ease; /* Smooth transition effect */
  width:80%;
}

/* Hover effect */
#trs button:hover {
  background: linear-gradient(90deg, #45a049, #66bb6a); /* Slightly darker gradient */
  transform: scale(1.05); /* Slight zoom effect */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
  width:80%;
}

/* Active (click) effect */
#trs button:active {
  transform: scale(0.95); /* Slight shrink effect */
  background: linear-gradient(90deg, #388e3c, #43a047); /* Darker gradient on click */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15); /* Reduced shadow */
  width:80%;
}
