/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Chakra Petch', sans-serif;
}


.menu-button {
  background: #333;
  color: #fff;
  border: 2px solid #444;
  padding: 15px 30px;
  margin: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  width: 200px;
}

.menu-button:hover {
  background: #444;
  border-color: #666;
}

.game-ui {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 50;
}

.level-info {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 5px;
  z-index: 1000;
  transform-origin: top right;
  transition: right 0.3s ease-out;
}

/* Canvas styling */
canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Basic UI elements */
.panel, .label, .textbox, .button {
  border: 1px solid #000;
  padding: 10px;
  margin: 5px;
  font-family: sans-serif;
  font-size: 14px;
}

.title {
  font-size: 24px;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

.subtitle {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.caption {
  font-size: 12px;
  color: #444;
}

.comment {
  font-size: 10px;
  color: #888;
}

.turn-info {
    position: fixed;
    top: 55px;
    right: 20px;
    padding: 10px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.turn-image {
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
}

.white-turn .turn-image {
    background-image: url('/images/white_on_move.webp');
    border: 2px solid #fff;
}

.black-turn .turn-image {
    background-image: url('/images/black_on_move.webp');
    border: 2px solid #000;
}

.turn-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: #fff;
    margin-top: 5px;
}

h1, h2, h3, h4, h5, h6, .menu-title, .level-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.menu-button, .game-over-button, .back-button {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.level-content p, .game-ui {
    font-family: 'Chakra Petch', sans-serif;
}

@keyframes flicker {
    0%, 100% { 
        color: #008080; /* teal */
        text-shadow: 0 0 7px #008080;
    }
    50% { 
        color: #004040;
        text-shadow: 0 0 4px #004040;
    }
}

.menu-title {
    color: white;  /* Keep main title white */
}

.menu-title .flicker {
    color: #008080; /* teal base color */
    animation: flicker 2s infinite ease-in-out;
}



.player-status-container {
    position: fixed;
    top: 80px;  /* Below team display */
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-status {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-online {
    background-color: #4CAF50;
}

.status-offline {
    background-color: #f44336;
}