/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0e0e0e;
  color: #f0f0f0;
  margin: 0;
  padding: 0;
}

#game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

#game-title {
  font-size: 72px;
  font-weight: bold;
  text-align: center;
  font-family: 'Impact', sans-serif;
  margin-bottom: 40px;
}

#game-title a {
  text-decoration: none;
  color: inherit;
}

.title-red {
  color: #e63946;
}

.title-blue {
  color: #457b9d;
}

#game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

button {
  background-color: #e63946;
  color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 24px;
  padding: 15px 30px;
  margin: 10px;
  min-width: 200px;
}

button:hover {
  background-color: #d62828;
}

input[type="text"] {
  font-size: 24px;
  padding: 10px;
  margin: 10px;
  width: 300px;
  border: 2px solid #457b9d;
  border-radius: 5px;
}

.status-bar {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.status {
  width: 45%;
}

.player-red {
  color: #e63946;
}

.player-blue {
  color: #457b9d;
}

.progress {
  background-color: #555;
  border-radius: 5px;
  overflow: hidden;
  height: 10px;
  margin-bottom: 10px;
}

.progress-bar.red {
  background-color: #e63946;
  height: 10px;
}

.progress-bar.blue {
  background-color: #457b9d;
  height: 10px;
}

#position-display {
  margin: 20px 0;
}

#hand-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background-color: #1d3557;
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  width: 150px;
  cursor: pointer;
  position: relative;
}

.card.valid:hover {
  background-color: #457b9d;
}

.card.invalid {
  opacity: 0.5;
  cursor: not-allowed;
}

.card h3 {
  margin-top: 0;
}

#control-buttons {
  margin: 20px 0;
}

#control-buttons button {
  margin: 10px;
  padding: 15px 30px;
  font-size: 18px;
}

#message-box {
  margin: 20px 0;
}

#highlights-container {
  max-height: 600px;
  overflow-y: auto;
  background-color: #1d3557;
  padding: 10px;
  border-radius: 5px;
  margin-top: 20px;
  width: 20%;
}

#highlights-container h2 {
  text-align: center;
}

.move-entry {
  margin-bottom: 5px;
}

.damage-text {
  color: #e63946;
}

.game-over-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 14, 14, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.game-over-overlay h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.tooltip {
  position: absolute;
  top: -5px;
  left: 105%;
  background-color: #333;
  padding: 5px;
  border-radius: 3px;
  width: 200px;
  font-size: 12px;
  display: none;
  z-index: 10;
}

.card:hover .tooltip {
  display: block;
}

/* New styles for updated layout */

#game-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

#latest-move {
  width: 20%;
  margin-right: 10px;
  background-color: #1d3557;
  padding: 10px;
  border-radius: 5px;
}

#latest-move h2 {
  text-align: center;
}

#main-game {
  width: 60%;
}

#highlights-container {
  width: 20%;
  margin-left: 10px;
  background-color: #1d3557;
  padding: 10px;
  border-radius: 5px;
}

#highlights-container h2 {
  text-align: center;
}

#move-history {
  max-height: 500px;
  overflow-y: auto;
}
