body {
    background-image: url('images/background.png');
    background-color: #1a1a1a;
    font-family: 'Cinzel', serif;
    color: #e0e0e0;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

main {
    width: 100%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

h1 {
    text-align: center;
    color: #f0e68c; /* Khaki */
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}


h3 {
    text-align: center;
    color: #bd5050; /* Khaki */
    margin-top: 0;
    margin-bottom: 2rem;
  
   
    font-size: .9rem;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.top-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.search-container {
    flex-grow: 1;
}

.game-select-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#game-select {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    padding: 10px;
    background-color: #222;
    border: 1px solid #555;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

#game-select:focus {
    outline: none;
    border-color: #f0e68c;
}

#search-input {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    background-color: #222;
    border: 1px solid #555;
    color: #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box;
}

#search-input::placeholder {
    color: #888;
}

#search-input:focus {
    outline: none;
    border-color: #f0e68c;
    box-shadow: 0 0 5px #f0e68c;
}

.results-container {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 4px;
}

/* Custom scrollbar for webkit browsers */
.results-container::-webkit-scrollbar {
    width: 10px;
}
.results-container::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}
.results-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.results-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

#results-table {
    width: 100%;
    border-collapse: collapse;
}

#results-table th,
#results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
    vertical-align: middle;
}

#results-table th:first-child,
#results-table td:first-child {
    width: 64px;
    text-align: center;
    padding: 8px;
}

.item-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid #444;
    vertical-align: middle;
}

#results-table td:nth-child(2) {
    font-family: 'Cinzel', serif;
    font-size: 1em;
}

#results-table td:nth-child(3) {
    font-family: monospace;
    font-size: 1.1em;
}

#results-table td:nth-child(4) {
    text-align: center;
}

#results-table thead th {
    background-color: #1a1a1a;
    color: #f0e68c;
    position: sticky;
    top: 0;
    z-index: 1;
}

#results-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

#results-table tbody tr:hover {
    background-color: rgba(240, 230, 140, 0.1); /* Khaki hover */
}

.copy-btn {
    font-family: 'Cinzel', serif;
    background-color: #4a4a4a;
    color: #f0e68c;
    border: 1px solid #666;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.copy-btn:hover {
    background-color: #f0e68c;
    color: #1a1a1a;
}

.copy-btn:disabled {
    background-color: #335c33;
    color: #9fcc9f;
    cursor: not-allowed;
    border-color: #444;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 1rem;
  width: 90%;
  max-width: 500px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: transparent;
  border: none;
  
  cursor: pointer;
    color: #ff0000;
  font-size: 3.5rem;
}

.modal-icon {
  max-height: 60%;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 1rem;
}

.modal-info {
  text-align: center;
}

.modal-info h2 {
  margin: 0.5rem 0 0.25rem;
}

.modal-info p {
  margin: 0;
  color: #ffffff;
}
.modal-content {
  position: relative;
  background: #414141;
  padding: 0.5rem;
  width: 90%;
  max-width: 500px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  /* center content vertically & horizontally */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.modal-icon {
  /* take up all available space */
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

.modal-info {
  /* shrink-wrap below the icon */
  padding: 0.5rem 0;
  text-align: center;
}
#modal-copy-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}
.top-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.top-buttons button {
  background: #531010;
  border: 1px solid #ccc;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
    color: #fff;
  border-radius: 4px;
}

.top-buttons button:hover {
  background: #9d5555;
}
/* ABOUT MODAL STYLING */
#about-modal .modal-content {
  /* make it wider */
  width: 80%;
  max-width: 600px;
  height: 30vh;
  /* match page background */
  background-color: inherit;
  /* remove extra padding if desired */
  padding: 1.5rem;
  /* ensure it’s centered and spacious */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: auto;
  border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border-width: 11px;
}

#about-modal .modal-info {
  /* switch to Arial and bump the size */
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  color: #b74c4c;      /* tweak for your background’s contrast */
  line-height: 1.5; /* better readability */
}

/* Make headings stand out */
#about-modal .modal-info h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

/* Slightly darken the close button for visibility */
#about-modal .modal-close {
  color: #ff0000;
  font-size: 3.5rem;
}
/* About‐modal link styling */
#about-modal .modal-info a {
  color: inherit;
  text-decoration: none;  /* or underline if you prefer */
  /* remove any default text-shadow/glow if present */
  text-shadow: none;
}

/* On hover, you can still show an underline or subtle change */
#about-modal .modal-info a:hover {
  text-decoration: underline;
}

/* Modal background image + opaque */
.modal-content {
  /* your existing rules… */
  background-image: url('images/background.png');
  background-size: cover;
  background-position: center;
  /* ensure the background is fully opaque */
  background-color: rgba(255,255,255,1);
  /* if you had `background-color: inherit` or transparency, remove it */
}

/* If you want the overlay dimmer to stay semi-transparent, leave .modal alone.  
   Otherwise, to make the full-screen overlay opaque too: */
.modal {
  background: #00000089; /* or another solid color */
}
/* ABOUT MODAL BACKGROUND IMAGE */
#about-modal .modal-content {
  /* use your background.png */
  background: url('images/background.png') center center no-repeat;
  background-size: cover;
  /* ensure it’s fully opaque (no transparency) */
  opacity: 1;
}
/* Give the About modal a thick, gold outline */
#about-modal .modal-content {
  /* if you already have a border set, you can replace it or layer an outline */
  border: 4px solid #f0e68c;
  /* or, if you prefer an outline that doesn’t affect layout: */
  /* outline: 4px solid #f0e68c; outline-offset: 4px; */
}
/* Gold border on the Icon Preview modal */
#icon-modal .modal-content {
  border: 4px solid #f0e68c;
  /* or, if you’d rather use an outline that doesn’t affect box size:
  outline: 4px solid #f0e68c;
  outline-offset: 4px; */
}
/* wrapper to position the clear button */
.search-wrapper {
  position: relative;
}

/* the little “X” button */
.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.clear-btn:hover {
  color: #f0e68c;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f0e68c;       /* shiny gold */
  border: none;
  font-size: 2rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  color: #1a1a1a;
  z-index: 10;
}

#modal-prev { left: 1rem; }
#modal-next { right: 1rem; }

.modal-nav:hover {
  background: #d4c25a;
}
