#header {
  box-sizing: border-box;
  background-color: rgb(34, 34, 34);
  padding: 0px 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 100%; */
  min-height: 0;
  gap:2rem;
  /* for toggle header button */
  position: relative;

}

#headerWrapper {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
  position: relative;
  
}

#headerWrapper.collapsed {
  grid-template-rows: 0fr;
}

/* header toggle button styling */
#toggleHeaderBtn {
    position: absolute;
    bottom: -15px; /* pushes it slightly outside the header */
    left: 50%;
    transform: translateX(-50%);
    
    padding: 5px 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;

    background: #333;
    color: white;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#toggleHeaderBtn:hover{
  border: 2px solid rgba(255, 255, 255, 1);
}

#headerWrapper.collapsed #toggleHeaderBtn{
  bottom: -30px;
  border-radius: 0px 0px 10px 10px;
}

.thick-arrow-down {
  width: 10px;
  height: 10px;
  border: 5px solid rgba(199, 199, 199, 0.74);
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  transition: 5000ms linear;
}

.thick-arrow-up {
  width: 10px;
  height: 10px;
  border: 5px solid rgba(241, 241, 241, 0.808);;
  border-left: 0;
  border-top: 0;
  transform: rotate(225deg);

}

.logo{
    width: 2.5rem;
}

.logo-text{

  margin-right: auto;
}

.menu{
  flex: 1;
  text-align: right;
}

.menu ul li{
  display: inline-block;
  text-decoration: none;
}

a{
  text-decoration: none;
  color: white;
  /* cursor: pointer; */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

a:hover{
  color: orange;
}

.lobbycodebg{
  background-color: rgba(255, 255, 255, 0.055);
  border-radius: 25px;
  padding: 15px 2ch;
  /* box-shadow: 0px 0px 5px 2px rgba(255, 255, 255, 0.705); */
  color: rgb(245, 245, 245);
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  cursor: pointer;
  text-align: center;
 
}

/* Tooltip text */
.lobbycodebg .tooltiptext {
  visibility: hidden;
  background-color: rgb(85 85 85);
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  font-size: 0.9em;
  width: 200px;
  top: 100%;
  left: 50%;
  margin-left: -100px; /* Use half of the width (120/2 = 60), to center the tooltip */

  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s;
  
}

.lobbycodebg .tooltiptext::after {
  content: " ";
  position: absolute;
  bottom: 100%;  /* At the top of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgb(85 85 85) transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.lobbycodebg:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
 
}


.lobbycodestyle{
  color: orange;
  text-shadow: 1px 1px 1px #00000075;
  letter-spacing: 0.1ch;
  cursor: default;
  font-weight: 600;
  transition: 150ms linear;
}

.blur{
  filter: blur(5px);
}

.btn-group{
  display: grid;
  grid-template-columns: 5rem 9rem 7rem 7rem;
  /* justify-content: center; */
  color: rgb(255, 255, 255);
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  background-color: rgba(255, 255, 255, 0.055);
} 

.gridcontrols{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  margin: 0.5rem 0px;
}

.connection-style{
  text-shadow: 2px 2px 4px #000000;
  padding-left: 1ch;
  padding-right: 1ch;
  white-space: nowrap;
  font-size: 0.9rem;
  color: rgb(255, 255, 255);
}

.title-style-t1{
  /* background-color: rgb(25,0,255); */
  text-shadow: 2px 2px 4px #000000;
  padding-left: 1ch;
  padding-right: 1ch;
  white-space: nowrap;
  font-size: 0.9rem;
  color: rgb(0, 118, 253);
}

.title-style-t2{
  /* background-color: rgb(253,0,0); */
  text-shadow: 2px 2px 4px #000000;
  padding-left: 1ch;
  padding-right: 1ch;
  white-space: nowrap;
  font-size: 0.9rem;
  color: rgb(253, 30, 0);
}

.title-style-t3{
  /* background-color: rgb(117, 117, 117); */
  text-shadow: 2px 2px 4px #000000;
  padding-left: 1ch;
  padding-right: 1ch;
  white-space: nowrap;
  font-size: 0.9rem;
  color:  rgb(151, 150, 150);
}

.buttonstyledefault {
  align-items: center;
  appearance: none;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395A;
  cursor: pointer;
  display: inline-flex;
  height: 3ch;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;  
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 0.9rem;
}

.buttonstyledefault:focus {
  box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.buttonstyledefault:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.buttonstyledefault:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}

.buttonstyledefault:disabled {
  filter: opacity(0.2);
  cursor: not-allowed;
  transform: none;
}

.buttonstyleready{
  cursor: default;
  font-size: 0.9rem;
  font-weight: 400;
  background-color: rgba(168, 238, 182, 0);
  color: rgb(0, 97, 0);
  width: 100%;
  filter: brightness(150%);
  border: solid 1px rgb(0, 97, 0);
  pointer-events: none;
}

.buttonstylenotready{
  cursor: default;
  font-size: 0.9rem;
  font-weight: 400;
  background-color: rgba(255, 253, 156, 0);
  color: rgb(156, 87, 0);
  width: 100%;
  filter: brightness(150%);
  border: solid 1px rgb(156, 87, 0) ;
  pointer-events: none;

}

#settingsBtnGrp {
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 25px;
    background: rgb(231, 231, 231);
    transition: transform .15s;  
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    text-align: center;
}

#settingsBtnGrp:active {  
  transform: translateY(2px);
}

#settingsBtnGrp i {
    pointer-events: none;
}

#settingsBtnGrp button {
    margin-left: 5px;
    pointer-events: none;
    font-weight: 600;
}

@media only screen and (max-width: 950px){

  .lobbycodebg{
    font-size: 0.9rem;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media only screen and (max-width: 900px){

.lobbycodestyle{
  filter: blur(0px);
}

#settingsBtnGrp {
  padding: 5px 20px;
  margin-bottom: 5px;
}


#header{
  display:flex;
  flex-direction: column;
  gap: 0; 
  padding-top: 0.5rem;
  padding-bottom: 0.4rem;
}

#headerWrapper.collapsed #header{
  padding: 0;
}

#toggleHeaderBtn{
  font-size: 12px;
  bottom: -22px;
  width: 100px;
}

.logo{
  margin-bottom: 0.5rem;
}

.gridcontrols{
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  gap: 0.4rem;
}

.lobbycodebg {
  
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0.5rem;
  text-align: center;
}

  .btn-group{
    grid-template-columns: 1fr 1fr 1fr 1fr;
  } 
  
}

@media only screen and (max-width: 900px){

  #header {
    padding-inline: 10px;
  }

  #header *{
    font-size: 0.7rem;
  }

}