/* shared.css
* This file contains styles that are shared across multiple pages in the arcade hub.
* Add common styles here to maintain a consistent look and feel across the site.
*/

/* global styles */


  /***** text syles *****/

body {
  background-color: black;
  color: white;
  margin: 0;
  height: 100vh;
  font-family: Arial, sans-serif;
}

.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu {
  display: flex;
  gap: 60px;
}

.main-title {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #ff4c4c;
  }

.subtitle {
    font-size: 2rem;
    margin: 20px;
  }

.score {
    font-size: 2rem;
    margin: 20px;
    color: #ffffff;
  }

  /***** input *****/

.input {
  padding: 8px 12px;
  font-size: 36px;
  border: 2px solid rgb(255, 0, 0);
  border-radius: 4px;
  margin: 10px;
  color: white;
  text-align: center;
  background-color: transparent;
  margin: 20px;
  margin-bottom: 80px;
}

.input:focus {
  outline: none;
  box-shadow: 0 0 10px red;
}

.input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  /***** buttons *****/

.button {
  display: flex;
  padding: 20px 40px;
  border: 2px solid rgb(255, 0, 0);
  border-radius: 16px;
  text-decoration: none;
  color: white;
  font-size: 40px;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  cursor: pointer;
}

.button:focus {
  outline: 2px solid red;
  background-color: transparent;
}

.test-button {
    padding: 8px 14px;
    font-size: 24px;
    font-family: monospace;
    background-color: #111;
    color: #00ff00;
    border: 2px dashed #00ff00;
    border-radius: 4px;
    cursor: pointer;
}

.reset-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 20px;
  padding: 4px 8px;
  border-radius: 8px;
  color: white;
  border: 2px solid rgb(255, 0, 0);
  background-color: transparent;
  cursor: pointer;
}

.button-row {
  display: flex;
  gap: 10px;
}

/***** leaderboard *****/

.leaderboard-section {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #ff0000;
    border-radius: 8px;
    max-width: 600px;
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

#leaderboard-table th,
#leaderboard-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

#leaderboard-table th {
    font-weight: bold;
}

/***** game canvas *****/

#game-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#game-canvas {
  border: 2px solid rgb(255, 0, 0);
  background-color: black;
  display: block;
  margin: 0 auto;
}