.center {
    text-align:center;
    margin: auto;
    width: 50px;
    height: 80%;
    overflow: hidden;
}

/* #container {
    margin:auto;
    height: 450px;
    width: 450px;
    overflow: hidden;
} */

#container {
  width: 450px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  touch-action: none;
}

#grid {
  display: block;
}

.field {
  float: center;
  width: 4.7%;
  height: 4.7%;
}

.vertical-bar-container {
    margin:auto;
    height: 300px; /* Adjust the height of the bar container */
    width: 30px; /* Adjust the width of the bar */
    border:1px solid black;
    position: relative;
}

.fill-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #0096FF; /* Fill color of the bar */
}

.field {
    float: left;
    height: 4.7%;
    width: 4.7%;
}

.clear {
    clear: both;
    float: left;
}

.grass {
    background: gray;
}

.wall {
    background: black;
}

.avatar {
    background: red;
}

.goal {
    background: green;
}

#topleft {
    position: absolute;
    top: 10px;
    left: 10px;
}


#wrap {
    text-align:center;
    position: relative;
    width: 100%;
    height: 100%;
}

#outer {
    margin: auto;
    text-aligh: center;
    width: 100px;
    height: 100px;
    transform-origin: 0% 0%;
    border-radius: 10px;
}


.card {
    margin:auto;
    outline: None;
    border-style: none !important;
    width: 50%;
}

svg {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.float-container {
    width:100%;
}

.float-child {
    float: left;
    padding: 10px;
} 


#alert-container {
    display: none;
    position: fixed;
    top: 4%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: lightgreen;
    color: white;
    width:400px;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

.float-container {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: flex-start;
  gap: 20px;

  width: fit-content;        /* 👈 shrink to content */
  margin: 0 auto;            /* 👈 center on page */
}

.float-child {
  float: none;
  padding: 10px;
}

#game-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

#sidebar {
  width: 100px;
  font-size: 20px;
}

#instruction_card {
  max-width: 700px;
  margin: 6px auto 10px auto;
  padding: 1px;
  background: transparent;

  border: 1px solid gray;

  border-radius: 8px;
}

.fill-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #0096FF;
}

#game_selector {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

#game_choice {
  margin-top: 8px;
  font-size: 20px;
  padding: 4px 8px;
  color: #333;
}

.game-message {
  width: 450px;
  height: 450px;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: bold;
  text-align: center;
}