/*******************************************
  index.html CSS below
 *******************************************/
.control-panels {
  display: flex;
  flex-direction: column;
  width: 200px; /* was 240px */
  min-width: 200px; /* was 240px */
  padding: 0 .5em; /* was 0 1em */
}

/*
.target-panel {
  display: flex;
  flex-direction: column;
}
*/

/* .target-panel > p:first-of-type { */
.control-panels > p:first-of-type {
  text-align: center;
  letter-spacing: 1px;
  font-size: 1.2em;
  font-weight: 900;
  margin: 1rem 0 0 0;
}

.indicators {
  border: 3px solid #333;
  text-align: center;
  margin: .5em 1em;
  padding: 5px 0;
  font-weight: 800;
  background-color: #f5f2f2;
  color:rgba(0, 0, 0, 0.3);
}

.indicators_on {
  background-color: antiquewhite;
  color:#333;
  box-shadow: 0 0 4px 2px #fff, 0 0 8px 4px #fdffe5;
}

.indicators_lit {
  background-color: lime;
  color:#333;
  box-shadow: 0 0 4px 2px #fff, 0 0 8px 4px lime;
}

.pwr_bttn {
  font-size: 10pt;
  font-weight: bold;
  margin-left: 5px;
}

.glowing-circle {
  width: 15px;
  height: 15px;
  border-radius:50%;
  background-color: rgb(194, 44, 44);
  border: 2px solid black;
}

.pwr_on {
  background-color: red;
  box-shadow: 0 0 6px 3px #fff, 0 0 5px 4px red, 0 0 10px 8px red;
}

#target, #fire-button {
  margin: 0 .25em 1em .25em;
}

#fire-button {
  color:#FFF; 
  font-weight: bold;
  margin: 0 .25em 1em .25em;
}

.ship-input input[type="text"] {
  width: 84%;
}

i {
  color: var(--light);
  font-size: 18pt;
}

.number-grid {
  width: 25px; 
  min-width: 25px;
}

.numbers {
  height: 40px; 
  min-height: 40px; 
  padding-top:10px; 
  text-align: center;
}

.letter-grid {
  width: 800px; 
  min-width: 800px; 
  height:40px; 
  padding-top: 10px;
}

.letters {
  width: 35.7px;
  text-align: center; 
  display: inline-block;
}

/*
canvas {
  width: 800px;
  height: 400px;
}
*/

#radar {
  background-color: #000;
}

#ocean {
  background: url(./Assets/ocean.avif) center / cover;
}

#gameboard {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

button:disabled {
  background-color: #ccc !important;
  color: #666!important;
  cursor: not-allowed;
}

input[type=text]:disabled {
  background-color: #eee !important;
  color: #666 !important;
  cursor: not-allowed;
}

.statusContainer {
  margin: 0 1em 0 1em; 
/*  padding: 2em; */
  border-radius: 20px;
  border: 1px solid rgba(69, 214, 125, 0.555);
}

.statusLine,
.statusLine i {
  color: #1db187; 
  font-size: 12px
}

.chatContainer {
  display: flex;
  flex-direction: column;
  height: 400px;
  max-width: 200px;
}

.messages {
  /* height: calc(100vh - 40vh); */
  /* height: 400px; */
  overflow: auto;
  padding: 1em .1em 1em 1em;
  display: flex;
  flex-direction: column;
  /* margin: auto; */
  /* width: 80%; */
  /* max-width: 200px; */
  scroll-behavior: smooth;
}

.chatContainer div:last-of-type {
  margin-top: auto;
}

#chat {
  margin: 0!important;
  width: 100%;
}

#sysMsgs p {
  margin-bottom: 4px;
}

/* long piece of scrollbar */
.messages::-webkit-scrollbar {
  width: 15px;
  background-color: rgba(0,0,0, .1);
  /* background-color: var(--light); */
  border-radius: 8px;
}

/* inside piece of scrollbar */
.messages::-webkit-scrollbar-thumb {
  /* background: rgba(255, 255, 255, 0.8); */
  /* background: var(--muted); */
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.chat {
  display: table;
  padding: .5em 1em;
  margin: 3px 0 15px 0;
  /* background-color: var(--primary); */
  /* text-align: right; */
  color: white;
  border-radius: 20px;
}

.chat_left {
  margin: 3px 0 15px auto !important;
}

.my_label {
  color: #74C0FC; 
  font-size: 12px; 
  margin: 0 .5em 0 .5em;
}

.me {
  background-color: #74C0FC;
}

.server_label {
  color: var(--primary); 
  font-size: 12px; 
  margin: 0 .5em 0 .5em;
}

.server {
  background-color: var(--primary);
}

.player2_label {
  color: #1db187; 
  font-size: 12px; 
  text-align: right; 
  margin: 0 .5em 0 .5em;
}

.player2 {
  background-color: #63E6BE;
  text-align: right;
}

.blue-chat {
  display: table;
  padding: .5em 1em;
  margin: 3px 0 3px 0;
  background-color: #74C0FC;
  color: white;
  border-radius: 20px;
}

.green-chat {
  display: table;
  text-align: right;
  padding: .5em 1em;
  margin: 3px 0 3px auto;
  background-color: #63E6BE;
  color: white;
  border-radius: 20px;
}

.grey-chat {
  display: table;
  padding: .5em 1em;
  margin: 3px 0 3px 0;
  background-color: var(--primary);
  color: white;
  border-radius: 20px;
}

.tiny {
  font-size: 8pt;
  color: var(--muted);
  margin: 0;
  padding: 0;
}

.user-label {
  color: var(--muted)!important;
}

.footer {
  margin: auto;
  padding: 3em 0;
  width: 80%;
}

.logo {
  height: auto;
  width: 100px;
  margin-right: 50px;
}

.copyright {
  text-align: center;
}


/*****************************************************
  Below CSS is for creating an animated "radar" screen
  with radar sweeps. Not in use
*****************************************************/
.radar {
  position: relative;
  overflow: hidden;
  width: 300px;
  aspect-ratio: 1;
  background: #000 url(https://i.stack.imgur.com/vY6Tl.png) center / cover;
  border-radius: 50%;
}

.beam {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  aspect-ratio: inherit;
  background: url(https://i.stack.imgur.com/GCbf1.png) center / cover;
  animation: 5s rotate linear infinite;
}

@keyframes rotate {
  100% {
    rotate: 1turn;
  }
}

.dot {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  margin: -2px;
  background: #cf5;
  box-shadow: 0 0 10px 5px rgba(100, 255, 0, 0.5);
  opacity: 0;
}