.title-screen {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center elements vertically */
  padding: 0;
  overflow: hidden;
}
.title-screen .form-container {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center elements horizontally */
  justify-content: center; /* Center content vertically */
  width: 90%;
  max-width: 1000px;
  padding: 15px;
  position: relative;
  transform: translateY(40%); /* Adjust vertical positioning */
  z-index: 1;
}
.title-screen .form-container input {
  margin: 2px 0; /* Reduced margin */
  padding: 8px; /* Slightly smaller padding */
  width: 100%;
  border-radius: 4px;
  background-color: #333;
  color: white;
  border: 1px solid #444;
  font-size: 16px;
}
.title-screen .form-container input::placeholder {
  color: #888;
}
.title-screen .form-container .checkbox-container {
  display: flex;
  align-items: center;
  margin: 2px 0; /* Reduced spacing between checkboxes */
  width: fit-content;
}
.title-screen .form-container .checkbox-container input[type=checkbox] {
  margin-right: 5px; /* Space between checkbox and label */
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.title-screen .form-container .checkbox-container label {
  color: white;
  font-size: 14px;
  white-space: nowrap;
}
.title-screen .form-container button {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  background-color: #333;
  color: white;
  border-radius: 4px;
  border: 1px solid #444;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
}
.title-screen .form-container button:hover {
  background-color: #444;
}
.title-screen .form-container button + button {
  margin-top: 0; /* Remove vertical spacing between buttons */
}
.title-screen #background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("title.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: black;
  z-index: -1;
}

/* Media Queries */
/* Small devices (max-width: 600px) */
@media (max-width: 600px) {
  .title-screen .form-container {
    width: 100%;
    transform: translateY(0);
  }
  .title-screen .form-container input {
    font-size: 14px;
  }
  .title-screen .form-container button {
    max-width: 100%;
    font-size: 14px;
  }
  .title-screen #background {
    background-size: cover;
  }
}
/* Medium devices (601px - 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .title-screen .form-container {
    width: 95%;
    max-width: 800px;
  }
  .title-screen .form-container input {
    font-size: 15px;
  }
  .title-screen .form-container button {
    max-width: 300px;
    font-size: 15px;
  }
  .title-screen #background {
    background-size: cover;
  }
}
/* Large devices (over 900px) */
@media (min-width: 901px) {
  .title-screen .form-container {
    max-width: 1000px;
  }
  .title-screen #background {
    background-size: contain;
  }
}
/* Ensure the layout fits the screen */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.game-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  padding: 0;
  background-color: #161717;
  box-sizing: border-box;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Wrapper for output scroll and focus NPC image */
.output-wrapper {
  display: flex;
  width: 100%;
  height: 25vh; /* Ensure both elements have the same height */
  align-items: flex-start;
  margin-bottom: 0px;
}

/* Focus NPC Image */
.focus-npc-image {
  max-height: 100%; /* Ensure the image fills the available height */
  height: 100%; /* Make the image scale with the output scroll */
  margin-left: 10px; /* Add some space between the output scroll and the image */
  z-index: 3;
}

/* Output scroll section */
.output-scroll {
  flex: 1; /* Allow output-scroll to fill the available space */
  height: 100%; /* Set height to match the parent container */
  background-color: #222;
  color: white;
  padding: 5px;
  overflow-y: auto;
  box-sizing: border-box;
  margin-bottom: 0;
  z-index: 2;
}

/* User input section */
.user-input {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: white;
  border: 1px solid #444;
  box-sizing: border-box;
  margin-bottom: 5px;
  flex-shrink: 0;
  z-index: 2;
}

/* Image and active spells section */
.image-and-spells {
  display: flex;
  width: 100%;
  flex-grow: 1;
  justify-content: space-between;
  margin-bottom: 5px;
  overflow: hidden;
  z-index: 2;
}

.image-panel {
  width: 70%;
  height: 100%;
  object-fit: contain;
  border-right: 2px solid #444;
  z-index: 2;
}

.active-spells {
  width: 30%;
  background-color: transparent;
  padding: 10px;
  font-size: 16px;
  overflow-y: auto;
  color: white;
  box-sizing: border-box;
  z-index: 2;
}

/* Button grid layout */
.button-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 2;
}

.button-grid button {
  padding: 10px 0px;
  background-color: #333;
  color: white;
  border-radius: 0px;
  cursor: pointer;
  z-index: 2;
}

.button-grid button:hover {
  background-color: #444;
}

/* Artist source link */
.artist-link {
  display: block;
  text-align: center;
  margin-top: 0;
  color: #00f;
  text-decoration: underline;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

.artist-link:hover {
  color: #0088ff;
}

/* Info label styling */
.info-label {
  text-align: center;
  font-size: 18px;
  color: #ddd;
  padding: 10px;
  background-color: #333;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 5px;
  flex-shrink: 0;
  z-index: 2;
}

/* Popup container styling */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Optional semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* Remove padding, border, and box-shadow to let the child control its appearance */
}

.popup-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.popup-message {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
}

.popup-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #555;
  border-radius: 5px;
  font-size: 16px;
  background-color: #222;
  color: white;
}

.button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.additional-info {
  margin-bottom: 15px;
  max-height: 200px; /* Adjust as needed */
  overflow-y: auto;
}

.additional-info-item {
  padding: 5px 0;
  color: #ccc;
}

.ask-input-layout {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto; /* Allow scrolling if content exceeds max-height */
  padding: 20px;
  background-color: #333;
  border: 2px solid #444;
  border-radius: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Grid layout inside the popup */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Adjust based on your grid size */
  grid-template-rows: repeat(5, 1fr);
  gap: 5px;
  width: 100%; /* Take up all available width */
  height: auto; /* Adjust height to content */
  box-sizing: border-box; /* Ensure padding/border are accounted for */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .popup-container {
    width: 95%; /* Make use of more width on smaller screens */
    max-width: 600px;
    padding: 5px;
  }
}
.scroll-view {
  max-height: 500px;
  overflow-y: auto;
  width: 100%;
  padding: 10px;
  background-color: #222;
  box-sizing: border-box;
}

.stats-label {
  width: 100%;
  color: #ddd;
  font-size: 16px;
  line-height: 1.5;
}

button.close-button {
  position: absolute; /* Position the button absolutely within the container */
  top: 10px; /* Adjust as needed for vertical placement */
  right: 10px; /* Align the button to the right */
  margin-top: 0; /* Reset any default margin */
  padding: 10px;
  background-color: #333;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  border: none; /* Remove any default border */
}

button.close-button:hover {
  background-color: #444;
}

/* Spells grid layout */
.spells-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  align-items: center;
}

.spell-label, .header-label {
  text-align: left;
  padding: 10px;
  background-color: #444;
  color: white;
  font-weight: bold;
  box-sizing: border-box;
}

.info-button, .purchase-button, .cast-button {
  padding: 10px;
  background-color: #555;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}

.info-button:hover, .purchase-button:hover, .cast-button:hover {
  background-color: #666;
}

.action-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.spell-info-label {
  color: #ddd;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  padding: 10px;
  background-color: #222;
  width: 100%;
  box-sizing: border-box;
}

.header-label:nth-child(3n+2), .header-label:nth-child(3n+3), .spell-label:nth-child(3n+2), .spell-label:nth-child(3n+3) {
  text-align: center;
}

.action-container > button {
  flex: 1;
}

/* Temporary message styling */
.temporary-message {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #444;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 5;
  font-size: 18px;
  text-align: center;
}

/* variables.scss */

/*# sourceMappingURL=style.css.map */
