@import url('https://fonts.googleapis.com/css2?family=Cinzel&display=swap');

body {
  font-family: 'Cinzel', serif;
  min-height: 100vh;
  margin: 0;
  background-image: url('../images/BGI.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  box-sizing: border-box;
}

.main-content-box {
  margin: 100px auto 40px auto;
  width: 90%;
  max-width: 1200px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  display: block;
  text-align: center;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  box-sizing: border-box;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.header .home img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  padding: 8px 12px;
  transition: all 0.2s ease-in-out;
  cursor: default;
}

.nav-links a:hover {
  text-shadow: 0 0 10px gold;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background-color: white;
  opacity: 0.5;
}

h1, h2, h3 {
  text-align: center;
  margin-top: 20px;
  color: white;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: rgba(34, 34, 34, 0.85);
  cursor: default;
  table-layout: fixed;
  word-wrap: break-word;
  font-size: 0.85em;
}

th, td {
  padding: 10px;
  border: 1px solid #333;
  text-align: left;
  color: white;
  font-size: 0.9em;
}

th {
  background-color: rgba(51, 51, 51, 0.9);
}

tr:hover {
  background-color: rgba(42, 42, 42, 0.9);
}

td:hover {
  text-shadow: 0 0 8px gold;
}

th:first-child,
td:first-child {
  width: 50%;
}

#attributeTable {
  table-layout: auto !important;
  width: auto !important;
  font-size: 0.85em;
  margin: 0 auto;
}

#attributeTable th,
#attributeTable td {
  width: auto;
  text-align: center;
}

.skills {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

.skills h3 {
  margin-bottom: 10px;
  text-align: center;
  color: white;
}

.skills ul {
  padding-left: 20px;
  list-style-position: inside;
  text-align: left;
  margin: 0;
  font-size: 0.9em;
}

a {
  color: white;
  text-decoration: none;
  cursor: default;
}

a:hover {
  text-shadow: 0 0 10px gold;
}

.results-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.results-column {
  flex: 1;
  min-width: 300px;
}

.results-column ul {
  list-style: none;
  padding: 0;
}

.results-column li {
  background-color: rgba(34, 34, 34, 0.85);
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #333;
  transition: background-color 0.2s ease-in-out;
  text-align: left;
  cursor: default;
  font-size: 0.9em;
}

.results-column li:hover {
  background-color: rgba(42, 42, 42, 0.9);
  text-shadow: 0 0 8px gold;
}

ul li:hover {
  text-shadow: 0 0 8px gold;
}

.map-section {
  margin-top: 40px;
  text-align: center;
}

.map-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.map-container.zoomed {
  transform: scale(2);
  cursor: zoom-out;
  z-index: 999;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.map-container.not-zoomed {
  transform: scale(1);
  cursor: zoom-in;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

/* === UPDATED MAP AREA === */

.bundle-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0px;
  margin-top: 20px;
  flex-wrap: nowrap;
  width: 100%;
}

#graciaMap,
#gameMap {
  width: 100%;
  height: auto;
  display: block;
}

.marker {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: red;
  border: 1px solid black;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.marker.blue {
  background-color: blue;
}

th.sort-asc::after {
  content: " ▲";
  font-size: 0.8em;
  color: gold;
}

th.sort-desc::after {
  content: " ▼";
  font-size: 0.8em;
  color: gold;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
  }

  .nav-links {
    margin-top: 10px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.7em;
    padding: 10px 2px;
  }

  .nav-divider {
    height: 14px;
  }

  .main-content-box {
    margin-top: 120px;
    width: 95%;
    padding: 15px;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  table {
    width: 100%;
    font-size: 0.75em;
  }

  th, td {
    padding: 8px;
    font-size: 0.8em;
  }

  #attributeTable {
    width: 100% !important;
  }

  .marker {
    width: 2px;
    height: 2px;
    border: 0.3px solid black;
  }

  .bundle-container {
    flex-direction: row; /* side by side even on mobile */
    flex-wrap: nowrap;
  }

  .map-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
  }

  .map-container img {
    width: 100%;
	height: auto;
    display: block;
  }
}
