html, body {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;     /* Vertical centering */
  justify-content: center; /* Horizontal centering (optional) */
  height: 100vh;  
}

.body {
  padding: 0px !important;

}
#maincontainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* max-height: 90vh; */
  overflow: hidden;
  /* max-width: 420px; */
  /* max-height: 700px; */
}



#content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0px;;
  padding: 0px;
  height: auto;
}


#pre-connect {
  display: flow-root;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
  text-align: center;
}

#after-connect {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Important to allow flex children to scale properly */
}

#chatBox { 
  border: 1px solid #ccc; 
  width: 100%;
  height: 96%; 
  overflow-y: auto; 
  padding: 5px; 
  /* font-size: 1em;  */
  text-align: left; 
}

#logContainer {
  height: 100%; 
  overflow-y: auto; 
  padding: 5px; 
  margin-bottom: 10px; 
  font-size: 1em; 
  text-align: left; 
  overflow: auto;
  font-size: 12px;
}
#qrcode { 
  width: 100%; 
  max-width: 300px; 
}


#remoteVideo {

  height:100%;
}

video { 
  /* width: 100%;  */
  max-height: 100%; 
  /* margin-top: 10px;  */
}
button, input { 
  font-size: 1em; 
  height: 2em; 
}

wa-tab-group {
  display: flex;
  flex-direction: column;
  height: 100%;
}

wa-tab-panel {
  flex: 1;
  overflow-y: auto;
  /* padding: 1rem; */
}

.tab-panel {
  width: 100%;
  min-width: 400px;
  padding: 0px;
  height:  calc(100vh - 300px);
}

.start-panel {
  width: 100%;
  min-width: 400px;
  height: calc(70vh - 200px);
  justify-content: center;
  display: grid;
  align-items: center;
  min-height: 480px; 
}




wa-tab-group::part(tabs) {
  display: flex;
}

wa-tab {
  flex: 1;
  text-align: center;
}

wa-qr-code {
  margin: 0 auto;
  display: block;
}

.card-content {
  /* display: flex; */
  align-items: center;     /* Vertical centering */
  justify-content: center; /* Horizontal centering (optional) */
}

input[type="file"] {
  padding: 0.5em;
  border: 1px solid var(--wa-color-border);
  border-radius: 4px;
  background-color: var(--wa-color-surface);
  color: var(--wa-color-text);
  font-family: inherit;
  font-size: 1em;
}


.dropzone {
  background: none !important;
  border: 2px dashed rgba(0, 0, 0, .3) !important;
}

.file-transfer-icon {
  font-size: 32px;
}

.green-text {
  color: #417505;
}
@media all and (orientation:portrait) {


  #maincontainer {
    width: 100vw;
    max-width: 100%;
    max-height: 100%;
  }

  #content {

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  height: 100%;
  }
   
  .tab-panel {
    width: 100%;
    min-width: 100px;
    height:  calc(100vh - 170px);
  }

  .start-panel {
    width: 100%;    
    min-width: 100px;
    height:  calc(100vh - 200px);
  }
  

  #qrcode { 
    width: 100%; 
    max-width: 100%; 
  }

  .card-overview {
    width: 100%;
    height: 100%;
  }
    
}