
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: lightgray;
}

body{
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#page-container{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: lightgray;
}

#frame-top {
  width: 100%;
  flex-direction: column;
  text-align: center;
  display: flex;
  padding: 2px 0px 2px 0px;
}

#frame-body {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#frame-1 {
  width: 100%;
  flex-basis: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#frame-2 {
  width: 100%;
  flex-basis: 45%;
  overflow: auto;
  min-height: 0;
  background-color: lightgray;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#myCanvas {
  width: 100%;
  height: 100%;
  background-color: black;
}

#table-container{
  width: 100%;
  flex-grow: 1;
  overflow-y: auto;
}

.frame1-content{
  display: none;
}

.frame1-content.active{
  display: block;
}

table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  background-color: #fff;
  margin: 0 auto;
}

th, td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

thead th {
  background-color: #2c3e50;/*#343a40;*/
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}
  
tbody tr:hover {
  background-color: #e9ecef;
}

.spacer1{
  width: 10px;
  height: 5px;
}

#horizontal-divider1{
  width: 100%;
  height: 1px;
  background-color: #333333;
}

/*================== Tab Control =====================*/


.tab-buttons {
  display: flex;
  flex-direction: row;
  width: 99%;
  max-width: 600px;
  margin: 2px auto;
}

.tab-button {
  padding: 6px 15px;
  border: none;
  background-color: lightgray;
  cursor: pointer;
  color: black;
  flex-grow: 1; 
   -webkit-tap-highlight-color: transparent;
}

.tabs-container {
  width: 99%;
  margin: 2px auto;
  font-family: sans-serif;
  border: 1px solid gray;
  border-radius: 5px;
  flex-grow: 1;
  margin-bottom: 5px;
  overflow-y: auto;
  display: grid;
  place-items: center;
}

.tab-content {
  display: none;
  padding: 20px;
  width: 100%;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

#tab1 {
  align-items: center;
  justify-content: center;
}


.tab-button:hover {
  background-color: #ddd;
}


.tab-button.active {
  background-color: lightgray;
  font-weight: bold;
  border-bottom: 2px solid darkblue;
}


/*================== Table =====================*/


  h1 {
    text-align: center;
    color: #2c3e50;
  }

  .controls {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  

  



/*==============================================*/


/* Style the label next to the checked radio button 
input[type="radio"]:checked + label {
    font-weight: bold;
    color: #007bff;
}
*/

/* General styling for clarity */
.radio-group div {
    margin-bottom: 10px;
}

label {
    cursor: pointer;
    margin-left: 5px;
}

#view-radio-groups {
  display: flex;
}

#view-as{
  display: flex;
  flex-direction: column;
  align-items: center;
}



.button-command {
  display: none;
  padding: 8px;
  width: 110px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  cursor: pointer;
  outline: none;
  border-radius: 12px;
  background-color: darkblue;
  margin-bottom: 30px;
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* fix for iOS Safari flickering */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.button-command.active{
  display: inline-block;
}

/* This prevents Safari from dropping hardware acceleration during the tap */
.button-command:active {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}


/*//////////////////////////////////////*/


#top-bar {
  display: flex;
  justify-content: center;
  position: relative;
}

.status-container {
  display: inline-flex;
  gap: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
}

.status-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid black;
  transition: background-color 0.4s ease-in-out;

}
        
.connected {
  background-color: #239955; 
}

.disconnected {
  background-color: rgb(219, 0, 0);  
}

.unknown {
  background-color: gray;
}




