body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
  }

.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.left-panel{
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.6;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 16px;
    width: 26%; /* ✅ Changed from 25% to 35% to make it wider */
    max-height: 90vh;
}

.right-panel {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.6;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 16px;
    width: 26%; /* ✅ Changed from 25% to 35% to make it wider */
    max-height: 90vh;
}

.grid-panel {
    width: 55%;
    text-align: center;
}

table {
    margin: auto;
    border-collapse: collapse;
}

td {
    width: 60px;
    height: 60px;
    border: 2px solid white;
    font-size: 40px;
    text-align: center;
    vertical-align: middle;
}

input, button {
    padding: 10px;
    font-size: 18px;
    margin-top: 10px;
    width: 100%;
}

.percepts {
    margin-top: 20px;
    font-size: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 80px 80px 80px 80px; /* 4 columns (adjust based on grid size) */
    grid-template-rows: 80px 80px 80px 80px;    /* 4 rows (adjust based on grid size) */
    gap: 4px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .tile {
    background-color: #222;
    border: 2px solid #555;
    color: #fff;
    position: relative;
    text-align: center;
    font-size: 14px;
    padding-top: 10px;
    box-sizing: border-box;
  }
  
  .agent {
    width: 40px;
    height: 40px;
    background-color: #00f;
    border-radius: 50%;
    margin: auto;
    margin-top: 10px;
  }
  
  .perception {
    font-size: 10px;
    color: #bbb;
    position: absolute;
    bottom: 2px;
    width: 100%;
    text-align: center;
  }
  
  .hidden-tile {
    color: #444;
  }
  
  
button {
    padding: 10px;
    font-size: 18px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
  }
  
  button:hover {
    background-color: #555;
  }
  
  .game-over {
    color: red;
    font-size: 24px;
    margin-top: 20px;
    text-align: center;
  }
  
  .loss-message {
    text-align: center;
    font-size: 1.8rem;
    color: red;
    margin-top: 20px;
    font-weight: bold;
}
