body {
    font-family: 'MedievalSharp', cursive;
    background-color: #f4f4f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    margin: 0;
  }

  h2 {
    font-size: 32px;
    font-weight: bolder;
  }

  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
  }

  button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
  }

  button:hover {
    background-color: #45a049;
  }

  .deck {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: relative;
  }

  .hero-card {
    width: 125px;
    height: 200px;
    background-color: lightgray;
    background-image: url("../../assets/images/fronts/card_front_5.png");
    background-size: cover;
    border-radius: 10px;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 10px;
  }

  .avatar {
    width: 85px;
    height: 85px;
    background-image: url("../../assets/images/hero_2.png");
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin-bottom: 10px;
  } 

  .hero-stats {
    margin-top: 10px;
    font-size: 14px;
  }

  .card {
    width: 100px;
    height: 150px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    z-index: 1;
    cursor: pointer;
  }

  .card.weapon {
    background-color: lightyellow;
  }

  .card.armor {
    background-color: lightblue;
  }

  .card.stacked {
    margin-bottom: 10px; /* Adds vertical space between stacked cards */
  }

  .card-stats {
    font-size: 12px;
    margin-top: 5px;
    color: #333;
  }

  .action-log {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
  }

  #actionLog {
    height: 100px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
  }

  /* NPC deck styles */
  .npc-pile {
    width: 100px;
    height: 150px;
    background-color: gray;
    background-image: url('../../assets/images/backs/card_back_2.png');
    background-size: cover;
    border-radius: 10px;
    border: 2px solid black;
    cursor: pointer;
    margin-right: 20px;
  }

  .npc-faceup {
    width: 100px;
    height: 150px;
    background-color: white;
    background-image: url("../../assets/images/fronts/front_3.png");
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    z-index: 2;
    cursor: pointer;
  }

  .discard-pile {
    margin-top: 20px;
    border: 2px solid #333;
    height: 178px;
    width: 117px;
    border-radius: 10px;
    background-color: lightgray;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
  }

  .bottom-section {
    display: flex;
    align-items: center;     /* Centers vertically */
    flex-direction: column;
    height: 100vh;           /* Takes up the full height of the viewport */
}
  .board {
      background-image: url('../../assets/images/boards/background.webp');
      background-size: cover;
      background-position: center;
      width: 100%;
      height: 100vh; /* Set the height of the board */
  }

  .discard-pile .card {
    position: absolute;
    z-index: 1;
    margin: 0; /* Remove margins to overlap */
}

#muteButton,
#skipButton {
  background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
}

@keyframes draw-card-from-left {
  0% { opacity: 0; transform: translateX(-100%); }
  100% { opacity: 1; transform: translateX(0); }
}

.card-animation {
  animation: draw-card-from-left 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../../assets/images/fronts/front_3.png");
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  width: 80px;
  height: 150px;
}

.card-image {
  width: 100px;
  height: 150px;
  margin-bottom: 10px;
}


.deck-counter {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

.hidden {
  display: none;
}

.game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.game-over h2 {
  font-size: 48px;
}

.game-over p {
  font-size: 24px;
  margin-bottom: 20px;
}

#restartButton {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

#restartButton:hover {
  background-color: #45a049;
}

/* Bottom Menu */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #333; /* Dark background for the menu bar */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000; /* Ensure it's on top of everything */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3); /* Optional shadow for better visual */
}

.menu-icon {
  background-color: #4CAF50;
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  right: 40px;
}

.menu-icon:hover {
  background-color: #45a049;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: black;
}

button#exitGame {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 18px;
  background-color: red;
  color: white;
  border: none;
  cursor: pointer;
}

button#exitGame:hover {
  background-color: darkred;
}

.victory {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 255, 0, 0.8); /* Greenish tint for victory */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.victory h2 {
  font-size: 48px;
}

.victory p {
  font-size: 24px;
  margin-bottom: 20px;
}

#restartButton {
  padding: 10px 20px;
  font-size: 18px;
  background-color: green;
  color: white;
  border: none;
  cursor: pointer;
}

#restartButton:hover {
  background-color: darkgreen;
}

.hidden {
  display: none;
}

