body {
  color: #ffffff;
  font-family: sans-serif;
  background-color: #262b44;
  font-family: 'MinimalPixelv2';
  letter-spacing: 1px;
  background-image: url('../images/monster_tile.png');
  background-repeat: repeat;
  animation: scrollBackground 20s linear infinite;
  font-size: 20px;
  padding-top: 3px;
}

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


@font-face {
  font-family: 'Fibberish';
  src: url('../fonts/fibberish.ttf') format('truetype'); 
}

@font-face {
  font-family: 'MinimalPixelv2';
  src: url('../fonts/C&CRedAlert.ttf') format('truetype'); 
}

h1 {
  font-family: 'Fibberish', sans-serif;
  letter-spacing: 0.2em;
  font-size: 72px;
  text-transform: uppercase;
  margin-bottom: -5px;  
  margin-top: -5px;
  color: white;
  text-shadow: 
  3px 3px 0 #ff4dbb, /* Top-left */
  -3px -3px 0 #ff4dbb, /* Bottom-right */
  3px -3px 0 #ff4dbb, /* Top-right */
  -3px 3px 0 #ff4dbb; /* Bottom-left */
}

label {
  font-size: 25px;
}

.text-pink {
  color: #ff1eb6;
}


/*======canvas styles======*/

.canvas-wrapper {
  position: relative;
}

#canvas {
  cursor: pointer;
  display: block;
}

#guide {
  display: grid;
  pointer-events: none;
  position: absolute;
}

#guide div {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/*======inventory styles======*/

#inventory {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 57%;
  background-color: rgba(0, 0, 0, 0.25); 
  box-sizing: border-box;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
}


#invRow1 {
  display: flex;
  gap: 5px;
  padding: 10px 5px 0px;
  justify-content: center;
  align-items: center;
}

#invRow2 {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin: -10px;
  margin-top: 2px;
}


#invRow2 button {
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;

}


.color-swatch {
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-swatch:hover, #colorInput:hover {
  border-color: #0099db; 
  cursor: pointer;
}

#theme-p {
  margin: 0 5px;
  color: #ff4dbb;
}

/*======base styles======*/

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-button {
  width: 40x; 
  height: 40px; 
  border: none; 
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-color: transparent; 
  padding: 0;
  margin: 0 5px; 
  cursor: pointer; 
  transition: all 0.3s ease;
}

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

.image-button img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.game-button {
  line-height: 20px;      
  font-family: 'MinimalPixelv2';
  font-size: 2em;
  height: 40px;
  border: none;
  transition: all 0.3s ease;
}

button {
  transition:  all 0.2s ease-in-out;
}

button:hover {
  color: #181425;
  cursor: pointer;
}


/*======player list styles======*/

.player-list {
  position: fixed;
  top: 50%;  
  right: 0;  
  transform: translateY(-50%);  
  background-color: rgba(0, 0, 0, 0.25); 
  color: white;
  padding: 10px;
  list-style-type: none;
  margin: 0;
  font-size: 26px;
  z-index: 1000; 
}

.player-list li {
  padding: 5px 0;
}

.player-list strong {
  font-size: 30px;
  margin-bottom: 10px;
}
