/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'MedievalSharp', cursive;
    background-color: #1c1c1c;
    color: #fff;
  }
  
  header {
    background-color: #8b0000;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
  }
  
  nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }
  
  nav a:hover {
    color: #ffd700;
  }
  
  main {
    text-align: center;
    padding: 2rem;
  }
  
  h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  }
  
  p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .cta-button {
    display: inline-block;
    background-color: #ffd700;
    color: #1c1c1c;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #ffdf80;
  }
  
  footer {
    background-color: #8b0000;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
  }
  
  /* Add a parchment paper background */
  main {
    background-image: url('./bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4rem;
  }
  
  /* Add a medieval border */
  main {
    border: 10px solid #8b0000;
    border-image: url('./leaves.png') 30 round;
  }
  
  /* Add a custom font */
  @import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

  /* ... previous styles ... */

.game-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
  }
  
  .grid-view {
    flex: 1;
    margin-right: 2rem;
  }
  
  .grid-placeholder {
    background-color: #8b0000;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
  }
  
  .game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .text-area {
    background-color: #8b0000;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 2rem;
  }
  
  .game-controls {
    background-color: #8b0000;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
  }

  /* ... previous styles ... */
/* ... previous styles ... */

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 8rem);
    text-align: center;
  }
  
  #login-placeholder {
    margin-bottom: 2rem;
  }
  
  #login-button,
  #logout-button {
    background-color: #ffd700;
    color: #1c1c1c;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #login-button:hover,
  #logout-button:hover {
    background-color: #ffdf80;
  }
  
  .logged-in-info {
    display: flex;
    align-items: center;
  }
  
  .logged-in-info.hidden,
  #login-placeholder.hidden {
    display: none;
  }
  
  #username {
    margin-right: 1rem;
    font-size: 1.2rem;
    color:rgba(0, 0, 0, 0.4);
  }

  
  


  .game-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    margin-top: 20px;
  }
  
  #north-button {
    grid-column: 2;
    grid-row: 1;
  }
  
  #west-button {
    grid-column: 1;
    grid-row: 2;
  }
  
  #east-button {
    grid-column: 3;
    grid-row: 2;
  }
  
  #south-button {
    grid-column: 2;
    grid-row: 2;
  }
  
  .game-controls button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #8b0000;
    color: #fff;
    border: none;
    cursor: pointer;
  }