/* Import Font - Linked in HTML */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

/* ---=== Base Styles ===--- */
body {
  background-color: #1a1a1a;
  background-image: url('https://www.transparenttextures.com/patterns/rocky-wall.png'); 
  color: #e0d8c0; 
  font-family: 'MedievalSharp', cursive; 
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  font-size: 1.1em;
  line-height: 1.6;
}

/* ---=== Game Container ===--- */
#game {
  width: 90%;
  max-width: 650px; 
  background-color: rgba(40, 30, 20, 0.85); 
  padding: 20px;
  border-radius: 10px; 
  border: 5px solid #5a3d2b;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 15px; 

}

/* ---=== Location Visual Area ===--- */
#locationVisual {
    background-color: #221100; 
    border: 3px solid #775522; 
    border-radius: 5px;
    overflow: hidden; 
    height: 200px; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

#locationImage {
    width: 100%; 
    height: auto; 
    max-height: 200px; 
    object-fit: contain; 
    display: block;
}


/* ---=== Stats Sections ===--- */
#stats,
#monsterStats {
  background-color: rgba(60, 45, 30, 0.7);
  padding: 10px 15px;
  border-radius: 5px;
  border: 2px solid #8b6b4b; 
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.4);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px; 
  color: #f0e8d0;
  font-family: 'MedievalSharp', cursive; 
}

.stat strong {
  color: #ffffff;
  font-weight: normal; 
}

.icon {
  color: #ffd700; 
  font-size: 1.1em;
  width: 20px; 
  text-align: center;
}

#monsterStats {
  display: none; 
  background-color: rgba(100, 20, 20, 0.7); 
  border-color: #a04040;
  color: #f5c5c5; 
}

#monsterStats .stat strong {
    color: #ffffff;
}

#monsterName, #monsterHealth {
    font-family: 'MedievalSharp', cursive; 
}

/* ---=== Text Area ===--- */
#text {
  background-color: rgba(245, 235, 215, 0.9); 
  color: #4d3a2a; 
  padding: 15px;
  border-radius: 5px;
  border: 3px dashed #a08060; 
  min-height: 100px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
  font-size: 1.05em;
  text-align: center;
  font-family: 'MedievalSharp', cursive; 
}

/* ---=== Controls / Buttons ===--- */
#controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

button {
  cursor: pointer;
  color: #f0e8d0; 
  
  background: linear-gradient(to bottom, #8b6b4b, #6b4b2b);
  border: 2px solid #4d3a2a; 
  padding: 12px 25px; 
  border-radius: 5px;
  font-family: 'MedievalSharp', cursive; 
  font-size: 1.1em; 
  transition: all 0.2s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 230, 200, 0.2); 
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5); 
}

button:hover {
  background: linear-gradient(to bottom, #9c7c5c, #7c5c3c); 
  color: #ffffff;
  border-color: #5d4a3a;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 230, 200, 0.3);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(0,0,0,0.4);
}

/* ---=== Responsive Adjustments ===--- */
@media (max-width: 600px) {
  body {
      font-size: 1em;
  }
  #game {
    padding: 15px;
    gap: 10px;
    margin: 10px; 
  }
  #stats, #controls {
    flex-direction: column;
    align-items: stretch; 
    align-items: center; 
  }
  button {
    width: 80%; 
    padding: 10px 15px;
    font-size: 1em;
    text-align: center; 
  }
   #locationVisual {
       height: 150px;
   }
   #locationImage {
       max-height: 150px; 
   }
   #text {
       min-height: 80px;
   }
   #monsterStats {
     padding: 10px; 
   }
}
