@font-face {
    font-family: 'OctoberCrow';
    src: url('fonts/Crow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-image: url("CustomPics/WarpedSouls.png");
    background-size: cover;        
    background-attachment: fixed;   
    background-repeat: no-repeat;
    font-family: 'OctoberCrow', sans-serif;
    color: white;
    animation: fadeIn 1s ease-in;
}

h1, p {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

main {
    margin-top: 80px;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    min-width: 600px; /* to prevent too much shrinking */
}

table th, table td {
    border: 1px solid #444;
    padding: 4px;
    text-align: left;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    font-size: 14px;
    word-wrap: break-word;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.big-title {
  text-align: center;
  color: white;
  font-size: 100px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.5);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  z-index: 1000;
}

.top-nav nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.top-nav nav li {
  margin: 0 20px;
}

.top-nav nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.top-nav nav a:hover {
  color: rgb(6, 117, 6);
}

main {
  margin-top: 60px; /* Adjust based on nav height */
}

.hotbar {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 10px 10px 0 0;
  z-index: 1000;
}

.slot {
  width: 50px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  margin: 0 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  padding: 2px;
}

.ghost-name {
  font-size: 10px;
  text-align: center;
  margin-bottom: 2px;
  line-height: 1;
}

.number {
  font-size: 14px;
  text-align: center;
  line-height: 1;
}

.slot:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.info-box {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-family: 'OctoberCrow', sans-serif;
}

.info-box.bottom-left {
  position: fixed;
  bottom: 0;
  left: 0;
  margin: 10px;
}

.info-box.bottom-right {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 10px;
}

.sticker-img {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 150px;
  height: auto;
  z-index: 100;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  transform: rotate(5deg);
  border-radius: 10px;
}

.sticker {
  position: fixed;
  font-size: 50px;
  opacity: 0.7;
  z-index: 10;
}

.sticker1 {
  top: 20%;
  left: 10%;
}

.sticker2 {
  top: 40%;
  right: 15%;
}

.sticker3 {
  bottom: 30%;
  left: 20%;
}

.sticker4 {
  bottom: 20%;
  right: 10%;
}

.map-container {
  position: relative;
  display: inline-block;
}

.marker {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 40px), -50%);
}

#mapImage {
  display: none;
  margin-left: 22cm;
  width: 30%;
}

.ghost-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding: 10px;
}

.ghost {
  background: rgba(15, 15, 15, 0.9);
  padding: 14px;
  border-radius: 10px;
  color: white;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}

.ghost h3 {
  margin-top: 0;
  color: #8cfffb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
}

.ghost p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.35;
}

.ghost p strong {
  color: #f0f0f0;
}

.speed-meter {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.speed-meter .meter-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}

.speed-meter .meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #31d5ff, #09b7ff);
  transition: width 0.3s ease;
}

.speed-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.speed-meter .meter-label {
  min-width: 70px;
  text-align: right;
  color: #cceeff;
  font-size: 12px;
  font-weight: bold;
}

.speed-meter .meter-label::after {
  content: " 🔊";
  margin-left: 3px;
}

.speed-meter .sound-btn {
  background: rgba(77, 190, 240, 0.2);
  border: 1px solid rgba(77, 190, 240, 0.5);
  color: #b8f8ff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  max-width: 60px;
}

.speed-meter .sound-btn:hover {
  background: rgba(77, 190, 240, 0.35);
}



@media (max-width: 960px) {
  .ghost-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .ghost-list {
    grid-template-columns: 1fr;
  }
}