/* Import a font that looks like chiseled stone */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@400;700&display=swap');

body {
  /* A gradient representing the night sky meeting the desert sand */
  background: linear-gradient(180deg, #0f0c29, #302b63, #24243e);
  background-attachment: fixed; /* Keeps the background still while scrolling */
  font-family: 'Lato', sans-serif;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game {
  max-width: 500px;
  max-height: 500px; /* Gave it a bit more room */
  background-color: #1a1a1a; /* Dark Onyx Stone */
  color: #f0e6d2; /* Papyrus/Parchment color */
  
  /* The "Stone Tablet" Look */
  border: 8px ridge #d4af37; /* Creates a 3D gold carved effect */
  border-radius: 15px; /* Smooth corners like worn stone */
  
  padding: 20px;
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.8), /* Deep shadow */
    0 0 15px rgba(212, 175, 55, 0.3); /* Gold glow */
  
  position: relative;
  overflow: hidden;
}

/* Add a subtle pyramid silhouette effect using a pseudo-element */
#game::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, transparent 75%, rgba(212, 175, 55, 0.05) 100%),
    linear-gradient(225deg, transparent 75%, rgba(212, 175, 55, 0.05) 100%);
  pointer-events: none; /* Lets you click through it */
}

#text {
  background-color: #252525;
  border-left: 4px solid #d4af37;
  color: #f0e6d2;
  padding: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 15px;
  font-family: 'Cinzel', serif; /* The "Egyptian" font */
  box-shadow: inset 0 0 10px #000;
}

#stats {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-family: 'Cinzel', serif;
  color: #d4af37; /* Gold Text */
  letter-spacing: 1px;
}

.stat {
  font-size: 0.9rem;
}

strong {
  color: #fff;
}

#controls {
  display: flex;
  gap: 10px; /* Space between buttons */
  justify-content: center;
  margin-bottom: 15px;
  border: none;
  background: transparent;
}

button {
  cursor: pointer;
  flex: 1; /* Makes buttons equal width */
  
  /* Lapis Lazuli (Blue) and Gold Theme */
  background-color: #1e3c72; 
  background-image: linear-gradient(315deg, #1e3c72 0%, #2a5298 74%);
  color: #d4af37; /* Gold Text */
  
  border: 2px solid #d4af37;
  padding: 12px 5px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

button:hover {
  background-image: linear-gradient(315deg, #2a5298 0%, #1e3c72 74%);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px); /* Moves up slightly */
  box-shadow: 0 0 10px #d4af37; /* Gold Glow on hover */
}

#monsterStats {
  display: none;
  border: 2px solid #8b0000;
  padding: 10px;
  color: #ffffff;
  background-color: #3e0a0a; /* Dark Red */
  font-family: 'Cinzel', serif;
  text-align: center;
  margin-bottom: 15px;
  box-shadow: 0 0 10px #8b0000;
}

#monsterName {
  color: #ff6b6b;
  text-transform: uppercase;
}