     canvas {
        box-shadow: black 20px 10px 50px;
    }
    body {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0;
      margin: 0;
      height: 100vh;
      background: linear-gradient(
        0deg,
        rgb(17, 161, 118) 0%,
        rgb(195, 125, 34) 100%
      );
    }
    h1 {
      margin: 0px;
      margin-bottom: 5px;
      font-size:large;
      color: rgb(46, 31, 31);
      font-family: Verdana, Geneva, Tahoma, sans-serif;
    }
    .naps {
        background: linear-gradient(
        0deg,
        rgb(196, 119, 75) 50%,
        rgb(83, 120, 141) 100%
      );
    }
    .statpoints {
      width: 50px;
      background-color: bisque;
    }
    .napit {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        margin-top: 5px;
        font-weight: bolder;
        border-radius: 3%;
        background: linear-gradient(
        0deg,
        rgb(143, 140, 119) 50%,
        rgb(97, 187, 214) 100%
      );
      border-radius: 5%;
    }
    .stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 60%;
    margin: 0 auto;
    gap: 10px;
    align-items: center;
    }
    .player-stats{
      font-weight: bold;
      display: grid;
      grid-template-columns: repeat(4, auto); 
      gap: 5px 5px; 
      padding: 0;
    }
    .cpu-stats {
      font-weight: bold;
      display: grid;
      grid-template-columns: repeat(4, auto); 
      gap: 5px 5px; 
      padding: 0;
      margin-left: 10px;
    }

    .player-stats input, .cpu-stats input {
        width: 100px;
        text-align: right;
        font-weight: bolder;
        color: rgb(29, 28, 28);
        background: linear-gradient(
        0deg,
        rgb(126, 117, 35) 50%,
        rgb(195, 139, 34) 100%
      );
    }

    .player-stats .name, .cpu-stats .name {
        
        grid-column: 1 / span 2;
        text-align: center;
        font-weight: bold;
        font-size: 1.2em;
    }

    .hidden {
        display: none;
    }
    .death {
        background-color: red;
    }
    .life {
      background-color: green;
    }
    .beginner {
      background-color: goldenrod;
    }
    .log-container {
        text-align: center;
        padding-top: 5px;
        margin-left: 15%;
        margin-right: 5px;
        border-radius: 5%;
        width: 200px;
        background: linear-gradient(
          0deg,
        rgb(17, 161, 118) 0%,
        rgb(195, 125, 34) 100%
    );
    }
    .adjust-stat {
      width: 24px;
      margin: 0;
      font-weight: bolder;
      background: linear-gradient(
        0deg,
        rgb(126, 117, 35) 50%,
        rgb(195, 139, 34) 100%
      );
    }
    #consoleOutput {
    height: 150px; 
    overflow-y: auto; 
    padding: 1px;
    margin-top: auto; 
    background-color: gray;
    color: rgb(37, 37, 37);
    font-family: monospace;
    border-top: 5px solid black;
    display: flex;
    flex-direction: column-reverse;
    white-space: normal;
    width: 200px;
    max-width: 200px;
    border-radius: 5%;
    }

  #gameContainer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

#canvasContainer {
  flex: 1;
  display: flex;
  justify-content: center;
}

#game {
  border: 2px solid #333;
  box-shadow: 0 0 10px #00000040;
}

#leftPanel {
  margin-top: 530px;
  width: 180px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px;
  color: white;
  font-family: monospace;

}
#rightPanel {
  margin-top: 100px;
  width: 180px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px;
  color: white;
  font-family: monospace;
}

#leftPanel h3, #rightPanel h3 {
  text-align: center;
  margin-bottom: 8px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.leveli {
    max-width: 24px;
    width: 24px;
}
#info {
  display:none;
}
#namebutton {
font-family: monospace;
height: 20px;
background-color: bisque;
}
#namebox {
background-color: bisque;
width: 80px;
}
#goodluck {
font-family: monospace;
font-weight: bold;
}
.nimmari {
  margin-top: 5px;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
    height: auto;
  }

  #info {
    display:initial;
  }
  #game {
    width: 60vw;
    height: auto;
    margin: 5px 0;
  }

  #namebutton {
font-family: monospace;
height: 30px;
background-color: bisque;
}
#namebox {
background-color: bisque;
width: 80px;
}
#goodluck {
font-family: monospace;
font-weight: bold;
}
.nimmari {
  margin-top: 5px;
}

  #leftPanel {
  display: none;
}
#rightPanel {
  display: none;
}
.namebox {
  width: 60px;
}
  #damageList {
    width: 60px;
    height: 180px;
    font-size: x-small;
  }

  .napit {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95vw;
    margin: 5px auto;
    gap: 10px;
  }

  .player-stats,
  .cpu-stats,
  .log-container
  {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
  }

  .player-stats input,
  .cpu-stats input {
    width: 100px;
  }

  #consoleOutput {
    height: 100px;
    width: 100%;
    max-width: 400px;
  }

  .adjust-stat {
    width: 32px;
    height: 32px;
    font-size: 1.2em;
  }

  button {
    font-size: 1em;
    padding: 6px 10px;
  }

  h1 {
    font-size: 1.2em;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body {
    flex-direction: column;
    height: auto;
    padding: 5px;
  }

  .stats-container {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 10px;
  }

  .player-stats,
  .cpu-stats {
    grid-template-columns: repeat(4, auto);
    gap: 3px;
  }

  .log-container {
    width: 40%;
  }

  .adjust-stat {
    width: 35px;
    height: 35px;
  }
  
}