@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root{
  --dark-color: #292930;
  --border-color: #3b3b42;
}

*{
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--dark-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
/* ------------------------------------------------header-------------------------------------------------- */

#header {
  text-align: center;
}

.header-container {
  padding: 10px 0;
}

.header-icon {
  width: 50%;
  /* height: 50px; */
  margin-right: 10px;
}

.header-title {
  color: white;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------controls main game-------------------------------------------------- */

#game {
  /* background-color: #fff; */
  border-radius: 8px;
  box-shadow: 12px 12px 19px 10px  rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

/* ------------------------------------------------stats bar-------------------------------------------------- */

.info-container {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.stat {
  display: inline-block;
  margin-right: 15px;
}

#stats {
  display: flex;
  justify-content: space-between;
  color: white;
}

#stats .stat {
  font-size: 18px;
  font-weight: 500;
  padding: 3px 10px;
  margin-right: 0px;
  
}

/* ------------------------------------------------monster stats-------------------------------------------------- */

#monsterStats{
  /* background-color: #f5f5f5; */
  /* border: 1px solid #ddd; */
  /* border-radius: 4px; */
  padding: 15px;
  text-align: center;
  margin-top: 10px;
  color: white;
  /* border-bottom: 1px solid #ddd; */
}

#monsterStats span.monsterName{
  color: rgb(231, 98, 98) !important;
}

#monsterStats span.monsterHealth{
  color: rgb(243, 148, 6) !important
}

.no-border{
  border: none;
}


/* ------------------------------------------------text-------------------------------------------------- */

.game-text {
  /* background-color: #f5f5f5; */
  /* border: 1px solid var(--border-color); */
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  color: white;
}

/* ------------------------------------------------control buttons-------------------------------------------------- */

.button-container {
  display: flex;
  /* flex-direction: row; */
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.action-button {
  background-color: transparent;
  border: 1px dashed #10865f;
  border-radius: 4px;
  color: #b1ecd9;
  cursor: pointer;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 300ms ease-out;
  max-width: 200px;
  position: relative;
  overflow: hidden;
  width: calc(33.33% - 10px);
  flex: 1;

}

.btn:any-link{
  color: #fff;
  text-decoration: none;
  padding: 14px 34px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: dashed 1px #fff;
  transition: all 300ms ease-out;
  -webkit-transition: all 300ms ease-out;
  -moz-transition: all 300ms ease-out;
  -ms-transition: all 300ms ease-out;
  -o-transition: all 300ms ease-out;
}

.btn:hover,
.btn:active{
  background: rgb(8, 102, 71, 0.15);
  color: #46EBB4;
  border-color: #46EBB4;
  border-style: solid;
}

/* ------------------------------------------------anis icon when fighting her-------------------------------------------------- */

.location-image {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.location-image img {
  width: 100px;
  height: 100px;
}

.location-text {
  text-align: center;
  margin-top: 10px;
  color: white;
}

/* ------------------------------------------------inventory-------------------------------------------------- */

#inventoryButton,
#hideInventoryButton {
  background-color: transparent;
  border: 1px dashed #89c1e6;
  border-radius: 4px;
  color: #7dc1ee;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 14px;
  transition: all 300ms ease-out;
  margin-top: 10px;
}

#inventory {
  padding: 15px;
  text-align: center;
  margin-top: 20px; 
  overflow: hidden;
  border: none;
}

.inventory-content {
  height: 0;
  overflow: hidden;
  transition: height 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  
}

#inventory .stat{
  text-align: center;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-left: 10px;
}

#inventoryList {
  list-style: none;
  padding: 0;
  /* margin: 10px 0; */
  margin: 0 auto;
  margin-top: 10px;
}

#inventoryList li {
  font-size: 16px;
  margin-bottom: 5px;
  margin-top: 3px;
}

#hideInventoryButton {
  margin-top: 10px;
}


.dark-light-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
}

.dark-light-toggle label {
  display: block;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.dark-light-toggle input[type="checkbox"] {
  display: none;
}

.dark-light-toggle input[type="checkbox"]:checked + label {
  background-color: #000;
}

.dark-light-toggle label:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: transform 0.3s ease;
}

.dark-light-toggle input[type="checkbox"]:checked + label:after {
  transform: translateX(20px);
}