/* Reset and base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #222;
  color: white;
  text-align: center;
}

#background-image {
  position: fixed;       /* Fix position so it stays put */
  top: 0;
  left: 0;
  width: 100vw;          /* Full viewport width */
  height: 100vh;         /* Full viewport height */
  object-fit: cover;     /* Cover entire area, maintain aspect ratio */
  z-index: -1;           /* Send behind everything */
  pointer-events: none;  /* Let clicks pass through */
}

button {
  margin: 20px;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
}

/* Search input */
#search-input {
  padding: 10px;
  font-size: 16px;
  margin: 170px auto;
  width: 80%;
  max-width: 400px;
  border-radius: 5px;
  border: 1px solid #0f0436;
  display: block;
}

/* Results container */
#results {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Character list styles */
.characters {
  list-style: none;
  padding: 0;
  margin: 0;
}

.characters li {
  margin: 10px;
  padding: 15px;
  background-color: rgba(51, 51, 51, 0.6); /* semi-transparent grey */
  border-radius: 5px;
  color: #ddd;
  transition: 
    background-color 0.3s,
    color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.characters li:hover {
  background-color: #add8e6;  /* light blue */
  color: #000080;              /* navy blue text */
  transform: scale(1.05);
  box-shadow: 0 0 15px #0000ff, 0 0 25px #add8e6;
  cursor: pointer;
}


/* Pagination buttons */
#pagination-controls button {
  background-color: rgba(51, 51, 51, 0.6); /* semi-transparent grey */
  color: #ddd;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  margin: 0 5px;
  transition: 
    background-color 0.3s,
    color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

#pagination-controls button:hover:not([disabled]) {
  background-color: #add8e6;  /* light blue */
  color: #000080;             /* navy blue */
  transform: scale(1.05);
  box-shadow: 0 0 15px #0000ff, 0 0 25px #add8e6;
  cursor: pointer;
}

#pagination-controls button[disabled] {
  background-color: rgba(51, 51, 51, 0.4); /* more transparent when disabled */
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}



/* Loader */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #444;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility hidden class */
.hidden {
  display: none !important;
}

/* Character modal overlay */
.character-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(129, 81, 17, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


/* Intro modal and video */
#intro-modal,
.intro-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#intro-video,
.intro-video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-video-modal video {
  object-fit: cover;
}

/* Modal buttons for intro video */
.modal-buttons {
  position: absolute;
  width: 100%;
  bottom: 70px;
  display: flex;
  justify-content: center; /* Centers the buttons */
  padding: 0 30px;
  margin-left: -40px;
}

.modal-buttons button {
  background-color: rgba(0, 0, 0, 0.7);
  color: #FFD700;           /* gold font */
  border: 2px solid #FFD700; /* gold border */
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  outline: none;
}

.modal-buttons button:hover {
  background-color: #fffacd;   /* light yellow */
  color: #000000;              /* black font */
  transform: scale(1.1);
  box-shadow: 0 0 20px #FFD700, 0 0 30px #fffacd;
  cursor: pointer;
}

.modal-buttons button:active {
  box-shadow: 0 0 10px 3px #FFD700;
}


/* Start overlay */
#start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.start-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

#start-button {
  margin-top: 450px;  /* increased from 20px to 50px */
  padding: 12px 24px;
  font-size: 1.25rem;
  background: gold;
  color: purple;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}


#start-button:hover {
  background-color: #ffd700;  /* same gold hover */
  transform: scale(1.1);
  box-shadow: 0 0 20px #ffd700, 0 0 30px #fffacd;
}

#start-button:active {
  box-shadow: 0 0 10px 3px #ffd700;
  transform: scale(1);
}


/* Generic modal styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  max-height: 90%;
  overflow-y: auto;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cursor modal */
#cursorModal {
  display: none;
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -25%);
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #cccccc44;
  padding: 1.5rem;
  z-index: 1000;
  width: fit-content;
  max-width: 90vw;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #360202;
  text-align: center;
}

#cursorModal.visible {
  display: block;
}

#cursorModal h2 {
  margin: 0;
  font-size: 1.4rem;
}

#closeModal {
  align-self: flex-end;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease-in-out;
}

#closeModal:hover {
  color: #000;
}

/* Cursor grid */
.cursor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

/* Cursor option */
.cursor-option {
  width: 60px;
  height: 60px;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border 0.2s, transform 0.2s;
}

.cursor-option:hover {
  border: 2px solid #444;
  transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #search-input {
    width: 90%;
  }
}
.cursor-option {
  pointer-events: auto !important;
  z-index: 1000;
}

.start-instructions {
  position: absolute;
  top: 20px;
  width: 100%;
  overflow: hidden;
  z-index: 1001;
  text-align: left;
  padding: 0 20px;
}

.start-instructions p {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: gold;
  font-weight: bold;
  animation: slideText 15s linear infinite;
}

@keyframes slideText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Center the search section vertically */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* Center the search input and related text */
#search-input {
  margin-top: 0; /* remove any top margin pushing it down */
}

#search-input,
#results,
#pagination-controls {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
body {
  cursor: url('cursors/default.png') 16 16, auto;
}

/* For buttons and links */
a, button, input, textarea, select, label {
  cursor: pointer !important;
}

/* Text inputs keep text cursor */
input[type="text"], textarea {
  cursor: text !important;
}

.character-buttons {
  display: flex;
  justify-content: space-around;
  margin: 30px auto;
  max-width: 600px;
  padding: 10px;
}

.char-btn {
  background-color: #ffffff;
  color: #000080; /* navy blue text */
  border: 2px solid #add8e6;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.char-btn:hover {
  background-color: #add8e6;   /* light blue */
  color: #000080;              /* navy blue */
  transform: scale(1.05);
  box-shadow: 0 0 15px #0000ff, 0 0 25px #add8e6;
  cursor: pointer;
}

/* Modal Styling */
.popup-hidden {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.popup-content {
  display: none; /* or flex when visible */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);

  /* Add flexbox centering */
  display: flex;              /* Enables flex layout */
  justify-content: center;    /* Center horizontally */
  align-items: center;        /* Center vertically */

  overflow: auto;             /* Keep scroll if needed */
}


.popup-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.popup-close:hover,
.popup-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Button Styling */
.button-container {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.character-button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}



.hidden-desc {
  display: none;
}

