.title-screen .form-container {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center elements horizontally */
  justify-content: center; /* Center the form elements vertically */
  width: 90%; /* Width for the container */
  max-width: 1000px; /* Max width for larger screens */
  height: 100vh; /* Full height of the viewport */
  margin: 0 auto; /* Center horizontally */
  margin-top: 200px; /* Default top margin for larger screens */
  padding: 0;
}

input {
  margin: 3px 0;
  padding: 8px;
  width: 100%; /* Full width within the form container */
  border-radius: 2px;
  background-color: #333;
  color: white;
  border: 1px solid #444;
  font-size: 16px;
}

input::placeholder {
  color: #888;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the checkbox and label together */
  margin: 0 auto; /* Centers the entire container */
  width: fit-content; /* Container shrinks to fit the checkbox and label */
}

label {
  color: white;
  margin-left: 5px; /* Adds a small margin between the checkbox and the label */
  white-space: nowrap; /* Prevents the label from breaking into multiple lines */
}

button {
  width: 100%; /* Ensure the button takes up full width */
  max-width: 400px; /* Limit max width for larger screens */
  padding: 12px;
  background-color: #333;
  color: white;
  border-radius: 5px;
  border: 1px solid #444;
  cursor: pointer;
  text-align: center;
}

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

#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("title.jpg");
  background-size: contain; /* Ensures the entire image is shown without cropping */
  background-repeat: no-repeat;
  background-position: center;
  background-color: black; /* Black borders for areas not covered by the image */
  z-index: -1;
}

/* Media Queries for responsiveness */
/* Small devices (max-width: 600px) */
@media (max-width: 600px) {
  .form-container {
    width: 100%; /* Full width on small screens */
  }
  input {
    font-size: 14px; /* Adjust font size for smaller screens */
  }
  button {
    max-width: 100%; /* Make buttons full width on small screens */
    padding: 10px; /* Slightly reduce padding for small screens */
    font-size: 14px; /* Adjust button font size */
  }
  #background {
    background-size: cover; /* Ensure background covers the entire screen */
  }
}
/* Medium devices (600px - 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .form-container {
    width: 95%; /* Slightly narrower width */
    max-width: 800px; /* Max width for medium-sized screens */
  }
  input {
    font-size: 15px; /* Slight adjustment for medium screens */
  }
  button {
    max-width: 300px; /* Adjust button width for medium screens */
    padding: 11px;
    font-size: 15px;
  }
  #background {
    background-size: cover; /* Ensure the background covers the screen */
  }
}
/* Large devices (over 900px) */
@media (min-width: 901px) {
  .form-container {
    max-width: 1000px; /* Max width for large screens */
  }
}
/* 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 section */
.image-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh; /* Make the image layout take the full viewport height */
  overflow: hidden;
  z-index: 2;
}

.image-panel {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensure the image is contained and maintains its aspect ratio */
  z-index: 2;
}

/* Button grid layout */
.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 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;
  }
  .focus-npc-image {
    max-height: 150px; /* Set a smaller max height for the image */
    width: auto; /* Ensure the width scales proportionally */
    height: auto; /* Ensure the height scales proportionally */
    margin-left: 0; /* Remove left margin for better alignment */
    margin-top: 10px; /* Add some space above the image */
    align-self: center; /* Center the image horizontally */
  }
}
.scroll-view {
  height: 100%;
  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: #d3d3d3; /* Light grey background */
  color: #000; /* Black text */
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  font-size: 18px;
  text-align: center;
}

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