body {
  font: 14px 'Press Start 2P', cursive;
  background-color: #6abdb2;
  margin: 0;
  padding: 0;
}
button {
  font: 18px 'Press Start 2P', cursive;
}
main {
  margin: 30px;
  background-color: #fff8dc;
  min-height: 400px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
  color: #228b22;
}
nav, button {
  margin: 10px 0;
}
button {
  background-color: #8b4513;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}
button:hover {
  background-color: #a0522d;
}
select {
  background-color: #8b4513;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font: 14px 'Press Start 2P', cursive;
}
select:hover {
  background-color: #a0522d;
}
#assets div, #tools div, #tools-list div{
  display: inline-block;
  margin: 10px;
}
#assets a, #tools a{
  text-decoration: none;
}
.asset {
  width: 128px;
  height: 128px;
  background-size: cover;
  position: relative;
  display: inline-block;
  margin: 10px;
  transition: transform 0.2s;
  cursor: pointer;
}
.asset:hover {
  transform: scale(1.1);
}
.asset.selected {
  transform: scale(1.1); /* Keep zoomed */
  border: 2px solid #d2b48c; /* Small border */
}
.asset.equipment {
  transform: scale(1.1); /* Keep zoomed */
  border: 3px solid #25b800; /* Small border */
}
.asset_name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  font-size: 12px;
  padding: 2px;
}
.selected>.asset_name {
  background-color: rgba(255, 215, 0, 0.7); /* Gold color for selected */
}
.asset.equipment>.asset_name {
  background-color: rgba(34, 139, 34, 0.7); /* Green color for equipment */
}
#zoom-container {
  min-height: 400px;
  border: 2px solid #8b4513;
  position: relative; /* For positioning the close button */
}
#zoom-container h2, #zoom-container h3 {
  color: #228b22;
}
#zoom-container ul {
  list-style: none;
  padding: 0;
}
#zoom-container li {
  margin: 5px 0;
  font-size: 14px;
}
#zoom-container a {
  text-decoration: none;
  color: #228b22;
}
#zoom-container a:hover {
  color: #a0522d;
}
#close-zoom {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 24px;
  color: #ff0000;
  cursor: pointer;
  padding: 0;
}
#close-zoom:hover {
  color: #cc0000;
}
#equip-button {
  margin-top: 10px;
}
#equip-button:hover {
  background-color: #a0522d;
}
nav {
  background-color: #8b4513; 
  padding: 10px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  color: #ffffff; 
  font: 16px 'Press Start 2P', cursive;
  margin-bottom: 10px; 
  margin-top: 0px
}
footer {
  background-color: #8b4513;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 35px;
}
.progress-container {
  border: 1px solid black;
  height: 20px;
  position: relative;
  width: 70%;
  background-color: #d4d4d4; /* Light background for empty bar */
}
.progress-bar {
  background-color: #228b22;
  height: 100%;
  transition: width 1s ease-in-out;
  text-align: left;
}
.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  line-height: 20px;
  color: black; /* Adjust color for visibility */
}
.attr-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.attr-label {
  width: 30%; /* Fixed width for alignment */
  margin-right: 10px;
}
@media (max-width: 768px) {
  main {
    flex-direction: column;
    margin: 10px;
  }
  #assets-container, #zoom-container {
    flex: none;
    width: 100%;
    margin: 10px 0;
  }
}

a.navelt:hover {
  background-color: #d2b48c;
}

.wax-balance {
  font: bold 12px 'Roboto';
}

.cooldown-time {
  color: #ff0000; /* Red color for cooldown text */
}

/* Styles moved from care.ejs */
.cooldown {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.cooldown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  text-shadow: 1px 1px 2px black;
  text-align: center;
}
.asset > .cooldown-overlay {
  top: 45%;
  left: 45%;
}
.progress-container {
  position: relative;
  background-color: #ddd;
  border-radius: 5px;
  height: 20px;
}
.progress-bar { 
  background-color: #8b4513; /* brown */ 
}
.progress-gain {
  background-color: #d6af00;
  height: 100%;
  position: absolute;
  top: 0;
  transition: width 0.5s ease; /* for animation */
}
.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black; /* White for contrast on brown/green bars */
  font-weight: bold;
}
.progress-predicted, #predicted-care, #predicted-xp {
  color: green;
}
.tabs {
  margin-bottom: 10px;
}
.tab-button {
  background-color: #d6af00;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  margin-right: 5px;
  font: 14px 'Press Start 2P', cursive;
}
.tab-button.active {
  background-color: #8b4513;
}