body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #161616;
  color: #cecece;
  height: 100%;
  font-family: "Share Tech Mono", monospace;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-container {
  position: relative;
  justify-content: center;
}

.viewer-count {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  /* font-size: 24px; */
}

.animal-type-display {
  padding-left: 8px;
  margin: 5px 0;
}

#herbivore-display {
  color: #309898;
}

#carnivore-display {
  color: #cb0404;
}

#omnivore-display {
  color: #ffaf2e;
}

#view {
  border: 1px solid #cecece;
  display: block;
  margin-inline: auto;
  cursor: grab;
}

#view:active {
  cursor: grabbing;
}

#right-info {
  position: absolute;
  right: -280px;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: 240px;
  margin-left: 32px;
}

#left-info {
  position: absolute;
  left: -200px;
  top: 100px;

  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: 240px;
  margin-right: 32px;
}

@media (max-width: 1600px) {
  .canvas-container {
    flex-direction: column;
    align-items: center;
  }

  #left-info,
  #right-info {
    top: inherit;
    right: inherit;
    left: inherit;
    position: relative;
  }

  #main-info {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

.entity-category-display {
  font-size: 20px;
  font-weight: 600;
}

.animal-type-display {
  font-size: 16px;
  font-weight: 400;
}

footer {
  width: 100%;
  margin-top: auto;
  text-align: center;
  color: #cecece;
  padding: 32px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

button {
  background-color: #161616;
  color: #cecece;
  border: 1px solid #cecece;
  border-radius: 16px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #cecece;
  color: #161616;
}

button:disabled {
  background-color: #161616;
  color: #686868;
  border: 1px solid #686868;
  cursor: not-allowed;
}

a {
  color: #6868ce;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  text-decoration: underline;
  color: #8295f1;
}

.logo {
  perspective: 600px;
  cursor: pointer;
}

.logo span {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

a.logo {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a.logo:hover {
  transform: scale(1.2);
}

.betting-box {
  background-color: #1e1e1e;
  border: 2px solid #cecece;
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
  width: 420px;
  text-align: center;
}

#balance-display {
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 36px;
  color: #ffd700;
}

.betting-icon {
  font-size: 28px;
}

.bet-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input {
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #cecece;
  background-color: #161616;
  color: #cecece;
  text-align: center;
}

.bet-buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.bet-buttons button {
  flex: 1;
}

#bet-statuses {
  margin-top: 16px;
  font-style: italic;
  font-size: 14px;
  color: #7fd0ff;
  background: #161616;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #cecece;
}

#bet-statuses h3 {
  font-size: 18px;
  color: #cecece;
}

#bet-status-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.bet-status {
  padding: 8px 4px;
  border-radius: 8px;
}

.bet-increase {
  border: 2px solid #4caf50;
}

.bet-decrease {
  border: 2px solid #f44336;
}

.bet-won {
  color: #22ff44;
  font-weight: bold;
}

.bet-lost {
  color: #ff4422;
  font-weight: bold;
}

#leaderboard {
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  background-color: #1e1e1e;
  border: 2px solid #cecece;
  border-radius: 12px;
  padding: 20px;
}

.leaderboard-list {
  counter-reset: section;
}

.leaderboard-entry {
  width: 100%;
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #cecece;
}

.leaderboard-username {
  flex: 1;
  font-weight: bold;
  color: #cecece;
}

.leaderboard-entry::before {
  counter-increment: section;
  content: counter(section) ". ";
}

.leaderboard-name {
  color: #cecece;
}

.leaderboard-score {
  color: #ffd700;
  font-weight: bold;
}

.bet-input {
  display: flex;
  gap: 8px;
}

.bet-input input {
  flex: 1;
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #f0f0f0;
    color: #161616;
  }

  button {
    background-color: #f0f0f0;
    color: #161616;
    border: 1px solid #161616;
  }

  button:hover {
    background-color: #161616;
    color: #cecece;
    border: 1px solid #cecece;
  }

  button:disabled {
    background-color: #f0f0f0;
    color: #a2a2a2;
    border: 1px solid #a2a2a2;
    cursor: not-allowed;
  }

  .betting-box {
    background-color: #f0f0f0;
    border: 2px solid #161616;
    color: #161616;
  }

  input {
    background-color: #f0f0f0;
    color: #161616;
    border: 1px solid #161616;
  }

  #bet-statuses {
    color: #007acc;
    background: #f0f0f0;
  }

  #bet-statuses h3 {
    color: #161616;
  }

  #balance-display {
    color: #bb8700;
  }

  #leaderboard {
    background-color: #f0f0f0;
    border: 2px solid #161616;
    color: #161616;
  }

  .leaderboard-entry {
    border-bottom: 1px solid #161616;
  }

  .leaderboard-score {
    color: #bb8700;
  }
}
